Commit dd37dd2b authored by Jérome Perrin's avatar Jérome Perrin

build an html5 cache manifest

parent 5aabbd8a
......@@ -18,6 +18,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-curl');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-manifest');
grunt.loadNpmTasks('grunt-zip');
grunt.initConfig({
......@@ -290,6 +291,21 @@ module.exports = function (grunt) {
src: '<%= curl.dhtmlxgantt.dest %>',
dest: '<%= global_config.tmp %>/dhtmlxGantt/'
}
},
manifest: {
generate: {
options: {
basePath: "<%= global_config.dest %>",
verbose: true,
timestamp: true,
hash: true
},
src: [
'**/*.js',
'**/*.css'
],
dest: '<%= global_config.dest %>/manifest.appcache'
}
}
});
......@@ -299,6 +315,6 @@ module.exports = function (grunt) {
grunt.registerTask('lint', ['jslint']);
grunt.registerTask('dep', ['curl', 'unzip']);
// grunt.registerTask('test', ['qunit']);
grunt.registerTask('build', ['copy', 'uglify', 'less']);
grunt.registerTask('build', ['copy', 'uglify', 'less', 'manifest']);
};
......@@ -11,13 +11,14 @@
"uritemplate": "git+http://git.erp5.org/repos/uritemplate-js.git"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt": "~0.4.5",
"grunt-cli": "~0.1.11",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-less": "~0.9.0",
"grunt-contrib-uglify": "~0.2.x",
"grunt-contrib-watch": "~0.5.3",
"grunt-manifest": "~0.4",
"grunt-curl": "~1.2.1",
"grunt-jslint": "~1.1.x",
"grunt-zip": "~0.13.0",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment