Description
This is a boilerplate for designing and maintaining libraries, frameworks, and plugins.
Features
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
- Create an npm account
- Create an npm token
- Record your npm token in .env.
- In the Terminal
pnpm run publish
🎉Congratulations!🎉
- You can now install and require your NPM package!
- You can load your package via the unpkg.com cdn!
- In the Terminal
pnpm run unpublish 0.0.10