Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Added yarn support, switched to prepublishOnly #928

Merged
merged 1 commit into from
Sep 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,22 @@ language: node_js
node_js:
- "4.0"
- "4"
- "7"
- "stable"

# before_install:
# - npm config set ignore-scripts true

script:
- npm test
- yarn test
- yarn run lint
- yarn run build
- yarn run tsdef

cache: yarn
# cache:
# directories:
# - node_modules

branches:
except:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build:lib": "babel src --out-dir lib",
"analyze": "webpack src/index.js dist/index.js --config webpack.config.prod.js --json > stats.json",
"preversion": "npm run test && npm run lint",
"prepublish": "npm test && npm run lint && npm run build && npm run tsdef",
"prepublishOnly": "npm test && npm run lint && npm run build && npm run tsdef",
"postversion": "git push && git push --tags",
"publish:beta": "npm publish --tag beta",
"tsdef": "cp -f immutable.d.ts lib/",
Expand Down
Loading