add travis ci config plus npm scripts
MODIFY
.travis.yml
.travis.yml
@@ -8,9 +8,17 @@ install:
- npm install
script:
-# - npm run shim:lint
- npm run test
+matrix:
+ include:
+ - env: LINT
+ script:
+ - npm run lint-check
+ - npm run pretty-check
+ allow_failures:
+ - env: LINT
+
after_success:
# - npm run shim:coverage && npm run shim:coveralls

MODIFY
package.json
package.json
"just-test": "tape -r esm test/**/*.js",
"build-intermediate": "node scripts/build-intermediate.js",
"build": "git submodule update --init --recursive && node scripts/build-intermediate.js && rollup --format=iife --output.name=SES --output.exports=named --sourcemap --file=dist/ses-shim.js -- src/index.js",
- "format": "prettier --write '**/*.{js,jsx}'",
- "lint": "eslint '**/*.{js,jsx}' --fix"
+ "pretty-fix": "prettier --write '**/*.{js,jsx}'",
+ "pretty-check": "prettier --check '**/*.{js,jsx}'",
+ "lint-fix": "eslint '**/*.{js,jsx}' --fix",
+ "lint-check": "eslint '**/*.{js,jsx}'"
},
"devDependencies": {
- "rollup": "^1.1.0",
- "rollup-plugin-node-resolve": "^4.0.0",
- "tape": "^4.9.2",
"eslint": "^5.11.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.0",
- "prettier": "1.15.3"
+ "prettier": "^1.16.4",
+ "rollup": "^1.1.0",
+ "rollup-plugin-node-resolve": "^4.0.0",
+ "tape": "^4.9.2"
},
"dependencies": {
"esm": "^3.2.4"

add travis ci config plus npm scripts