git clone https://github.com/basarat/byots.git
cd byots
git submodule update --recursive
package.json points to byots.js and boyts.d.ts in the bin folder:
byots.jssimple manually authored.byots.d.tssimple manually authored.typescript.d.ts: Generated from latest TypeScript just exposing all the helpful stuff we wanted.
See prepare.sh for comments.
Quick workflow (runs prepare and release and npm publish):
quick.shIf something goes wrong with our build we can use this to quickly do releases to see what's going on 🌹
prepare.shManual verification here ... then:
release.sh
npm publishThis is just the documentation on how travis was setup to do automatic deploys (to help you with forks) 🌹
- install travis
gem install travis - go online and switch on travis on the repo
- now go to your repository directory
- Generate a github token
settings -> personal access tokens -> generate new token(give itrepoaccess) - run
travis encrypt -r <USER>/<REPOSITORY> GH_TOKEN=<GH-TOKEN> --add env.global. This should setupenv.global.securein your.travis.yml
This GH_TOKEN is used in our after_success script (release.sh is doing the push) 🌹
after_success:
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
- git config --global push.default matching
- bash release.sh
- Then setup the API key using npm/npm#8970 (comment) (your
.npmrcis usually atc:\users\<name>\.npmrc) - NPM deploy setup by simply running
travis setup npm.- This should setup
deploy(withprovider,email,api_key,on) in your.travis.yml
- This should setup
- Since we want to deploy the
builddirectory which is git ignored setdeploy.skip_cleanup: true.