Add travis config and prepare package to be published on npm

This commit is contained in:
ErickSkrauch 2019-05-24 18:51:41 +03:00
parent 4f58034415
commit 0752d52be4
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E
3 changed files with 33 additions and 0 deletions

9
.npmignore Normal file
View File

@ -0,0 +1,9 @@
src
tests
.eslintrc.js
.gitignore
.travis.yml
babel.config.js
jest.config.js
tsconfig.json
yarn.lock

21
.travis.yml Normal file
View File

@ -0,0 +1,21 @@
language: node_js
node_js:
- "11"
cache:
yarn: true
directories:
- node_modules
script:
- yarn tsc
- yarn test
- yarn build
deploy:
- provider: npm
skip_cleanup: true
email: $NPM_USER_EMAIL
api_key: $NPM_API_KEY
on:
tags: true

View File

@ -17,6 +17,9 @@
"elyby" "elyby"
], ],
"license": "MIT", "license": "MIT",
"publishConfig": {
"access": "public"
},
"scripts": { "scripts": {
"build": "babel src -d lib --extensions .ts,.js", "build": "babel src -d lib --extensions .ts,.js",
"test": "jest" "test": "jest"