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:
Manuel Friedli 2015-01-18 17:24:17 +01:00
parent dfac2ae47a
commit e035362905

View file

@ -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.');