Changeset 516 for Dev/trunk/Gruntfile.js


Ignore:
Timestamp:
03/14/14 12:36:58 (11 years ago)
Author:
hendrikvanantwerpen
Message:

Enable deployment with Grunt.

Location:
Dev/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk

    • Property svn:ignore
      •  

        old new  
        11build
        2 quod-erat.git
  • Dev/trunk/Gruntfile.js

    r505 r516  
    1414                                  ,'coffeelint:lint'
    1515                                  ,'jsonlint:lint'
    16                                   //,'tv4:lint'
     16                                //,'tv4:lint'
    1717                                  ,'less:compile'
    1818                                  ,'usebanner:generated-css'
     
    2727                                ,'dojo:build'
    2828                                ]);
     29    grunt.registerTask('deploy', ['path-check:deploy',
     30                                  'svninfo',
     31                                  'build',
     32                                  'git_deploy:deploy']);
    2933
    3034    // FILES AND FOLDERS
     
    6973                                releaseDir: '../../'+buildDir }}
    7074        },
     75        git_deploy: {
     76            deploy: {
     77                options: {
     78                    url: 'git@heroku.com:quod-erat.git',
     79                    branch: 'master',
     80                    message: "Deployment of revision <%= svninfo.rev %> on <%= grunt.template.today() %>."
     81                },
     82                src: buildDir
     83            }
     84        },
    7185        htmlhint: {
    7286            options: { htmlhintrc: srcDir+".htmlhintrc" },
     
    8296        },
    8397        jsonlint: {
    84             'lint': { files: { src: [ srcDir+'client/qed-client/**/*.json', srcDir+'server/**/*.json' ] } },
     98            'lint': { files: { src: [ srcDir+'client/qed-client/**/*.json', srcDir+'server/**/*.json' ] } }
    8599        },
    86100        less: {
     
    88102                       dumpLineNumbers: "all" },
    89103            compile: { files: lessMap }
     104        },
     105        'path-check': {
     106            'deploy': {
     107                src: [ 'git', 'svn' ]
     108            }
    90109        },
    91110        requirejs: {
     
    143162    grunt.loadNpmTasks('grunt-contrib-less');
    144163    grunt.loadNpmTasks('grunt-dojo');
     164    grunt.loadNpmTasks('grunt-git-deploy');
    145165    grunt.loadNpmTasks('grunt-htmlhint');
    146166    grunt.loadNpmTasks('grunt-jsonlint');
     167    grunt.loadNpmTasks('grunt-path-check');
     168    grunt.loadNpmTasks('grunt-svninfo');
    147169    grunt.loadNpmTasks('grunt-tv4');
    148170    grunt.loadTasks('./grunt-tasks');
Note: See TracChangeset for help on using the changeset viewer.