Skip to content

Commit

Permalink
travis npm publish config
Browse files Browse the repository at this point in the history
  • Loading branch information
alisahinozcelik committed Nov 17, 2018
1 parent 825c062 commit e9274f4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//registry.npmjs.org/:email=<EMAIL>
//registry.npmjs.org/:_authToken=<TOKEN>
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ deploy:
local-dir: docs
on:
branch: master
- provider: npm
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN
- provider: script
skip-cleanup: true
script: npm run prepare-and-publish
on:
tags: true
repo: gen-tech/scroll-manager
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@
"name": "@gen-tech/scroll-manager",
"version": "0.0.0",
"description": "Improved Scroll Events & Scroll Management",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"main": "index.js",
"typings": "index.d.ts",
"homepage": "https://gen-tech.github.io/scroll-manager",
"scripts": {
"prepublishOnly": "tsc",
"document": "typedoc --out docs --excludeNotExported --excludePrivate --disableOutputCheck --gitRevision master",
"prepare-github-pages": "npm run document && echo \"\" > ./docs/.nojekyll",
"test": "karma start ./karma.conf.js --single-run",
"test:debug": "karma start",
"cover": "cat ./coverage/lcovonly | coveralls"
"cover": "cat ./coverage/lcovonly | coveralls",
"publish:config-npm": "replace '<EMAIL>' $NPM_EMAIL .npmrc && replace '<TOKEN>' $NPM_TOKEN .npmrc",
"publish:copy-files": "cpy 'LICENSE' 'README.md' '.npmrc' '.npmignore' 'package.json' dist",
"publish:pack": "cd dist && npm pack",
"publish:prepare": "tsc && npm run publish:config-npm && npm run publish:copy-files && npm run publish:pack",
"publish:package": "npm publish ./dist/gen-tech-scroll-manager-$TRAVIS_TAG.tgz",
"prepare-and-publish": "npm run publish:prepare && npm run publish:package"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -44,11 +49,13 @@
"@types/jasmine": "^2.8.11",
"@types/platform": "^1.3.1",
"coveralls": "^3.0.2",
"cpy-cli": "^2.0.0",
"jasmine": "^3.3.0",
"karma": "^3.1.1",
"karma-chrome-launcher": "^2.2.0",
"karma-jasmine": "^2.0.0",
"karma-typescript": "3.0.13",
"replace": "^1.0.0",
"typedoc": "^0.13.0",
"typescript": "^3.1.6"
},
Expand Down
17 changes: 0 additions & 17 deletions scripts/report.js

This file was deleted.

0 comments on commit e9274f4

Please sign in to comment.