Development
Commands
npm run buildwill build the full project, producing deployable artifacts in thedistfolder.npm run watchwill watch all files in all relevant project directories for changes and build them as necessarynpm run servewill start a static web server withdistas the web rootnpm run devwill do all three of the above things in order
Layout
staticcontains files that are considered good to use as-is. These files are copied directly intodist, preserving the hierarchy withinstaticscriptscontains scripts that are used inpackage.jsonbut are too complex to be inlined withinpackage.jsonstylescontains top-level CSS. Before being copied intodist, it will be run throughclean-css, causing each stylesheet to have imports inlined and for the whole bundle to be minified. Each top-level CSS file instyleswill be turned into a standalone bundle by the same name indist.srccontains raw TypeScript sources; compiled JavaScript artifacts go to thelibfolder.
Modifying the file scripts/build-node-modules.sh will allow you to specify
individual files and directories within node_modules that should be made
availabe in dist but should not be metabolized by the build system.