aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-31 18:57:32 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-10-31 18:57:32 +0100
commit08535e56aa4495adc62702897b241768c6d12f40 (patch)
tree2395fbea032d4b46344bc57ae3e8fec6b4b5a09b
parent15f25480dddca4ad2af10f1bb96b4c8858cd4335 (diff)
downloadPeerTube-08535e56aa4495adc62702897b241768c6d12f40.tar.gz
PeerTube-08535e56aa4495adc62702897b241768c6d12f40.tar.zst
PeerTube-08535e56aa4495adc62702897b241768c6d12f40.zip
Prepare release script
-rw-r--r--.gitignore1
-rw-r--r--client/config/webpack.prod.js5
-rw-r--r--package.json3
-rwxr-xr-xscripts/release.sh7
4 files changed, 12 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index b4c1de87d..62e252782 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@
20/dist 20/dist
21/.idea 21/.idea
22/PeerTube.iml 22/PeerTube.iml
23peertube.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) {
160 uglifyOptions: { 160 uglifyOptions: {
161 ie8: false, 161 ie8: false,
162 ecma: 6, 162 ecma: 6,
163 warnings: true, 163 warnings: false,
164 mangle: true, 164 mangle: true,
165 output: { 165 output: {
166 comments: false, 166 comments: false,
167 beautify: false 167 beautify: false
168 } 168 }
169 }, 169 }
170 warningsFilter: () => false
171 }), 170 }),
172 171
173 /** 172 /**
diff --git a/package.json b/package.json
index fd878a342..0d432f39c 100644
--- a/package.json
+++ b/package.json
@@ -45,7 +45,8 @@
45 "nodemon": "nodemon", 45 "nodemon": "nodemon",
46 "ts-node": "ts-node", 46 "ts-node": "ts-node",
47 "tslint": "tslint", 47 "tslint": "tslint",
48 "travis": "scripty" 48 "travis": "scripty",
49 "release": "scripty"
49 }, 50 },
50 "dependencies": { 51 "dependencies": {
51 "async": "^2.0.0", 52 "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 @@
1#!/bin/bash
2
3npm run build
4npm test
5
6cd ../ || exit -1
7zip -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}