summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-03-07 12:00:33 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-03-07 12:00:33 +0100
commit990f12e3777bb09d1854ce3b7b1712b6c2a67a1f (patch)
tree12b2f186c82d2a8b550256c05f7ee047b3e58538 /js
parent4b08bd75c4b256da47c9b9d430b53c2a1d1f6418 (diff)
add checksum
Diffstat (limited to 'js')
-rw-r--r--js/Gruntfile.js39
-rw-r--r--js/package.json3
2 files changed, 41 insertions, 1 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'
+ }
}
});
diff --git a/js/package.json b/js/package.json
index d6a19bc28..2c5e76ea9 100644
--- a/js/package.json
+++ b/js/package.json
@@ -25,19 +25,20 @@
"homepage": "https://github.com/owncloud/news",
"devDependencies": {
"grunt": "^0.4.5",
+ "grunt-cachebuster": "^0.1.5",
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-connect": "^0.9.0",
"grunt-contrib-cssmin": "^0.12.2",
"grunt-contrib-jshint": "^0.11.0",
"grunt-contrib-uglify": "^0.8.0",
"grunt-contrib-watch": "^0.6.1",
+ "grunt-karma": "^0.10.1",
"grunt-ng-annotate": "^0.10.0",
"grunt-php": "^1.2.0",
"grunt-phpunit": "^0.3.6",
"grunt-protractor-runner": "^1.2.1",
"grunt-protractor-webdriver": "^0.2.0",
"grunt-wrap": "^0.3.0",
- "grunt-karma": "^0.10.1",
"karma": "^0.12.31",
"karma-chrome-launcher": "^0.1.7",
"karma-coverage": "^0.2.7",