1.0.3 • Published 4 years ago
@simple-lib/neat v1.0.3
Library
Structure
Module has common typescript library structure with a bit extension to be able to checkout implementation during development.
lib
Service
ServiceName
ServiceName.ts
index.ts
index.ts
index.ts
<Folders>
www
assets
...anything
index.html
common.css
main.ts
package.json
tsconfig.json
webpack.config.jsonEach index.ts files exports all the exports from his folder level. Each service, class or data should be provided with folder (except grouping staff like IPoint, IPointSet anr ect.).
www folder and webpack.config.js is used to run development server which will automatically update himself during file changes.
Commands
Run dev server
npm startBuild library
npm run buildWatch build state during implementation
npm run watchPack package (only package.json and output dist folder are going to be packed)
npm packPublish package (only package.json and output dist folder are going to be published)
npm login <--registry=http(s)://<registry-host>> - if it is required to be logged in
npm publish <--registry=http(s)://<registry-host>>Full deployment command list:
npm run build
npm login <--registry=http(s)://<registry-host>> - if it is required to be logged in
npm publish <--registry=http(s)://<registry-host>>