Skip to content
Stephan Bösch-Plepelits edited this page Dec 22, 2015 · 7 revisions

There are a few steps to take to get twig.js building in your environment.

Requirements

In order work on twig.js you will need node installed to run the tests and create the minified version of twig.js

Building

  1. Fork and clone the twig.js git repository
  2. Run npm install to install the development dependencies
  3. Make your changes to the source files in src/
  4. Add/update tests in test/
  5. Run make to build twig.js and twig.min.js (make -B to force building)
  6. Run make test to run the Mocha tests via node.js or open the test/ directory in a web browser (via a web server, file:///path/to/twig.js/test won't work)
Clone this wiki locally