1.0.0 • Published 1 year ago
simp-deploy-dist v1.0.0
Setup for Creating an NPM package
Make sure package name is unique
Check within NPM & search to see if name matches any existing
Specify which files should be sent to NPM when published
Adding
"files"
within packageSplit 'dependencies' and 'devDependencies'
Package install will not include
"devDependencies"
Set package to be publicly assessible
Set up
"publishConfig"
object to handle that we want package to be publicIf building a CLI, configure the file to run
Set up
"bin"
and#!/usr/bin/env node
Add a 'prepublishOnly' script
Commit to git
git init
git add .
git commit -m "initial commit"
Run
npm publish
Need to be logged in to npm
npm login
1.0.0
1 year ago