inserted some commented code in order to remind myself what to do about
versioning. it's very tedious to maintain the version in 3 different places, so this needs to be handled by the build process, and one and only one source must be provided for the final version string; that is probably going to be package.json.
This commit is contained in:
parent
dfac2ae47a
commit
e035362905
1 changed files with 8 additions and 1 deletions
|
@ -131,12 +131,19 @@ module.exports = function (grunt) {
|
|||
port: 9000
|
||||
}
|
||||
}
|
||||
// },
|
||||
// version: {
|
||||
// read version from pkg.version
|
||||
// write it out to:
|
||||
// - bower.json
|
||||
// - manifest.appcache (once it exists again)
|
||||
// - VERSION
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-mocha-phantomjs');
|
||||
// Default task.
|
||||
grunt.registerTask('default', ['jshint', 'connect', 'mocha_phantomjs', 'clean', 'concat', 'uglify']);
|
||||
grunt.registerTask('default', ['jshint', 'connect', 'mocha_phantomjs', 'clean', /*'version', */'concat', 'uglify']);
|
||||
grunt.registerTask('buildonly', ['clean', 'concat', 'uglify']);
|
||||
grunt.registerTask('server', function () {
|
||||
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
|
||||
|
|
Loading…
Reference in a new issue