Skip to content

Commit

Permalink
major(refactor): BREAKING CHANGE: require Node >= 7 (b/c koa-send@4)
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 15 changed files with 4,642 additions and 1,808 deletions.
69 changes: 69 additions & 0 deletions .eslintignore
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
90 changes: 90 additions & 0 deletions .eslintrc.json
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"
}
]
}
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Enforce Unix newlines
* text eol=lf
11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@ components
vendor
build
dest
src
lib-cov
coverage
.nyc_output
nbproject
cache
temp
tmp
koa-better-serve

# Packages #
# ##########
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
Expand All @@ -39,6 +37,9 @@ logs
*~
~*

# Editors
*.idea

# Another files #
# ###############
Icon?
Expand All @@ -57,10 +58,6 @@ pids
*.seed
*.pid.lock


# nyc test coverage
.nyc_output

# Grunt intermediate storage
# see here: http://gruntjs.com/creating-plugins#storing-task-files
.grunt
Expand Down
5 changes: 5 additions & 0 deletions .npmrc
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
34 changes: 20 additions & 14 deletions .travis.yml
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+$/
82 changes: 0 additions & 82 deletions .verb.md

This file was deleted.

25 changes: 0 additions & 25 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 5aa1a28

Please sign in to comment.