mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-03 06:54:16 +01:00
1.5 KiB
1.5 KiB
Builder script is using Gulp
All commands must be called from code/
$ pwd
/home/dev/espurna/code
When gulp command is not available globally
$ ./node_modules/.bin/gulp
Files
code/espurna/static/- .html.gz.h, used in the firmware codecode/html/build- intermediate build resultscode/package{,-lock}.json- build dependencies metadatacode/node_modules- build dependenciescode/gulpfile.mjs- builder script entrypoint
Installation
(recommended) Install exact dependencies listed in the package-lock.json, from the time the builder code was last updated
$ npm ci
(optional) Install dependencies listed in the package.json, possibly updating packages listed in the package-lock.json
$ npm install
Building
Build every .html.gz.h (default task)
$ gulp
Build specific flavour (webui_... tasks)
$ gulp webui_small
List all available tasks
$ gulp --tasks
Development
Launches development server on port 8080 with the resulting .html bundle. No minification or compression, using webui_all as base
$ gulp dev
Only the default task invokes eslint and html-validate before building, call them manually
$ gulp eslint html_validate
$ gulp eslint
$ gulp html_validate