-
Notifications
You must be signed in to change notification settings - Fork 5
Build Environment
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.
The default version will minify and optimize the js/css sources. If you are developing, use the dev build instead.
gulpThe 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 lintGenotet 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 everythingTo only run lint on the code:
# lint the front-end sources
gulp lint-frontend
# lint the server sources
gulp lint-serverYou may also lint-test or lint-gulp. Linting frontend scss requires the scss_lint package.
gem install scss_lint
To test the build:
node server/server.js --config=test/config
gulp test