$ npm run init // install packages global and modules both.
$ npm run build // build webpack and tsc compile.
$ npm run dev // launch app.
$ npm run init
It will install PM2, Webpack, TypeScript in global. Then install modules depencencies and devDependencies both.
$ npm run build
Webpack build and typescript compile.
See webpack.config.js
to change webpack configuration.
See tsconfig.json
to change typescript compile options.
$ npm run dev
Launch application via pm2. See pm2.config.js
to change pm2 options.
/bin
Auto generate. Complied js files for server. Sources are placed in /src/server
.
/public
Resources for web services.
/public/js
Auto generate. Compiled js files for react. Sources are placeed in /src/tsx/view
.
/public/libs
React js files or some js sources what will not compiled.