Skip to content

Commit

Permalink
Make sure that dist files are added to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
thoov committed Dec 22, 2015
1 parent 5d3d9dc commit 5394459
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ sudo: false
cache:
directories:
- node_modules
before_script:
- npm run lint
install:
- npm install
before_script:
- npm run lint
script:
- npm test
before_deploy:
- npm run build
deploy:
provider: npm
email: [email protected]
Expand All @@ -20,6 +22,5 @@ deploy:
skip_cleanup: true
on:
tags: true

after_success:
- npm run publish_coverage
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mock-socket",
"version": "1.0.0",
"version": "1.0.1",
"description": "A mocking library for WebSockets",
"main": "./dist/mock-socket",
"directories": {
Expand All @@ -10,7 +10,6 @@
"start": "./node_modules/broccoli-cli/bin/broccoli serve",
"test": "BABEL_ENV=test babel-node ./node_modules/.bin/isparta cover _mocha",
"build": "rm -rf dist; broccoli build dist",
"browser": "npm run build; ./node_modules/testem/testem.js",
"lint": "eslint src tests",
"publish_coverage": "CODECLIMATE_REPO_TOKEN=81e42661a39fae978969b4a10f6cc0a629f613a3d88faaf8fa36750a02f00fa0 codeclimate-test-reporter < coverage/lcov.info"
},
Expand Down

0 comments on commit 5394459

Please sign in to comment.