Skip to content

Commit

Permalink
fix(ci): add commit lint and conventional commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoVS09 committed Jan 10, 2021
1 parent 6af6225 commit 725fd7b
Show file tree
Hide file tree
Showing 5 changed files with 768 additions and 70 deletions.
11 changes: 10 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/*"
}
]
}
]
]
}
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ which mean I only trying understand is it possible to receive all requirement da
### First start guide

1. Run `make` for setup Docker enviroment.
2. Run `npm install` to install the dependencies.
3. Run `npm start`
2. Run `yarn` to install the dependencies.
3. Run `yarn start`
4. Load your extension on Chrome following:
1. Access `chrome://extensions/`
2. Check `Developer mode`
Expand Down Expand Up @@ -67,6 +67,15 @@ and on your `src/manifest.json`:
}
```

### Commits

Project using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
If you not know how to commit run

```bash
yarn commit
```

## Production build

For build and pack production verions just run
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"lint": "yarn lintonly --fix",
"lintonly": "eslint src/**/*.{ts,tsx}",
"test": "jest",
"commit": "cz",
"semantic-release": "semantic-release"
},
"dependencies": {
Expand All @@ -35,6 +36,9 @@
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@babel/preset-react": "^7.12.7",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@commitlint/prompt": "^11.0.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
Expand All @@ -54,6 +58,7 @@
"babel-loader": "^8.2.2",
"babel-preset-react-app": "^10.0.0",
"clean-webpack-plugin": "^3.0.0",
"commitizen": "^4.2.2",
"copy-webpack-plugin": "^6.3.2",
"css-loader": "^5.0.0",
"eslint": "^7.12.1",
Expand All @@ -67,6 +72,7 @@
"fs-extra": "^9.0.1",
"html-loader": "^1.3.2",
"html-webpack-plugin": "^5.0.0-alpha.14",
"husky": "^4.3.7",
"jest": "^26.6.3",
"node-sass": "^4.14.1",
"sass-loader": "^10.1.0",
Expand All @@ -80,5 +86,10 @@
"webpack": "^5.9.0",
"webpack-cli": "^4.2.0",
"webpack-dev-server": "^3.11.1"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
}
Loading

0 comments on commit 725fd7b

Please sign in to comment.