1
0
Fork 0

Prepare release script

This commit is contained in:
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
/.idea
/PeerTube.iml
peertube.zip

View 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
}
}),
/**

View file

@ -45,7 +45,8 @@
"nodemon": "nodemon",
"ts-node": "ts-node",
"tslint": "tslint",
"travis": "scripty"
"travis": "scripty",
"release": "scripty"
},
"dependencies": {
"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}