1.0.11 • Published 7 months ago

@myaszehn/common-package v1.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

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
1.0.11

7 months ago

1.0.10

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago