03940e9 Dec 22, 2016
@jhchen @joedynamite @montlebalm
52 lines (27 sloc) 2.67 KB


Quill's source is in ES6 and utilizes Webpack to organize its files. The documentation site (hosted at is built with Jekyll. Karma and Protractor are used for testing.

To develop Quill locally, you will want a copy of Quill's codebase, with the build pipeline and documentation site running locally. The documentation site lives in doc/ but will use your local build instead of the CDN that the public site uses. This allows you to test changes on a local copy of all of the demos, such as the standalone examples.


The local development environment requires both Node.js and Ruby, along with their respective package managers. RVM and NVM are good solutions for installing and keeping Node.js and Ruby up to date. After installing Node.js, npm, Ruby, and RubyGems:

npm install
gem install foreman jekyll kramdown rouge jekyll-sitemap jekyll-redirect-from jekyll-feed
npm run build

You can now try out the unit test suite by running:

npm run test:unit

Karma also provides a local server so you can just visit a url from any browser to run the test suite, instead of launching one from the command line. Webpack also provides a server to dynamically build and serve the latest copy of the source code. Jekyll does the same for the documentation site.

With three independent servers, it is useful to have a proxy to as a front end single point of access to jekyll, karma and webpack. The documentation site is normally set up to fetch Quill from Quill's CDN, but the local proxy will serve a local build from webpack dev server instead.

All four services can be run with a single command thanks to foreman:

npm start


While Quill features an extensive javascript test suite, which you can run with:

npm run test:unit

However some functionality can only be tested with webdriver. To set up or update webdriver run:

npm run webdriver:update

Once webdriver is installed, you can run the test suite with

npm run test:functional


A standard development workflow involves:

  1. npm start - to run development services
  2. localhost:9000/standalone/snow - to interactively develop and test an isolated example
  3. localhost:9000/karma/debug.html - to run unit tests
  4. If everything is working, run the webdriver tests.