Skip to content
Borys H.N edited this page Dec 6, 2016 · 5 revisions

frontend dev

builds

  1. using gradle
    • $ gradle clean build check
  2. using npm
    • $ npm install && npm run build && npm run test && npm run test

dev

unit tests with karma and jasmine

- unit tests should be added to `frontend/src/app/**/*`
- spec files `*.spec.ts` should be added along side their corresponding `*.ts` files
    - i.e. app.component.ts => app.spec.ts

adding frontend dependencies

  1. update frontend/package.json
    • add necessary dependencies
  2. update frontend/src/vendor.ts or frontend/src/polyfills.ts
    • in some cases (like bootstrap-loader) in may be beneficial to instead add an entry point within frontend/config/webpack.dev.js

adding frontend types

  1. $ npm i @types/jasmine --save
  2. update tsconfig.json