From 7204e0560153fd98337e93e7361fced66132f341 Mon Sep 17 00:00:00 2001 From: Molunerfinn Date: Tue, 12 Dec 2017 18:46:56 +0800 Subject: [PATCH] Added: version control --- .travis.yml | 2 +- package.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9164cb6..307e66a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,4 +49,4 @@ after_script: - git config user.email "marksz@teamsz.xyz" - git add . - git commit -m "Travis build docs" - - git push --force --quiet "https://${GITHUB_TOKEN}@github.com/ecomfe/san-transition.git" master:gh-pages + - git push --force --quiet "https://${GITHUB_TOKEN}@github.com/Molunerfinn/PicGo.git" master:gh-pages diff --git a/package.json b/package.json index 9d66b97..0c87cd7 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,10 @@ "unit": "karma start test/unit/karma.conf.js", "postinstall": "npm run lint:fix", "build:docs": "cross-env NODE_ENV=production webpack -p --config .electron-vue/webpack.docs.config.js", - "docs": "webpack-dev-server --content-base docs/dist --config .electron-vue/webpack.docs.config.js --hot --inline" + "docs": "webpack-dev-server --content-base docs/dist --config .electron-vue/webpack.docs.config.js --hot --inline", + "patch": "npm version patch && git push origin master && git push origin --tags", + "minor": "npm version minor && git push origin master && git push origin --tags", + "major": "npm version major && git push origin master && git push origin --tags" }, "build": { "productName": "PicGo",