Prepare release script

pull/125/head
Chocobozzz 2017-10-31 18:57:32 +01:00
parent 15f25480dd
commit 08535e56aa
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 12 additions and 4 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@
/dist /dist
/.idea /.idea
/PeerTube.iml /PeerTube.iml
peertube.zip

View File

@ -160,14 +160,13 @@ module.exports = function (env) {
uglifyOptions: { uglifyOptions: {
ie8: false, ie8: false,
ecma: 6, ecma: 6,
warnings: true, warnings: false,
mangle: true, mangle: true,
output: { output: {
comments: false, comments: false,
beautify: false beautify: false
} }
}, }
warningsFilter: () => false
}), }),
/** /**

View File

@ -45,7 +45,8 @@
"nodemon": "nodemon", "nodemon": "nodemon",
"ts-node": "ts-node", "ts-node": "ts-node",
"tslint": "tslint", "tslint": "tslint",
"travis": "scripty" "travis": "scripty",
"release": "scripty"
}, },
"dependencies": { "dependencies": {
"async": "^2.0.0", "async": "^2.0.0",

7
scripts/release.sh Executable file
View File

@ -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}