Prepare release script
authorChocobozzz <florian.bigard@gmail.com>
Tue, 31 Oct 2017 17:57:32 +0000 (18:57 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Tue, 31 Oct 2017 17:57:32 +0000 (18:57 +0100)
.gitignore
client/config/webpack.prod.js
package.json
scripts/release.sh [new file with mode: 0755]

index b4c1de87dae1e996fc89f0a04d9cf5e2c4f60b36..62e252782bc9e118dd072bed7717ce2049e0dda0 100644 (file)
@@ -20,3 +20,4 @@
 /dist
 /.idea
 /PeerTube.iml
+peertube.zip
index 539b9a1ee06b92751355ce7991fb8c8d3a0244ef..e2dde854de12f5ae3f4922a7552b0e1b6dd2ae35 100644 (file)
@@ -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
+          }
         }),
 
         /**
index fd878a342efd2a4d28ecf881cafdb30df7d9886f..0d432f39c487fa63b8d7db39c982b6316534b28c 100644 (file)
@@ -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 (executable)
index 0000000..572e6bd
--- /dev/null
@@ -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}