From 990f12e3777bb09d1854ce3b7b1712b6c2a67a1f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 7 Mar 2015 12:00:33 +0100 Subject: add checksum --- js/Gruntfile.js | 39 +++++++++++++++++++++++++++++++++++++++ js/package.json | 3 ++- 2 files changed, 41 insertions(+), 1 deletion(-) (limited to 'js') 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", -- cgit v1.2.3