Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Prepare release script

Chocobozzz08535e56aa44
diff --git a/.gitignore b/.gitignore
index b4c1de87da..62e252782b 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 539b9a1ee0..e2dde854de 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 fd878a342e..0d432f39c4 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 0000000000..572e6bdca8
--- /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}