appdist
This commit is contained in:
parent
4973197c6a
commit
71f9807568
3
Makefile
3
Makefile
@ -46,6 +46,9 @@ pogen: $(ts) pogen/pogen.js node_modules
|
||||
dist:
|
||||
$(gulp) srcdist
|
||||
|
||||
appdist:
|
||||
$(gulp) appdist
|
||||
|
||||
lib/i18n-strings.js: $(ts) node_modules
|
||||
truncate -s0 $@
|
||||
for lang in $(langs); do \
|
||||
|
40
gulpfile.js
40
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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user