Skip to content

Developing with the HUD

David Scrobonia edited this page Jul 7, 2018 · 9 revisions

Dependences

Installing

Install npm from the Node.js site.

After installing run npm install in the zap-hud directory to install the HUD dependences.

Building

The HUD uses webpack as its static module bundler to transpile Vue & javascript files.

Run webpack with: npm run build

The HUD uses ant as its Java build tool.

Run ant with from the build directory with: ant deploy-hud

Testing

The HUD uses ava as its testing framework.

Run all tests with:

npm run test or ant test-hud

Tests are found in the test directory.

Linting

The HUD uses xo as its linter.

Run the linter with:

npm run lint or ant lint-hud

If you want to lint just the staged changes use:

npm run lint-staged or ant lint-staged-hud