0.0.4 • Published 5 months ago
@bcgov/prp-map v0.0.4
Parks and Recreation Program (PRP) Map
Development
- Run 
npm installto install dependencies - Run 
npm run devto start the development server - Open your browser and navigate to 
http://localhost:3000to view the example application 
Creating new components
- Create a new folder in the 
src/componentsdirectory - Add a new file for your component, e.g., 
MyComponent.tsx - Export the component as a default export
 - Add the export to the 
src/index.tsfile to make it available as part of the library - Add it to the example application by importing and using it in 
src/App.tsx - Run 
npm run devto see your changes in the example application 
Publishing
- Ensure you are a maintainer in the 
@bcgovNPM organization - Update the version in 
package.json - Run 
npm loginto log in to your NPM account - Run 
npm run publishwhich will:- Build the library
 - Publish it to NPM