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,13 +17,15 @@ flow-typed/*
# Sources, tests and builder files # Sources, tests and builder files
builder builder
deploy
src src
test test
internals internals
.flowconfig .flowconfig
.babelrc .babelrc
.eslintignore .eslintignore
.eslintrc .esdoc.json
.eslintrc.js
.travis.yml .travis.yml
jest.json jest.json
renovate.json renovate.json

View File

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