Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
public
scripts
src
templates
.babelrc
README.md
generateTypes.js
gulpfile.js
jest.config.js
jest.integration.config.js
package-lock.json
package.json
tsconfig.json
vue-shims.d.ts
webpack.config.js

README.md

HINT Front End

js and sass source files and tests can be found in ./src. Compiled files are written to ./public.

Generating type definitions

Type definitions are auto-generated based on the hintr API schema. To re-generate types run

./scripts/generate-types.sh <BRANCH_NAME>

from this directory

Testing

Tests are run with jest. Files with the suffix .test.ts are treated as unit tests, files with the suffix .itest.ts treated as integration tests. Config for each can be found in jest.config.js and jest.integration.config.js, respectively.

  • run unit tests with npm test
  • run integration tests with npm run integration-test having first started the app and all dependencies by running ./scripts/run-dev-dependencies-for-integration-tests.sh from this directory

Compiling

  • sass is compiled using gulp - this task can be triggered by running npm run sass
  • js is bundled using webpack - this task can be triggered by running npm run js

Or to compile both at once, npm run build

You can’t perform that action at this time.