Changeset 518


Ignore:
Timestamp:
03/14/14 16:27:40 (11 years ago)
Author:
hendrikvanantwerpen
Message:

Added descriptions and internal warning to grunt tasks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/Gruntfile.js

    r517 r518  
    1111    grunt.registerTask('default', ['compile']);
    1212    // development
    13     grunt.registerTask('compile', ['path-check:svn'
    14                                   ,'svn-ignore:compile'
    15                                   ,'jshint:lint-sources'
    16                                   ,'htmlhint:lint'
    17                                   ,'coffeelint:lint'
    18                                   ,'jsonlint:lint'
    19                                 //,'tv4:lint'
    20                                   ,'less:compile'
    21                                   ,'usebanner:generated-css'
    22                                   ,'coffee:compile'
    23                                   ,'usebanner:generated-js'
    24                                   ,'jshint:lint-generated'
    25                                 //,'amd-check' // too smart about plugins, r.js can't find them
    26                                   ]);
    27     grunt.registerTask('run', ['path-check:foreman'
    28                               ,'compile'
    29                               ,'foreman:dev']);
    30     grunt.registerTask('build', ['compile'
    31                                 ,'clean:build'
    32                                 ,'copy:build'
    33                                 ,'dojo:build'
    34                                 ]);
    35     grunt.registerTask('run-build', ['path-check:foreman'
    36                                     ,'build'
    37                                     ,'foreman:build']);
    38     grunt.registerTask('deploy', ['path-check:svn'
    39                                  ,'path-check:git'
    40                                  ,'svninfo'
    41                                  ,'build'
    42                                  ,'git_deploy:deploy']);
     13    grunt.registerTask('compile',
     14                       "Lint all sources and compile Coffee and LESS sources.",
     15                       ['path-check:svn'
     16                       ,'svn-ignore:compile'
     17                       ,'jshint:lint-sources'
     18                       ,'htmlhint:lint'
     19                       ,'coffeelint:lint'
     20                       ,'jsonlint:lint'
     21                     //,'tv4:lint'
     22                       ,'less:compile'
     23                       ,'usebanner:generated-css'
     24                       ,'coffee:compile'
     25                       ,'usebanner:generated-js'
     26                       ,'jshint:lint-generated'
     27                     //,'amd-check' // too smart about plugins, r.js can't find them
     28                       ]);
     29    grunt.registerTask('run',
     30                       "Compile and start the server locally with foreman.",
     31                       ['path-check:foreman'
     32                       ,'compile'
     33                       ,'foreman:dev']);
     34    grunt.registerTask('build',
     35                       "Compile and make a Dojo build of the client (compress sources).",
     36                       ['compile'
     37                       ,'clean:build'
     38                       ,'copy:build'
     39                       ,'dojo:build'
     40                       ]);
     41    grunt.registerTask('run-build',
     42                       "Make a build and start server from build locally with foreman.",
     43                       ['path-check:foreman'
     44                       ,'build'
     45                       ,'foreman:build']);
     46    grunt.registerTask('deploy',
     47                       "Make a build and deploy it to Heroku.",
     48                       ['path-check:svn'
     49                       ,'path-check:git'
     50                       ,'svninfo'
     51                       ,'build'
     52                       ,'git_deploy:deploy']);
    4353    // database management
    4454    grunt.registerTask('db-backup-cloud-to-dated-local',
     55                       "Backup the Heroku database to a timestamped local database.",
    4556                       ['path-check:heroku'
    4657                       ,'heroku-config'
    4758                       ,'http:db-backup-cloud-to-dated-local']);
    4859    grunt.registerTask('db-pull-cloud-to-local',
     60                       "Synchronize local database with the Heroku database (pull changes).",
    4961                       ['path-check:heroku'
    5062                       ,'heroku-config'
    5163                       ,'http:db-pull-cloud-to-local']);
    5264    grunt.registerTask('db-push-local-to-cloud',
     65                       "Synchronize the Heroku database with the local database (push changes).",
    5366                       ['path-check:heroku'
    5467                       ,'heroku-config'
    5568                       ,'http:db-push-local-to-cloud']);
     69    grunt.registerTask('#',
     70                       "---\nTASKS BELOW ARE INTERNAL AND SHOULD NOT USUALLY BE CALLED FROM THE COMMAND-LINE\n---",
     71                       []);
    5672
    5773    // FILES AND FOLDERS
Note: See TracChangeset for help on using the changeset viewer.