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
|
/dist
|
||||||
/.idea
|
/.idea
|
||||||
/PeerTube.iml
|
/PeerTube.iml
|
||||||
|
peertube.zip
|
||||||
|
|
|
@ -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
|
|
||||||
}),
|
}),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
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…
Add table
Reference in a new issue