1.0.0 • Published 1 year ago

simp-deploy-dist v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Setup for Creating an NPM package

  1. Make sure package name is unique

    Check within NPM & search to see if name matches any existing

  2. Specify which files should be sent to NPM when published

    Adding "files" within package

  3. Split 'dependencies' and 'devDependencies'

    Package install will not include "devDependencies"

  4. Set package to be publicly assessible

    Set up "publishConfig" object to handle that we want package to be public

  5. If building a CLI, configure the file to run

    Set up "bin" and #!/usr/bin/env node

  6. Add a 'prepublishOnly' script

  7. Commit to git

    git init git add . git commit -m "initial commit"

  8. Run npm publish

    Need to be logged in to npm npm login