1.0.4 • Published 3 years ago
@s4pod/common v1.0.4
This is the auth backend for the project
Steps:
- Initiate node project: npm init -y
- Install dependencies and dev dependencies
- Initiate typescipt for the project tsc --init
- Create necessary scripts (i.e., dev, start, etc.)
- Initialize eslint npx eslint --init
- Install prettier and create a .prettierrc.js config file npm install -D prettier --save-exact
- Install eslint-config-prettier
- Add "prettier" to extends in .eslintrc.js
- Modify tsconfig.json and package.json files (since this is an npm package)
Publishing to npm
First time publishing
After changing the package name in package.json to an appropriate name that is the same as organization name on npm, run: npm publish --access public
Successive publishes
- git commit everything
- Increment version number npm version patch
- Build the package npm run build
- Publish the build npm publish