Skip to content

Commit b9351a0

Browse files
committed
chore: initial commit
0 parents  commit b9351a0

Some content is hidden

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

41 files changed

+790
-0
lines changed

.babelrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["es2015-node4", "stage-0"],
3+
"plugins": ["add-module-exports"]
4+
}

.conventional-changelog-lintrc

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"rules": {
3+
"type-enum": [2,
4+
"always",
5+
[
6+
"feat",
7+
"fix",
8+
"docs",
9+
"style",
10+
"refactor",
11+
"test",
12+
"chore",
13+
"revert"
14+
]
15+
],
16+
"type-case": [2,
17+
"always",
18+
"lowerCase"
19+
],
20+
"type-empty": [2,
21+
"never"
22+
],
23+
"type-max-length": [0,
24+
"always",
25+
"Infinity"
26+
],
27+
"type-min-length": [0,
28+
"always",
29+
0
30+
],
31+
"scope-enum": [0,
32+
"always",
33+
[]
34+
],
35+
"scope-case": [2,
36+
"always",
37+
"lowerCase"
38+
],
39+
"scope-empty": [2,
40+
"never"
41+
],
42+
"scope-max-length": [0,
43+
"always",
44+
"Infinity"
45+
],
46+
"scope-min-length": [0,
47+
"always",
48+
0],
49+
"subject-case": [0,
50+
"always",
51+
"lowerCase"
52+
],
53+
"subject-empty": [2,
54+
"never"
55+
],
56+
"subject-max-length": [0,
57+
"always",
58+
"Infinity"
59+
],
60+
"subject-min-length": [0,
61+
"always",
62+
0
63+
],
64+
"subject-full-stop": [2,
65+
"never",
66+
"."
67+
],
68+
"body-case": [2,
69+
"always",
70+
"lowerCase"
71+
],
72+
"body-empty": [1,
73+
"never"
74+
],
75+
"body-leading-blank": [1,
76+
"always"
77+
],
78+
"body-max-length": [0,
79+
"always",
80+
"Infinity"
81+
],
82+
"body-min-length": [0,
83+
"always",
84+
0
85+
],
86+
"header-max-length": [2,
87+
"always",
88+
80
89+
],
90+
"header-min-length": [0,
91+
"always",
92+
0
93+
],
94+
"lang": [1,
95+
"always",
96+
"en"
97+
]
98+
},
99+
"wildcards": {
100+
"merge": [
101+
"/^(Merge pull request)|(Merge (.*?) into (.*?)$)/"
102+
],
103+
"release": [
104+
"/^\\d.\\d.\\d$/"
105+
],
106+
"revert": [
107+
"revert: (.*)"
108+
]
109+
}
110+
}

.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[*]
2+
end_of_line = lf
3+
insert_final_newline = true
4+
trim_trailing_whitespace = true
5+
indent_style = tab
6+
7+
[{.*rc,*.yml,*.md,package.json,*.svg}]
8+
indent_style = space
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["xo"]
3+
}

.gitignore

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
15+
coverage
16+
17+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18+
.grunt
19+
20+
# node-waf configuration
21+
.lock-wscript
22+
23+
# Compiled binary addons (http://nodejs.org/api/addons.html)
24+
build/Release
25+
26+
# Dependency directory
27+
node_modules
28+
29+
# Optional npm cache directory
30+
.npm
31+
32+
# Optional REPL history
33+
.node_repl_history
34+
35+
# jsonlint-cli cache
36+
.tmp
37+
38+
# transpiled artifacts
39+
distribution

.jsonlintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"validate": "http://json.schemastore.org/package"
3+
}

.npmrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
spin = false
2+
progress = false
3+
save-exact = true
4+
cache-min = 99999999

package.json

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"name": "conventional-changelog-lint",
3+
"version": "0.0.0",
4+
"description": "Lint commit messages against a conventional-changelog preset",
5+
"main": "distribution/index.js",
6+
"bin": {
7+
"conventional-changelog-lint": "distribution/cli.js"
8+
},
9+
"scripts": {
10+
"build": "babel source --out-dir distribution",
11+
"watch": "npm run build -- --watch",
12+
"commit": "git-cz",
13+
"changelog": "conventional-changelog --preset angular --infile changelog.md --same-file --output-unreleased",
14+
"push": "git push && git push --tags && hub release create \"v$(cat .git/RELEASE_VERSION.tmp)\" --message=\"v$(cat .git/RELEASE_VERSION.tmp)\n$(cat .git/COMMITMSG.tmp)\" && npm publish && rm .git/RELEASE_VERSION.tmp && rm .git/COMMITMSG.tmp",
15+
"release": "npm version $(conventional-recommended-bump -p angular)",
16+
"test": "eslint *.js && jsonlint-cli *.json && node distribution/cli.js",
17+
"preversion": "npm test",
18+
"version": "npm run changelog && git add . && echo \"$(conventional-changelog -p angular)\" > .git/COMMITMSG.tmp",
19+
"postversion": "echo $(git log -1 --pretty=%B HEAD^..HEAD) > .git/RELEASE_VERSION.tmp && git tag -d v$(cat .git/RELEASE_VERSION.tmp) && git commit --amend -m \"chore(release): $(cat .git/RELEASE_VERSION.tmp)\n$(cat .git/COMMITMSG.tmp)\" && git tag -a v$(cat .git/RELEASE_VERSION.tmp) -m \"$(cat .git/COMMITMSG.tmp)\""
20+
},
21+
"repository": {
22+
"type": "git",
23+
"url": "git+https://github.com/marionebl/conventional-changelog-lint.git"
24+
},
25+
"bugs": {
26+
"url": "https://github.com/marionebl/conventional-changelog-lint/issues"
27+
},
28+
"homepage": "https://github.com/marionebl/conventional-changelog-lint#readme",
29+
"keywords": [
30+
"conventional",
31+
"conventional-changelog",
32+
"log",
33+
"changelog",
34+
"lint",
35+
"check"
36+
],
37+
"author": {
38+
"name": "Mario Nebl",
39+
"email": "[email protected]"
40+
},
41+
"license": "MIT",
42+
"devDependencies": {
43+
"babel": "6.5.1",
44+
"babel-cli": "6.4.0",
45+
"babel-plugin-add-module-exports": "0.1.2",
46+
"babel-polyfill": "6.3.14",
47+
"babel-preset-es2015-node4": "2.0.3",
48+
"babel-preset-stage-0": "6.5.0",
49+
"commitizen": "2.5.0",
50+
"conventional-changelog-cli": "1.0.0",
51+
"conventional-recommended-bump": "0.1.0",
52+
"eslint": "1.10.3",
53+
"eslint-config-xo": "0.9.2",
54+
"jsonlint-cli": "0.2.7"
55+
},
56+
"dependencies": {
57+
"chalk": "1.1.1",
58+
"conventional-changelog-angular": "1.0.0",
59+
"conventional-commits-parser": "1.0.1",
60+
"franc": "1.1.2",
61+
"get-stdin": "5.0.1",
62+
"git-raw-commits": "1.0.0",
63+
"lodash.merge": "4.1.0",
64+
"lodash.pick": "4.0.1",
65+
"meow": "3.7.0"
66+
}
67+
}

0 commit comments

Comments
 (0)