diff options
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' + } } }); |