Prepare release script
This commit is contained in:
parent
15f25480dd
commit
08535e56aa
4 changed files with 12 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -20,3 +20,4 @@
|
|||
/dist
|
||||
/.idea
|
||||
/PeerTube.iml
|
||||
peertube.zip
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}),
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
7
scripts/release.sh
Executable 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}
|
Loading…
Reference in a new issue