Skip to content

Commit d671882

Browse files
authoredMar 30, 2020
Merge pull request amejiarosario#46 from amejiarosario/feature/auto-changelog
Feature/auto changelog

File tree

5 files changed

+11960
-3454
lines changed

5 files changed

+11960
-3454
lines changed
 

‎.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs: # a collection of steps
4646
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
4747
path: test-results.xml
4848

49+
- run:
50+
name: release
51+
command: npm run semantic-release || true
52+
4953
docs:
5054
docker:
5155
- image: circleci/ruby:2.5.3-stretch-node

‎.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.12.0
1+
12.16.1

‎CONTRIBUTING.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,9 @@ If the commit reverts a previous commit, it should begin with `revert: `, follow
137137
### Type
138138
Must be one of the following:
139139
140-
* **feat**: A new feature
141140
* **fix**: A bug fix
142-
* **docs**: Documentation only changes
143-
* **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
144-
* **ci**: Changes to our CI configuration files and scripts (example scopes: Circle, BrowserStack, SauceLabs)
145-
* **test**: Adding missing tests or correcting existing tests
146-
* **refactor**: A code change that neither fixes a bug nor adds a feature
147-
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
148-
* **perf**: A code change that improves performance
141+
* **feat**: A new feature
142+
* **chore**: Changes to our CI configuration files and scripts (example scopes: Circle, BrowserStack, SauceLabs)
149143
150144
### Scope
151145
The scope should be the name of the npm package affected (as perceived by the person reading the changelog generated from commit messages.

‎package-lock.json

Lines changed: 11892 additions & 3441 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dsa.js",
3-
"version": "1.3.10",
3+
"version": "1.3.11",
44
"description": "Data Structures & Algorithms in JS",
55
"author": "Adrian Mejia <hi+dsajs@adrianmejia.com> (https://adrianmejia.com)",
66
"homepage": "https://github.com/amejiarosario/dsa.js",
@@ -17,7 +17,8 @@
1717
"watch": "jest src/ --watch --coverage",
1818
"coverage": "jest src/ --coverage && open coverage/lcov-report/index.html",
1919
"lint": "npx eslint --fix --format codeframe src/",
20-
"ci": "npx eslint src/ && jest src/ --coverage"
20+
"ci": "npx eslint src/ && jest src/ --coverage",
21+
"semantic-release": "semantic-release"
2122
},
2223
"keywords": [
2324
"algorithms",
@@ -31,18 +32,74 @@
3132
"dependencies": {},
3233
"devDependencies": {
3334
"benchmark": "2.1.4",
35+
"braces": ">=2.3.1",
36+
"commitizen": "^4.0.3",
37+
"conventional-changelog-cli": "^2.0.31",
38+
"cz-conventional-changelog": "^3.1.0",
39+
"cz-emoji": "amejiarosario/cz-emoji",
3440
"eslint": "4.19.1",
3541
"eslint-config-airbnb-base": "^13.1.0",
3642
"eslint-plugin-import": "^2.16.0",
3743
"eslint-plugin-jest": "21.17.0",
38-
"jest": "23.6.0",
39-
"braces": ">=2.3.1",
4044
"handlebars": ">=4.0.14",
45+
"husky": "^4.2.3",
46+
"jest": "23.6.0",
4147
"js-yaml": ">=3.13.1",
4248
"mem": ">=4.0.0",
49+
"semantic-release": "^17.0.4",
4350
"textlint-plugin-asciidoctor": "1.0.2"
4451
},
4552
"engines": {
4653
"node": ">=10.0.0"
54+
},
55+
"config": {
56+
"commitizen": {
57+
"path": "cz-emoji"
58+
},
59+
"cz-emoji": {
60+
"types": [
61+
{
62+
"emoji": "🐛",
63+
"code": ":bug: fix",
64+
"description": "Fixing a bug on code.",
65+
"name": "fix code"
66+
},
67+
{
68+
"emoji": "📝",
69+
"code": ":pencil: fix",
70+
"description": "Fixing typos on book.",
71+
"name": "fix typo"
72+
},
73+
{
74+
"emoji": "",
75+
"code": ":sparkles: feat",
76+
"description": "Introducing new features on code and/or book.",
77+
"name": "feature"
78+
},
79+
{
80+
"emoji": "💥",
81+
"code": ":boom: break",
82+
"description": "Introducing breaking changes.",
83+
"name": "breaking"
84+
},
85+
{
86+
"emoji": "🔖",
87+
"code": ":bookmark: release",
88+
"description": "Releasing / Version tags.",
89+
"name": "release"
90+
},
91+
{
92+
"emoji": "🔩",
93+
"code": ":wrench: chore",
94+
"description": "Adding CI/build tools.",
95+
"name": "chore"
96+
}
97+
]
98+
}
99+
},
100+
"husky": {
101+
"hooks": {
102+
"pre-push": "npm run ci"
103+
}
47104
}
48105
}

0 commit comments

Comments
 (0)
Please sign in to comment.