Skip to content
Bowen Yu edited this page Apr 14, 2016 · 3 revisions

Genotet uses Gulp to manage automated build, test and development.

You can checkout details of build info in gulpfile.js.

Default Build

The default version will minify and optimize the js/css sources. If you are developing, use the dev build instead.

gulp

Dev Build

The dev build does not minify the source codes so that it is easier to debug. However, it will concat the sources so that only one js/css file is loaded in the html.

gulp dev       // with lint (build-dev + lint)
gulp build-dev // without lint

Compilation

Genotet compilation is mainly used for typing the code.

gulp compile-qunit        // compile the front-end code, along with the qunit tests
gulp compile-server       // compile the server source code
gulp compile-jasmine-node // compile the server testing code
gulp compile-all          // compile everything

Lint Build

To only run lint on the code:

# lint the front-end sources
gulp lint-frontend
# lint the server sources
gulp lint-server

You may also lint-test or lint-gulp. Linting frontend scss requires the scss_lint package.

gem install scss_lint

Test Build

To test the build:

node server/server.js --config=test/config
gulp test

Clone this wiki locally