From 71f98075682fc46ae7641a1e4462869648e467f1 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 18 Mar 2016 14:40:35 +0100 Subject: appdist --- gulpfile.js | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index dfcbca1be..3f50e64e7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -51,10 +51,10 @@ const paths = { "content_scripts/*.{ts,tsx}", "popup/*.{ts,tsx}", "pages/*.{ts,tsx}", - "!**/*.d.ts" + "!**/*.d.ts", ], dev: [ - "test/tests/*.{ts,tsx}" + "test/tests/*.{ts,tsx}", ], }, dist: [ @@ -80,6 +80,28 @@ const paths = { "pogen/tsconfig.json", "pogen/example/test.ts", ], + /* French copyright application */ + appdist: [ + "style/*.css", + "img/**", + "lib/**/*.{ts,tsx}", + "!lib/vendor/*", + "!**/*.d.ts", + "background/*.{ts,tsx}", + "content_scripts/*.{ts,tsx}", + "popup/*.{ts,tsx}", + "pages/*.{ts,tsx}", + "AUTHORS", + "README", + "COPYING", + "Makefile", + "gulpfile.js", + "test/tests/*.{ts,tsx}", + "pogen/pogen.ts", + "lib/module-trampoline.js", + "popup/**/*.{html,css}", + "pages/**/*.{html,css}", + ], }; paths.srcdist = [].concat(paths.ts.release, @@ -168,13 +190,25 @@ gulp.task("package-unstable", ["compile-prod", "dist-prod", "manifest-unstable"] * Create source distribution. */ gulp.task("srcdist", [], function () { - let zipname = String.prototype.concat("taler-wallet-", manifest.version, "-src.zip"); + let zipname = String.prototype.concat("taler-wallet-webex", manifest.version, "-src.zip"); return gulp.src(paths.srcdist, {buffer: false, stripBOM: false, base: "."}) .pipe(zip(zipname)) .pipe(gulp.dest(".")); }); +/** + * Create source distribution for + * French copyright application. + */ +gulp.task("appdist", [], function () { + let zipname = String.prototype.concat("taler-wallet-webex", manifest.version, "-appsrc.zip"); + return gulp.src(paths.appdist, {buffer: false, stripBOM: false, base: "."}) + .pipe(zip(zipname)) + .pipe(gulp.dest(".")); +}); + + /** * Compile po extraction script. */ -- cgit v1.2.3