0.0.11 • Published 4 years ago
cs1-forest-demo v0.0.11
Maintainer
Description
This is a boilerplate for designing and maintaining libraries, frameworks, and plugins.
Features
- Javascript bundling with rollup.js.
- Publish to NPM.
Building
- Development/Staging Builds:
- Edit the package.json with your details.
- Edit the source code found in the src directory.
- Edit the library name in public/staging/index.html
- In the Terminal
pnpm run dev
- Show Staging Page
- Production Builds:
- Edit the library name in public/index.html
- In the Terminal
pnpm run prod
- Show Production Page
Publishing to NPM
Use the following pattern to publish any npm package from Glitch
Do Once:
- Create an npm account
- Create an npm token
- Record your npm token in .env.
Do Every Publish
- In the Terminal
pnpm run publish
🎉Congratulations!🎉
From Node
- You can now install and require your NPM package!
In Your HTML
You can load your package via the unpkg.com cdn!
- unpkg.com/lib2020
If Neccessary You Can Also Unpublish a Version
- In the Terminal
pnpm run unpublish 0.0.10