This is a template for a single page application using vue, vuex & vue-router. Routes are defined in
./src/web/_routes.js
and the global state management is defined in ./src/web/_store.js
npm i -g parcel-bundler
npm install
npm run dev
-
Source code is located in
./src/
- web app source code is located in
./src/web/
- PWA manifest file should have a
.webmanifest
extension for compatibility with parcel.
- web app source code is located in
-
Distributable artifacts are generated in
./dist/
- web app artifacts are generated in
./dist/web/
- web app artifacts are generated in
- Create a new
.vue
file (preferably in./src/web/vues/
) - Edit
./src/web/_router.js
- Add an
import
statement for the new file (eximport newpage from ./src/web/newpage.vue
) - Add a route for the new file (ex
{ path: '/newpage', component: newpage }
)
- Add an
build dependency graph...
depcruise --exclude "^node_modules" --output-type dot src | c:\resources\bins\graphviz-dot\dot -T svg >dependencygraph.svg