-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
major(refactor): BREAKING CHANGE: require Node >= 7 (b/c koa-send@4)
fixes #4, resolves #5 BREAKING CHANGE: rewrite from scratch; fix bugs; update build process, npm scripts & boilerplate stuff
- Loading branch information
tunnckoCore
committed
Aug 6, 2017
1 parent
b58a8a3
commit 5aa1a28
Showing
15 changed files
with
4,642 additions
and
1,808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Always-ignore dirs # | ||
# #################### | ||
_gh_pages | ||
node_modules | ||
jspm_packages | ||
bower_components | ||
components | ||
vendor | ||
build | ||
dest | ||
lib-cov | ||
coverage | ||
.nyc_output | ||
nbproject | ||
cache | ||
temp | ||
tmp | ||
|
||
# Packages # | ||
# ########## | ||
*.7z | ||
*.dmg | ||
*.iso | ||
*.jar | ||
*.rar | ||
*.tar | ||
*.zip | ||
|
||
# OS, Logs and databases # | ||
# ######################### | ||
logs | ||
*.pid | ||
*.dat | ||
*.log | ||
*.sql | ||
*.sqlite | ||
*~ | ||
~* | ||
|
||
# Editors | ||
*.idea | ||
|
||
# Another files # | ||
# ############### | ||
Icon? | ||
.DS_Store* | ||
Thumbs.db | ||
ehthumbs.db | ||
Desktop.ini | ||
npm-debug.log | ||
.directory | ||
._* | ||
lcov.info | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Grunt intermediate storage | ||
# see here: http://gruntjs.com/creating-plugins#storing-task-files | ||
.grunt | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"extends": ["standard", "standard-jsx", "standard-react"], | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"browser": true | ||
}, | ||
"plugins": ["fp", "jsdoc"], | ||
"rules": { | ||
"jsdoc/check-param-names": "error", | ||
"jsdoc/check-tag-names": "off", | ||
"jsdoc/check-types": "error", | ||
"jsdoc/newline-after-description": "error", | ||
"jsdoc/require-description-complete-sentence": "off", | ||
"jsdoc/require-example": "off", | ||
"jsdoc/require-hyphen-before-param-description": "off", | ||
"jsdoc/require-param": "error", | ||
"jsdoc/require-param-description": "error", | ||
"jsdoc/require-param-type": "error", | ||
"jsdoc/require-returns-type": "off", | ||
|
||
"react/jsx-closing-bracket-location": "warn", | ||
"react/jsx-indent-props": "warn", | ||
"react/jsx-indent": "warn", | ||
|
||
"jsx-quotes": ["error", "prefer-double"], | ||
|
||
"import/order": "error", | ||
"import/newline-after-import": "error", | ||
"import/no-extraneous-dependencies": "error", | ||
"import/no-unresolved": ["error", { "commonjs": true }], | ||
|
||
"fp/no-loops": "error", | ||
"fp/no-arguments": "error", | ||
"fp/no-mutating-assign": "off", | ||
|
||
"no-var": "error", | ||
"linebreak-style": ["error", "unix"], | ||
|
||
"generator-star-spacing": ["error", { "before": true, "after": true }], | ||
|
||
"computed-property-spacing": ["error", "never"], | ||
"object-curly-spacing": ["error", "always"], | ||
"space-before-function-paren": ["error", "always"], | ||
|
||
"prefer-const": "off", | ||
"prefer-destructuring": "off", | ||
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }], | ||
|
||
"arrow-parens": ["error", "always"], | ||
"arrow-body-style": [ | ||
"error", | ||
"as-needed", | ||
{ | ||
"requireReturnForObjectLiteral": false | ||
} | ||
], | ||
|
||
"no-empty": ["error", { "allowEmptyCatch": true }], | ||
|
||
"max-params": ["error", { "max": 3 }], | ||
"max-statements": ["error", { "max": 20 }], | ||
"max-statements-per-line": "error", | ||
"max-nested-callbacks": ["error", { "max": 5 }], | ||
"max-depth": ["error", { "max": 5 }], | ||
"max-len": [ | ||
"error", | ||
{ | ||
"ignoreTemplateLiterals": false, | ||
"ignoreComments": true | ||
} | ||
], | ||
|
||
"no-use-before-define": [ | ||
"warn", | ||
{ "functions": false, "classes": true, "variables": true } | ||
], | ||
|
||
"comma-dangle": [ | ||
"error", | ||
{ | ||
"arrays": "always-multiline", | ||
"objects": "always-multiline", | ||
"imports": "never", | ||
"exports": "never", | ||
"functions": "ignore" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Enforce Unix newlines | ||
* text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
registry=http://registry.npmjs.org/ | ||
save-exact=true | ||
save=true | ||
progress=true | ||
silent=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
sudo: false | ||
language: node_js | ||
|
||
node_js: | ||
- "node" | ||
- "6" | ||
- "4" | ||
- "0.12" | ||
- "0.10" | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- node_js: "4" | ||
- node_js: "0.12" | ||
- node_js: "0.10" | ||
cache: | ||
directories: | ||
- node_modules | ||
|
||
notifications: | ||
email: false | ||
|
||
after_success: npm run report-coverage | ||
node_js: | ||
- '8' | ||
- '7' | ||
|
||
before_install: | ||
- npm install --global npm@latest | ||
|
||
before_script: | ||
- npm prune | ||
|
||
after_success: | ||
- npm run semantic-release | ||
- bash <(curl -s https://codecov.io/bash) | ||
|
||
branches: | ||
except: | ||
- /^v\d+\.\d+\.\d+$/ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.