Skip to content

Commit

Permalink
Add Travis CI to check linting
Browse files Browse the repository at this point in the history
  • Loading branch information
OmeGak authored and wip-abramson committed Apr 13, 2019
1 parent 87518c1 commit 2e4c8fd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: node_js
node_js:
- "10"
sudo: required
before_install:
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn=1.15.2-1
cache:
yarn: true
install:
- yarn install
script:
- yarn lint
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"overwrite-lib": "cpx 'temp/**/*.*' lib --clean",
"build-lib": "rimraf temp && NODE_ENV=production babel src/lib --out-dir temp --copy-files --ignore __tests__,spec.js,test.js,__snapshots__ && cpx package.json ./temp/ && npm run overwrite-lib",
"build": "rimraf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__ && cpx package.json ./dist/",
"publish-dist": "yarn build && npm publish dist --access public"
"publish-dist": "yarn build && npm publish dist --access public",
"lint": "yarn run standard"
},
"devDependencies": {
"@babel/cli": "^7.4.3",
Expand Down

0 comments on commit 2e4c8fd

Please sign in to comment.