-
Notifications
You must be signed in to change notification settings - Fork 273
Contributing
Stephan Bösch-Plepelits edited this page Dec 23, 2015
·
7 revisions
There are a few steps to take to get twig.js building in your environment.
In order work on twig.js you will need node installed to run the tests and create the minified version of twig.js
- Fork and clone the twig.js git repository
- Run
npm installto install the development dependencies - Make your changes to the source files in
src/ - Add/update tests in
test/ - Run
maketo build twig.js and twig.min.js (make -Bto force building) - Run
make testto run the Mocha tests via node.js or open thetest/directory in a web browser (via a web server,file:///path/to/twig.js/testwon't work)
- If possible, create tests (in the
test/directory) which test your changes. E.g. if you found and fixed a bug, create a test which fails in the buggy version. - Please commit only changes in the source code, not in the built files like
twig.js,twig.min.js, etc. We build a final file when releasing a new version. - If possible, rebase your changes to the current master.
- Push a branch to your fork on Github, create a pull request there.