diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-07 12:00:33 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-07 12:00:33 +0100 |
commit | 990f12e3777bb09d1854ce3b7b1712b6c2a67a1f (patch) | |
tree | 12b2f186c82d2a8b550256c05f7ee047b3e58538 /js/Gruntfile.js | |
parent | 4b08bd75c4b256da47c9b9d430b53c2a1d1f6418 (diff) |
add checksum
Diffstat (limited to 'js/Gruntfile.js')
-rw-r--r-- | js/Gruntfile.js | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/js/Gruntfile.js b/js/Gruntfile.js index 571aaab00..71f081805 100644 --- a/js/Gruntfile.js +++ b/js/Gruntfile.js @@ -24,6 +24,7 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-ng-annotate'); grunt.loadNpmTasks('grunt-protractor-runner'); grunt.loadNpmTasks('grunt-protractor-webdriver'); + grunt.loadNpmTasks('grunt-cachebuster'); grunt.initConfig({ meta: { @@ -219,6 +220,44 @@ module.exports = function (grunt) { base: '../../../' } } + }, + cachebuster: { + build: { + options: { + format: 'json', + basedir: '..' + }, + src: [ + '../**', + '!../js/**', + '!../tests/**', + '!../l10n/**', + '../js/build/*.min.js', + '../js/vendor/**/*.min.js', + '!../js/vendor/jquery/**', + '!../js/vendor/js-url/lib/**', + '!../css/**', + '../css/*.min.css', + '!../**/*.md', + '!../appinfo/checksum.json', + '!../build/**', + '!../**/phpunit*', + '!../vendor/**/tests/**', + '!../vendor/**/docs/**', + '!../**/*.log', + '!../**/*.sw', + '!../**/composer.*', + '!../vendor/ezyang/htmlpurifier/configdoc/**', + '!../vendor/ezyang/htmlpurifier/smoketests/**', + '!../vendor/ezyang/htmlpurifier/maintenance/**', + '!../vendor/ezyang/htmlpurifier/benchmarks/**', + '!../**/*.pyc', + '!../**/PKG_INFO', + '!../**/__pycache__', + '!../bin/updater/dist', + ], + dest: '../appinfo/checksum.json' + } } }); |