Skip to content

Commit

Permalink
fix: updating publish and deploy steps
Browse files Browse the repository at this point in the history
  • Loading branch information
David Atchley committed Mar 13, 2017
1 parent 8376a08 commit 6c259e9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://registry.npmjs.org
init.author.name=David Atchley
init.author.email=[email protected]
27 changes: 14 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---
sudo: false
language: node_js
node_js:
- stable
sudo: false
cache:
directories:
- docs/vendor/bundle
- node_modules
- stable
script:
- |
if [ "$TRAVIS_PULL_REQUEST" = false ]; then
set -e
npm run test:cov
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
fi
- npm test
before_install:
- npm i -g makeshift && makeshift -s @datchley -r https://registry.npmjs.org
after_success:
- npm run report-coverage
deploy:
provider: npm
email: [email protected]
api_key: $NPM_TOKEN
on:
tags: true
repo: datchley/react-scale-text
20 changes: 18 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
"build:umd": "webpack && NODE_ENV=production webpack",
"build:analyze": "webpack --json > ./lib/build-stats.json",
"lint": "eslint src examples",
"test": "jest",
"test": "nyc ./node_modules/.bin/ava -v",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"prepublish": "npm run lint && npm run test && npm run clean && npm run build && npm run build:umd"
"prepublish": "npm run lint && npm run test && npm run clean && npm run build && npm run build:umd",
"report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"standard": "standard index.js",
"release": "standard-version"
},
"repository": {
"type": "git",
Expand All @@ -29,22 +32,30 @@
},
"homepage": "https://github.com/datchley/react-scale-text",
"devDependencies": {
"ava": "^0.16.0",
"babel-cli": "^6.4.5",
"babel-core": "^6.4.5",
"babel-jest": "^10.0.2",
"babel-loader": "^6.2.1",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"co-exec": "^1.0",
"codecov": "^1.0.1",
"coveralls": "^2.11.8",
"enzyme": "^2.7.1",
"enzyme-to-json": "^1.4.5",
"eslint": "^2.3.0",
"eslint-config-airbnb": "^6.0.2",
"eslint-plugin-react": "^4.1.0",
"ghooks": "^1.2.4",
"jest": "^19.0.2",
"nyc": "^10.0.0",
"react-addons-test-utils": "^15.0.1",
"react-dom": "^15.0.1",
"rimraf": "^2.5.0",
"standard": "^8.4.0",
"standard-version": "^4.0.0",
"travis": "^0.1.1",
"webpack": "^1.12.11",
"webpack-dev-server": "^1.14.1"
},
Expand All @@ -62,5 +73,10 @@
"react-addons-test-utils",
"enzyme"
]
},
"config": {
"ghooks": {
"pre-commit": "npm run standard"
}
}
}

0 comments on commit 6c259e9

Please sign in to comment.