1.0.9 • Published 4 years ago

@zeuscoder-public/microservices-course-common v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Custom NPM Module that contains reusable code for the Microservices Course

Steps to create a custom NPM package

  1. Create the org in NPM
  2. run npm init or yarn init to create a package.json inside the root folder of the module/package
  3. update the name and the version number - be sure to refer to the NPM org name that you want the module to belong to
  4. initialize a git repo in the module root folder. add /build and node_modules to a .gitignore rile in the root dir
  5. add files to git and do an initial commit. You do not need to push to a remote repo as the local git repo is used only by NPM.
  6. run npm publish --access public - the default is private so you must specify public if its a public org. In future, to automatically update the version, run npm version patch to increase the patch version number
  7. if there is an issue logging in with npm, run npm login to make sure you're logged in.
  8. in package.json, set the "main", "types" and "files" properties

Tech

The package is written in typescript, but transpiled into JS for publishing. Steps for this:

  1. run tsc --init in the root folder to create a tsconfig file
  2. yarn install typescript as a dev dep. also install del-cli for clean fresh builds
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago