Skip to content

Commit

Permalink
adapting build process
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoGentile committed May 1, 2017
1 parent e2118ef commit 69d537a
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 75 deletions.
124 changes: 64 additions & 60 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,65 +1,69 @@
{
// Parser
"parser": "babel-eslint",
"env": {
"node": true,
"browser": true
},
// Parser
"parser": "babel-eslint",
"parserOptions": {
// ECMA Features
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"modules": true,
"objectLiteralComputedProperties": true,
"templateStrings": true,
"jsx": true
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
// Possible Errors
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-func-assign": 2,
"no-inner-declarations": 2,
"no-unreachable": 2,
"no-unexpected-multiline": 2,
// Best practices
"consistent-return": 0,
"curly": [2, "multi-line"],
"eqeqeq": 2,
"no-else-return": 2,
"no-multi-spaces": 0,
// Strict mode
"strict": 0,
// Variables
"no-shadow": 0,
"no-unused-vars": 2,
"no-use-before-define": 0,
// Style
"brace-style": [2, "1tbs"],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"consistent-this": [2, "that"],
"lines-around-comment": [2, {"allowBlockStart": true}],
"key-spacing": 0,
"new-parens": 0,
"quotes": [2, "single", "avoid-escape"],
"no-underscore-dangle": 0,
"no-unneeded-ternary": 2,
"semi": 2,
// ES6
"no-var": 2,
"no-this-before-super": 2,
"object-shorthand": 2,
},
"env": {
"node": true,
"browser": true
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"modules": true,
"objectLiteralComputedProperties": true,
"templateStrings": true,
"jsx": true
}
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"rules": {
// Possible Errors
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-func-assign": 2,
"no-inner-declarations": 2,
"no-unreachable": 2,
"no-unexpected-multiline": 2,
// Best practices
"consistent-return": 0,
"curly": [2, "multi-line"],
"eqeqeq": 2,
"no-else-return": 2,
"no-multi-spaces": 0,
// Strict mode
"strict": 0,
// Variables
"no-shadow": 0,
"no-unused-vars": [2, { "args": "none" }],
"no-use-before-define": 0,
// Style
"brace-style": [2, "1tbs"],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"consistent-this": [2, "that"],
"lines-around-comment": [2, {"allowBlockStart": true}],
"key-spacing": 0,
"new-parens": 0,
"quotes": [2, "single", "avoid-escape"],
"no-underscore-dangle": 0,
"no-unneeded-ternary": 2,
"semi": 2,
// ES6
"no-var": 2,
"no-this-before-super": 2,
"object-shorthand": 2
}
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ dist
docs/dist
node_modules
npm-debug.log
!/src/modules/BaseLink.js
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
branches:
only:
- master
notifications:
email: false
node_js:
- '7'
- '6'
- '5'
- '4'
before_script:
- npm prune
script:
- npm run lint
- npm run test:cover
- npm run build
after_success:
- npm run coveralls
- npm run semantic-release

35 changes: 22 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"private": true,
"name": "react-mobx-router5",
"version": "0.0.0",
"version": "0.0.0-development",
"description": "Router5 integration with mobX and react",
"homepage": "https://github.com/LeonardoGentile/react-mobx-router5",
"repository": {
"type": "git",
"url": "https://github.com/LeonardoGentile/react-mobx-router5.git"
},
"bugs": {
"url": "https://github.com/LeonardoGentile/react-mobx-router5/issues"
},
"author": "Leonardo Gentile",
"contributors": [],
"license": "MIT",
Expand All @@ -17,13 +20,21 @@
"react",
"router5",
"functional",
"routing"
"routing",
"observable",
"reactive",
"observer"
],
"files": [
"dist",
"src",
"README.md",
"CHANGELOG.md",
"CONTRIBUTING.md",
"LICENSE.txt"
],
"bugs": {
"url": "https://github.com/LeonardoGentile/react-mobx-router5/issues"
},
"main": "dist/index.js",
"jsnext:main": "dist/index.es.js",
"module": "dist/index.es.js",
"babel": {
"comments": false,
"presets": [
Expand All @@ -36,10 +47,6 @@
"transform-decorators-legacy"
]
},
"eslintConfig": {
"parser": "babel-eslint",
"extends": "airbnb-base"
},
"dependencies": {
"babel-runtime": "^6.11.6"
},
Expand All @@ -54,11 +61,13 @@
"babel-preset-stage-0": "^6.16.0",
"babel-register": "^6.16.3",
"chai": "3.5.0",
"commitizen": "2.9.6",
"chai-enzyme": "^0.6.1",
"coveralls": "^2.11.14",
"cz-conventional-changelog": "2.0.0",
"del": "^2.2.2",
"enzyme": "^2.8.0",
"eslint": "^3.8.0",
"eslint": "^3.19.0",
"eslint-config-airbnb-base": "^10.0.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-react": "^6.10.3",
Expand All @@ -72,8 +81,8 @@
"react": "~15.4.2",
"react-addons-test-utils": "~15.4.2",
"react-dom": "~15.4.2",
"rollup": "^0.36.3",
"rollup-plugin-babel": "^2.6.1",
"rollup": "^0.41.6",
"rollup-plugin-babel": "^2.7.1",
"router5": "~4.5.2",
"sinon": "^2.0.0-pre.3",
"sinon-chai": "^2.9.0"
Expand Down

0 comments on commit 69d537a

Please sign in to comment.