-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds travsi CI support * Adds trusty dist to travis runs * Changes to install latest `npm` version * Adds strict mode * Adds linting for supported es6 features. * Adds stages to travis job * Changes spread operator to apply * Installs `libnotify-bin` on travis test machine * Changes to only run apt-get on linux
- Loading branch information
Showing
5 changed files
with
62 additions
and
31 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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{ | ||
"extends": "airbnb-base", | ||
"extends": ["airbnb-base", "eslint:recommended", "plugin:node/recommended"], | ||
"plugins": [ | ||
"import" | ||
"import", | ||
"node" | ||
], | ||
"rules": { | ||
"no-console": ["error", { "allow": ["warn", "error"] }] | ||
}, | ||
"env": { | ||
"node": true | ||
"node": true, | ||
"es6": 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
language: node_js | ||
dist: trusty | ||
os: | ||
- linux | ||
- osx | ||
node_js: | ||
- '4' | ||
- '5' | ||
- '6' | ||
- '7' | ||
- 'node' | ||
before_install: | ||
- npm i -g npm@latest | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libnotify-bin; fi | ||
jobs: | ||
include: | ||
- stage: lint | ||
script: npm run lint | ||
- stage: test | ||
script: npm test |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -24,5 +24,8 @@ | |
}, | ||
"engines": { | ||
"node": ">=4.x" | ||
}, | ||
"dependencies": { | ||
"eslint-plugin-node": "^5.1.0" | ||
} | ||
} |