/Skeleton

Primary LanguageTypeScript

Ki.CL | Skeleton

A basic skeleton template to jump start a project with Webpack, React, SASS, TypeScript. This project is still evolving, so random changes will occur.

Quick Start

Run:

npm i && npm run dev

Build and launch the app in development environment:

npn run dev

In development, localhost run with webpack-dev-server

Build and launch the app in production environment:

npn run prod

In Production, localhost run with BrowserSync

Launch a bundle analyzer while the app run:

npn run dev -- --env.analyzer
npn run prod -- --env.analyzer

Launch the app without watching changes on sources:

npn run dev -- --env.noWatch
npn run prod -- --env.noWatch

Launch the app without launching the app in browser:

npn run dev -- --env.noBrowser
npn run prod -- --env.noBrowser

Test

To run test, simple run:

npm run test -- -u --detectOpenHandles

Coverage

npm run test:cover -- -u --detectOpenHandles

Coverage is also hook up with git push, mean each time a git push happen, test:cover task is then trigger before the push