changed build scripts
This commit is contained in:
parent
59f77df2a2
commit
d0a6e6fa5b
2 changed files with 7 additions and 3 deletions
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
npm version
|
method="patch"
|
||||||
npm build
|
if [[ $1 != "" ]]; then
|
||||||
|
method=$1
|
||||||
|
fi
|
||||||
|
npm version $method
|
||||||
|
npm run build
|
||||||
if [[ $? == 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
tar czf cmc_fe.tar.gz dist
|
tar czf cmc_fe.tar.gz dist
|
||||||
git add . cmc_fe.tar.gz
|
git add . cmc_fe.tar.gz
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cmc_fe",
|
"name": "cmc_fe",
|
||||||
"version": "1.1.1",
|
"version": "0.1.6",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
|
|
Loading…
Reference in a new issue