Skip to content

Commit 8d6b8c7

Browse files
Initial commit
0 parents  commit 8d6b8c7

26 files changed

+13143
-0
lines changed

.appveyor.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: "{build}"
2+
3+
install:
4+
- ps: $nodejs_version = Get-Content .nvmrc -Raw | foreach{ $_.Trim()}
5+
- ps: Install-Product node $nodejs_version
6+
- npm install
7+
8+
build: off
9+
10+
test_script:
11+
- node --version && npm --version
12+
- npm run test
13+
14+
matrix:
15+
fast_finish: true

.babelrc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"env": {
3+
"development": {
4+
"presets": [
5+
[
6+
"@babel/preset-env",
7+
{
8+
"targets": {
9+
"browsers": [
10+
"last 2 versions",
11+
"ie >= 11"
12+
],
13+
},
14+
"corejs": "3.1.4",
15+
"useBuiltIns": "usage"
16+
}
17+
]
18+
],
19+
"plugins": [
20+
"istanbul"
21+
]
22+
},
23+
"production": {
24+
"presets": [
25+
[
26+
"@babel/preset-env",
27+
{
28+
"targets": {
29+
"browsers": [
30+
"last 2 versions",
31+
"ie >= 11"
32+
],
33+
},
34+
"corejs": "3.1.4",
35+
"useBuiltIns": "usage"
36+
}
37+
],
38+
"minify"
39+
],
40+
"plugins": [
41+
"istanbul"
42+
]
43+
}
44+
}
45+
}

.branchlintrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"branchNameLinter": {
3+
"prefixes": ["feature", "hotfix", "release"],
4+
"suggestions": {
5+
"features": "feature",
6+
"feat": "feature",
7+
"fix": "hotfix",
8+
"releases": "release"
9+
},
10+
"banned": ["wip"],
11+
"skip": ["skip-ci"],
12+
"disallowed": ["master", "develop", "staging"],
13+
"seperator": "/",
14+
"msgBranchBanned": "Branches with the name \"%s\" are not allowed.",
15+
"msgBranchDisallowed": "Pushing to \"%s\" is not allowed, use git-flow.",
16+
"msgPrefixNotAllowed": "Branch prefix \"%s\" is not allowed.",
17+
"msgPrefixSuggestion": "Instead of \"%s\" try \"%s\".",
18+
"msgSeperatorRequired": "Branch \"%s\" must contain a seperator \"%s\"."
19+
}
20+
}

.commitlintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"],
3+
"rules": {
4+
"scope-empty": [2, "never"]
5+
}
6+
}

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig helps developers define and maintain
2+
# consistent coding styles between different editors and IDEs.
3+
4+
root = true
5+
6+
[*]
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test

.eslintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": "airbnb",
4+
"env": {
5+
"mocha": true
6+
},
7+
"rules": {
8+
"comma-dangle": ["error", "only-multiline"]
9+
}
10+
}

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
# nyc test coverage
18+
.nyc_output
19+
20+
# Compiled binary addons (http://nodejs.org/api/addons.html)
21+
build/Release
22+
23+
# Dependency directories
24+
node_modules
25+
jspm_packages
26+
27+
# Optional npm cache directory
28+
.npm
29+
30+
# Optional REPL history
31+
.node_repl_history
32+
33+
# Editors
34+
.idea
35+
36+
# Lib
37+
lib
38+
39+
# npm package lock
40+
package-lock.json
41+
yarn.lock
42+
43+
others
44+
.DS_Store

.huskyrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hooks": {
3+
"pre-push": "npx branch-name-lint .branchlintrc",
4+
"pre-commit": "npm run lint",
5+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
6+
}
7+
}

.npmignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
*.log
2+
npm-debug.log*
3+
4+
# Coverage directory used by tools like istanbul
5+
coverage
6+
.nyc_output
7+
8+
# Dependency directories
9+
node_modules
10+
11+
# npm package lock
12+
package-lock.json
13+
yarn.lock
14+
15+
# project files
16+
src
17+
test
18+
examples
19+
CHANGELOG.md
20+
.travis.yml
21+
.editorconfig
22+
.eslintignore
23+
.eslintrc
24+
.babelrc
25+
.gitignore

0 commit comments

Comments
 (0)