0.5.4 • Published 2 years ago
code-snippet-lib v0.5.4
Code Snippet Lib
- React (16.x)
- Webpack (4.x)
- Typescript (3.x)
- SWC
- Hot Module Replacement (HMR) (React Hot Loader)
- Code linting (ESLint) and formatting (Prettier)
Installation
- Clone/download repo
npm install
npm run prepare
npx husky add .husky/pre-commit "npm run pre-commit"
Usage
Development
npm start
- Build app continuously (HMR enabled)
- App served @
http://localhost:4002
All commands
Command | Description |
---|---|
npm run start | Build app continuously (HMR enabled) and serve @ http://localhost:4002 |
npm run build | Build app to /dist/ |
npm run lint | Run linter |
npm run lint --fix | Run linter and fix issues |
Publish
- Increase version in
package.json
npm run pre-publish
npm login
npm publish