Trim npm package contents

This commit is contained in:
Michael Vines 2018-08-22 22:11:33 -07:00
parent ca3582ea5e
commit 0dcd261c38
2 changed files with 11 additions and 7 deletions

View File

@ -17,14 +17,16 @@ flow-typed/*
# Sources, tests and builder files
builder
deploy
src
test
internals
.flowconfig
.babelrc
.eslintignore
.eslintrc
.esdoc.json
.eslintrc.js
.travis.yml
jest.json
renovate.json
rollup.config.js
rollup.config.js

View File

@ -8,9 +8,11 @@ script: npm run test
after_success: npm run coveralls
before_deploy:
- cp -r doc solanaWeb3Api-$TRAVIS_BRANCH
- tar zcf solanaWeb3Api.tgz solanaWeb3Api-$TRAVIS_BRANCH
- cp lib/index.iife.js solanaWeb3.min.js
- rm -rf deploy
- mkdir -p deploy
- cp -r doc deploy/solanaWeb3Api-$TRAVIS_BRANCH
- cp lib/index.iife.js deploy/solanaWeb3.min.js
- ( cd deploy; tar zcf solanaWeb3Api.tgz solanaWeb3Api-$TRAVIS_BRANCH )
deploy:
- provider: pages
@ -23,8 +25,8 @@ deploy:
- provider: releases
skip-cleanup: true
file:
- solanaWeb3.min.js
- solanaWeb3Api.tgz
- deploy/solanaWeb3.min.js
- deploy/solanaWeb3Api.tgz
api_key: $GITHUB_TOKEN
on:
tags: true