Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
build: greater build flow
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazeyu committed Feb 15, 2018
1 parent d321872 commit 4a99b1c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
19 changes: 8 additions & 11 deletions .github/CONTRIBUTING.md
Expand Up @@ -69,23 +69,20 @@ work is not in vain.
- **Use `npm run build:prod` to build final client js.**
**Important!!! The step must be done before commit!!!**

- Use `git add *`, or choose the file you want to commit.
- Use `git add .`, or choose the file you want to commit.

- Use `npm run commit` to commit, **Never use `git commit`!!!**

### 5. Push the changes

- Use `git push` to push the changes to the github server.

### 6. Push to the webbranch

- Use `push-gh-pages.bat` or `push-gh-pages.sh`


## Workflow(author): Release a new version

*Let the Collaborator or author do it.*


### 1. Bump the version

- bump the version in `package.json`
Expand All @@ -94,17 +91,17 @@ work is not in vain.

- run `npm install` to generate new `package-lock.json`

### 2. Commit package.json and package-lock.json
### 2. Build the library

- Use `npm run commit` to commit, **Never use `git commit`!!!**
- `npm run deploy`

### 3. Tag and release a new version
### 3. Commit package.json and package-lock.json

- In the Github page.
- Use `npm run commit` to commit, **Never use `git commit`!!!**

### 4. Update changelog
### 4. Tag and release a new version

- Use `npm run changelog`
- In the Github page.

### 5. Publish the package to npm.

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -13,6 +13,7 @@
"build:docs": "git pull && npm run _changelog && git add CHANGELOG.md && npm run update:submodule && git add ghpages",
"build:esdoc": "cp lib/stats.html ghpages/stats.html -f && npm run _esdoc",
"deploy:doc": "cd ghpages/ && git status && git add . && git commit -m \"Update docs\" && git push --force && cd ..",
"deploy": "build:prod && build:docs",
"lint": "eslint --ext .js ./src",
"commit": "git pull && git-cz",
"v:major": "npm version major",
Expand Down

0 comments on commit 4a99b1c

Please sign in to comment.