This branch introduces a lot of new NPM scripts and tools (webpack, nodemon, isomorphic-loader, awesome-typescript-loader, core-js and some more) to the codebase that will be used during the development flow. Use them as followed:
npm start
– Changed! It now uses nodemon to runnpm run server
and listens to source code changes. On changes it restarts.npm run server
– This is the previousnpm start
, not ran bynpm start
. Usests-node
to "directly run" the server entrypoint file.npm run build:client
– It does the Webpack build for the frontendnpm run build:server
– Creates the build of the whole application inside./lib
using the TypeScript compiler (tsc
)npm run build
– Combinesnpm run build:client
andnpm run build:server
for a complete build of the application.
And the other NPM scripts being available at this point:
npm run prettier:check
andprettier:write
checks and fixes linting issues using Prettiernpm run test:unit
runs unit tests (/**/*Spec.ts
) using Mochanpm run test:integration
runs integration tests (test/integration/**/*Test.ts
) using Mochanpm run test
runs Prettier check, unit as well as integration tests in sequencenpm run client:statistics
uses webpack-bundle-analyzer to visualise the weight of code and dependencies of the application