@cartickets/common
v1.0.9
Published
<h1>Create common directory and initialize it</h1> mkdir common npm init -y
Downloads
14
Readme
-Create TS Config file in common tsc-- init --install typescript and del-cli in dev env npm install typescript del-cli --save-dev
-update package.json remove test script - add build script "tsc" -update tsconfig.json uncomment "declaration": true uncomment "outDir": "./" change path to "./build"
-delete everything during build to clean out build path with "clean": "del-cli ./build/*", in script section of package.json update "build" script to be "npm run clean && tsc" to clean then build
Make sure you update this line: in package.json
"files": [ "./build/**/*" ], to this:
"files": [ "build/**/*" ],
--to update -commit to git git add . git commit -m "additional config" -increment version npm version patch //updates last number in version npm run build npm publish
-Add script to package.json file to version build and publish
-to change common save changse go to terminal to common dir rebuild and publish project go to auth dir npm update @cartickets/common