Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit b453763

Browse files
author
Charlike Mike Reagent
authored
major: release v3 (merge #51)
complete rewrite from scratch, close #50 Tons of things changed. Just see the docs and tests, they are pretty enough. - Update repo boilerplate stuff to latest templates - Basically absolute separation of every aspect. - Support for both parsing and stringify-ing - Now we can parse, check and validate strings, array of strings and array of objects or mixed. Tons of methods are exposed as named exports: - parse / parseCommit / parseHeader - stringify / stringifyCommit / stringifyHeader - validate / validateCommit / validateHeader - check / checkCommit / checkHeader In addition to that there are also: - applyPlugins - plugins - mappers Signed-off-by: Charlike Mike Reagent <[email protected]>
1 parent 081f097 commit b453763

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+5931
-8038
lines changed

.all-contributorsrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"projectName": "parse-commit-message",
3+
"projectOwner": "tunnckoCoreLabs",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"files": [
7+
"README.md"
8+
],
9+
"imageSize": 120,
10+
"commit": false,
11+
"contributorsPerLine": 6,
12+
"contributors": [
13+
{
14+
"login": "tunnckoCore",
15+
"name": "Charlike Mike Reagent",
16+
"avatar_url": "https://avatars3.githubusercontent.com/u/5038030?v=4",
17+
"profile": "https://tunnckocore.com",
18+
"contributions": [
19+
"code",
20+
"doc",
21+
"question",
22+
"review",
23+
"fundingFinding"
24+
]
25+
}
26+
]
27+
}

.babelrc

Lines changed: 0 additions & 32 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ node10linux: &node10linux
2626
restore_modules_cache: &restore_modules_cache
2727
restore_cache:
2828
keys:
29-
- parse-commit-message-{{ checksum "shrinkwrap.yaml" }}
30-
# fallback to using the latest cache if no exact match is found
31-
- parse-commit-message-
29+
- parse-commit-message-{{ checksum "yarn.lock" }}
30+
# fallback to using the latest cache if no exact match is found
31+
- parse-commit-message-
3232

3333
# jobinstall: &jobinstall
3434
# steps:
@@ -41,7 +41,7 @@ restore_modules_cache: &restore_modules_cache
4141
# name: Installing project dependencies
4242
# command: pnpm run inst
4343
# - save_cache:
44-
# key: parse-commit-message-{{ checksum "shrinkwrap.yaml" }}
44+
# key: parse-commit-message-{{ checksum "yarn.lock" }}
4545
# paths: node_modules
4646
# - run:
4747
# name: Remove node_modules to cleanup workspace
@@ -51,23 +51,19 @@ jobtest: &jobtest
5151
steps:
5252
- checkout
5353
- *restore_modules_cache
54-
- run:
55-
name: Installing PNPM package manager
56-
command: npm i --no-save pnpm
5754
- run:
5855
name: Installing project dependencies
59-
command: npm run inst
56+
command: yarn install --prefer-offline || yarn install
6057
- run:
61-
name: Testing your project
62-
command: npm test
58+
name: Linting and testing your project
59+
command: yarn global add nyc@latest && yarn run lint && yarn test
6360
- save_cache:
64-
key: parse-commit-message-{{ checksum "shrinkwrap.yaml" }}
61+
key: parse-commit-message-{{ checksum "yarn.lock" }}
6562
paths: node_modules
6663
- run:
6764
name: Sending test coverage to CodeCov
6865
command: bash <(curl -s https://codecov.io/bash)
6966

70-
7167
jobs:
7268
# install-node8linux:
7369
# <<: *node8linux
@@ -78,8 +74,8 @@ jobs:
7874
<<: *jobtest
7975

8076
# install-node10linux:
81-
# <<: *node10linux
82-
# <<: *jobinstall
77+
# <<: *node10linux
78+
# <<: *jobinstall
8379

8480
test-node10linux:
8581
<<: *node10linux
@@ -101,17 +97,17 @@ jobs:
10197
# <<: *node10osx
10298
# <<: *jobtest
10399

104-
release:
100+
publish:
105101
<<: *node10linux
106102
steps:
107103
- checkout
108104
- *restore_modules_cache
109105
- run:
110106
name: Bundling your awesome project
111-
command: npm run build
107+
command: yarn run build || echo "No build step."
112108
- run:
113109
name: Releasing and publishing
114-
command: npm run release
110+
command: yarn run release || (yarn global add @tunnckocore/release-cli && yarn run release)
115111

116112
workflows:
117113
version: 2
@@ -141,7 +137,7 @@ workflows:
141137

142138
# Release and NPM publish
143139
# Executed only on master
144-
- release:
140+
- publish:
145141
requires:
146142
# - test-node8osx
147143
# - test-node10osx

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ trim_trailing_whitespace = true
99
insert_final_newline = true
1010

1111
[*.md]
12-
trim_trailing_whitespace = false
12+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 89 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,92 @@
1-
node_modules
1+
dist
2+
parse-commit-message
3+
4+
# Lockfiles. We use Yarn (https://yarnpkg.com/)
5+
package-lock.json
6+
npm-shrinkwrap.json
7+
shrinkwrap.yaml
8+
9+
# Archives and packages #
10+
# ##########
11+
*.7z
12+
*.dmg
13+
*.iso
14+
*.jar
15+
*.rar
16+
*.tar
17+
*.zip
18+
19+
# node-waf configuration
20+
.lock-wscript
21+
22+
# OS, Logs and databases #
23+
# #########################
24+
logs
25+
*.log
26+
*.log*
27+
*.dat
28+
*.sql
29+
*.sqlite
30+
*~
31+
~*
32+
.DS_Store*
33+
34+
# dotenv environment variables file
35+
.env
36+
.pem
37+
*.pem
38+
39+
# Runtime data
40+
pids
41+
*.pid
42+
*.seed
43+
*.pid.lock
44+
45+
# Directory for instrumented libs generated by jscoverage/JSCover
46+
lib-cov
47+
48+
# Coverage directory used by tools like istanbul
249
coverage
50+
51+
# nyc test coverage
352
.nyc_output
53+
54+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
55+
.grunt
56+
57+
# Bower dependency directory (https://bower.io/)
58+
bower_components
59+
60+
# node-waf configuration
61+
.lock-wscript
62+
63+
# Compiled binary addons (https://nodejs.org/api/addons.html)
64+
build/Release
65+
66+
# Dependency directories
67+
node_modules/
68+
jspm_packages/
69+
70+
# TypeScript v1 declaration files
71+
typings/
72+
73+
# Optional npm cache directory
74+
.npm
75+
76+
# Optional eslint cache
477
.eslintcache
5-
.cache
6-
dist
7-
parse-commit-message
8-
*.d.ts
78+
79+
# Optional REPL history
80+
.node_repl_history
81+
82+
# Output of 'npm pack'
83+
*.tgz
84+
85+
# Yarn Integrity file
86+
.yarn-integrity
87+
88+
# dotenv environment variables file
89+
.env
90+
91+
# next.js build output
92+
.next

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
3+
module.exports = require('@tunnckocore/config/eslint');

.flowconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[ignore]
2+
.*/node_modules
3+
.*/dist
4+
5+
[include]
6+
7+
[libs]
8+
9+
[lints]
10+
11+
[options]
12+
13+
[strict]

.gitignore

Lines changed: 58 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
node_modules
2-
coverage
3-
.nyc_output
4-
.eslintcache
5-
.cache
61
dist
72
parse-commit-message
83

9-
# Ignore lockfiles, we use PNPM's shrinkwrap.yaml lockfile
10-
yarn.lock
4+
# Lockfiles. We use Yarn (https://yarnpkg.com/)
115
package-lock.json
126
npm-shrinkwrap.json
7+
shrinkwrap.yaml
138

14-
# Packages #
9+
# Archives and packages #
1510
# ##########
1611
*.7z
1712
*.dmg
@@ -40,3 +35,58 @@ logs
4035
.env
4136
.pem
4237
*.pem
38+
39+
# Runtime data
40+
pids
41+
*.pid
42+
*.seed
43+
*.pid.lock
44+
45+
# Directory for instrumented libs generated by jscoverage/JSCover
46+
lib-cov
47+
48+
# Coverage directory used by tools like istanbul
49+
coverage
50+
51+
# nyc test coverage
52+
.nyc_output
53+
54+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
55+
.grunt
56+
57+
# Bower dependency directory (https://bower.io/)
58+
bower_components
59+
60+
# node-waf configuration
61+
.lock-wscript
62+
63+
# Compiled binary addons (https://nodejs.org/api/addons.html)
64+
build/Release
65+
66+
# Dependency directories
67+
node_modules/
68+
jspm_packages/
69+
70+
# TypeScript v1 declaration files
71+
typings/
72+
73+
# Optional npm cache directory
74+
.npm
75+
76+
# Optional eslint cache
77+
.eslintcache
78+
79+
# Optional REPL history
80+
.node_repl_history
81+
82+
# Output of 'npm pack'
83+
*.tgz
84+
85+
# Yarn Integrity file
86+
.yarn-integrity
87+
88+
# dotenv environment variables file
89+
.env
90+
91+
# next.js build output
92+
.next

.nycrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./node_modules/@tunnckocore/config/nyc.json",
3+
"exclude": [
4+
"test",
5+
"src/plugins/index.js"
6+
]
7+
}

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
3+
module.exports = require('@tunnckocore/config/prettier');

0 commit comments

Comments
 (0)