add srcdist target
This commit is contained in:
parent
a33ea7f532
commit
907ec32013
27
gulpfile.js
27
gulpfile.js
@ -64,8 +64,24 @@ const paths = {
|
|||||||
"popup/**/*.{html,css}",
|
"popup/**/*.{html,css}",
|
||||||
"pages/**/*.{html,css}",
|
"pages/**/*.{html,css}",
|
||||||
],
|
],
|
||||||
|
extra: [
|
||||||
|
"AUTHORS",
|
||||||
|
"README",
|
||||||
|
"COPYING",
|
||||||
|
"gulpfile.js",
|
||||||
|
"tsconfig.json",
|
||||||
|
"package.json",
|
||||||
|
"pogen/pogen.ts",
|
||||||
|
"pogen/tsconfig.json",
|
||||||
|
"pogen/example/test.ts",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
paths.srcdist = [].concat(paths.ts.release,
|
||||||
|
paths.ts.dev,
|
||||||
|
paths.dist,
|
||||||
|
paths.extra);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const tsBaseArgs = {
|
const tsBaseArgs = {
|
||||||
@ -144,6 +160,17 @@ 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");
|
||||||
|
return gulp.src(paths.srcdist, {buffer: false, stripBOM: false, base: "."})
|
||||||
|
.pipe(zip(zipname))
|
||||||
|
.pipe(gulp.dest("."));
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate a tsconfig.json with the
|
* Generate a tsconfig.json with the
|
||||||
* given compiler options that compiles
|
* given compiler options that compiles
|
||||||
|
Loading…
Reference in New Issue
Block a user