@myaszehn/common-package
v1.0.11
Published
1- Install Typescript and del-cli ``` npm i typescript del-cli --save-dev ```
Downloads
4
Readme
common-package
1- Install Typescript and del-cli
npm i typescript del-cli --save-dev
2- Create tsconfig.json
file
tsc --init
3- Update script section of package.json
"scripts": {
"clean": "del ./build/*",
"build": "npm run clean && tsc"
}
4- Update tsconfig.json
4.1- uncomment
"declaration": true,
4.2- uncomment and update path of outDir
"outDir": "./build"
5- install modules
npm i express
express-validator
jsonwebtoken
cookie-session
@types/cookie-session
@types/express
@types/jsonwebtoken
#publish module
set registry
# 1: create a org in npm
npm set registry https://registry.npmjs.org
#npm set registry https://npm.ok.ir/
npm init --scope=@myaszehn
npm publish --access=public