https://github.com/jsta/jspkg
Demo of npm packaging
https://github.com/jsta/jspkg
Last synced: about 1 year ago
JSON representation
Demo of npm packaging
- Host: GitHub
- URL: https://github.com/jsta/jspkg
- Owner: jsta
- Created: 2017-07-14T00:42:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-16T22:29:07.000Z (almost 9 years ago)
- Last Synced: 2024-06-11T17:08:36.953Z (about 2 years ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/jsta
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo of npm packaging
A demo of the steps to create a npm package
## Steps
* set npm configs
* `npm set init.author.email <>`
* `npm set init.author.name "jsta"`
* `npm set init.license "GPL-3.0"`
* `git init`
* create a minimal README
* npm init --yes
* create the main file (_index.js_)
* add a function as a property of the **exports** object.
## References
https://docs.npmjs.com/getting-started/using-a-package.json