Skip to content
Rob Loach edited this page May 29, 2015 · 15 revisions

This is the Boilerplate to create and update JSTransformers.

Usage

Create

To create a new JSTransformer:

  1. Download Boilerplate with git
git clone https://github.com/jstransformers/boilerplate.git
cd boilerplate
  1. Remove origin, since we'll have our own
git remote remove origin
  1. Activate Travis CI and Coveralls
  2. Update module name in package.json and README.md
  3. Create a new GitHub repository without initializing with a README.md
  4. Push up your new JSTransformer to GitHub
git remote add origin [email protected]:jstransformers/jstransformer-NAMEHERE.git
git push origin master
  1. Let the real fun begin!

Update

To update a transform to the latest boilerplate:

  1. Create a new boilerplate branch
git checkout -b boilerplate
  1. Bring in the latest changes from Boilerplate
git remote add boilerplate https://github.com/jstransformers/boilerplate.git
git fetch --all
git pull boilerplate master
  1. Resolve merge conflicts and update instances of foo accordingly
  2. Run tests to ensure everything is working
npm install
npm test
  1. Commit your changes and push them up to the boilerplate remote
git add -A
git commit
git push origin boilerplate
  1. Create a Pull Request with the boilerplate update, and dance! 💃
Clone this wiki locally