# Install dependencies (only the first time)
npm install
# Run the local server at localhost:8080
npm run dev
# Build for production in the dist/ directory
npm run build
- Add a
Component
page directory to thepages/
directory. - Add a
Component.js
file to the page directory.Component.js
file renders UI and will be imported in theindex.js
file. - Add a
Component.canvas.js
file to the page directory.Component.canvas.js
file defines what<canvas>
renders and will be imported in theComponent.js
file. And do not forget to push cleanup functions for event listeners toeventCleanStore
. - Add a
Component.scss
file to the page directory.Component.scss
file defines styles and will be imported in theComponent.js
file. - Add your page
Component
to therouter/routes.js
file. Then, it will automatically create a nav UI item and handle the route to the page.
- This project uses stylelint-prettier