From 08535e56aa4495adc62702897b241768c6d12f40 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Oct 2017 18:57:32 +0100 Subject: [PATCH] Prepare release script --- .gitignore | 1 + client/config/webpack.prod.js | 5 ++--- package.json | 3 ++- scripts/release.sh | 7 +++++++ 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100755 scripts/release.sh diff --git a/.gitignore b/.gitignore index b4c1de87d..62e252782 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ /dist /.idea /PeerTube.iml +peertube.zip diff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.js index 539b9a1ee..e2dde854d 100644 --- a/client/config/webpack.prod.js +++ b/client/config/webpack.prod.js @@ -160,14 +160,13 @@ module.exports = function (env) { uglifyOptions: { ie8: false, ecma: 6, - warnings: true, + warnings: false, mangle: true, output: { comments: false, beautify: false } - }, - warningsFilter: () => false + } }), /** diff --git a/package.json b/package.json index fd878a342..0d432f39c 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ "nodemon": "nodemon", "ts-node": "ts-node", "tslint": "tslint", - "travis": "scripty" + "travis": "scripty", + "release": "scripty" }, "dependencies": { "async": "^2.0.0", diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 000000000..572e6bdca --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +npm run build +npm test + +cd ../ || exit -1 +zip -r PeerTube/peertube.zip PeerTube/{CREDITS.md,node_modules,FAQ.md,LICENSE,README.md,client/dist/,client/yarn.lock,client/package.json,config,dist,package.json,scripts,support,tsconfig.json,yarn.lock} -- 2.25.1