-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Rob Loach edited this page May 29, 2015
·
15 revisions
This is the Boilerplate to create and update JSTransformers.
To create a new JSTransformer:
- Download Boilerplate with git
git clone https://github.com/jstransformers/boilerplate.git
cd boilerplate
- Remove
origin
, since we'll have our own
git remote remove origin
- Activate Travis CI and Coveralls
- Update module name in
package.json
andREADME.md
- Create a new GitHub repository without initializing with a
README.md
- Push up your new JSTransformer to GitHub
git remote add origin [email protected]:jstransformers/jstransformer-NAMEHERE.git
git push origin master
- Let the real fun begin!
To update a transform to the latest boilerplate:
- Create a new
boilerplate
branch
git checkout -b boilerplate
- Bring in the latest changes from Boilerplate
git remote add boilerplate https://github.com/jstransformers/boilerplate.git
git fetch --all
git pull boilerplate master
- Resolve merge conflicts and update instances of
foo
accordingly - Run tests to ensure everything is working
npm install
npm test
- Commit your changes and push them up to the
boilerplate
remote
git add -A
git commit
git push origin boilerplate
- Create a Pull Request with the boilerplate update, and dance! 💃