This repository has been archived by the owner on Jan 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Project Architecture
Grey edited this page Oct 2, 2018
·
2 revisions
This page explains what files go where.
This directory contains assets in their raw/unedited forms. They will never appear in production as-is. Instead, they can be edited, compressed or re-sized etc and saved into src/assets
.
This directory contains all production files used by vue build
.
- favicons appear in production (as-is)
-
index.html
acts as a template for Vue injection. It will not appear as-is, but instead be injected then minified.
All scripts, styles, modules and Vue components that will be built and bundled into the production package.
- all assets (images, vectors etc.) that will appear in production as-is.
- Can be referenced in
Vue
components by@/assets/<file>
- Contains single file
Vue
components. -
src/components/common
contains reusableVue
components (used by other components)
- Contains the base SCSS stylesheet that's
require
'd into the application entry point-
main.scss
configures all of the separate styles -
base/
contains base classes (highly re-usable) and resets.-
base/_base.scss
- resets -
base/_typography.scss
- font classes (highly re-usable) -
base/_utils.scss
- utility classes (highly re-usable)
-
-
abstracts/
contains variables and mixins etc that may want to be used across the project-
_animations.scss
- all@keyframes
definitions in the project -
_mixins.scss
- mixins used across the project (example responsive mixins) -
_variables.scss
- it is desired to place all variables here (as opposed to defined within a component), so that they can be included and used across the project.
-
-
- Contains configuration and modules for
Vuex
store(s). -
src/store/modules
- allVuex.Store
modules. -
src/store/index.js
- base store export (packages all modules).
- contains all
vue-router
Views.
- Root
Vue
component
- Creates a
Vue
instance fromApp.vue
, and adds in any directives and configurations. Injects theVue
application (App.vue
) into a DOM node ofpublic/index.html
- Defines all routed Views for the application
- any helper modules, functions and mocks used in unit tests
- all unit tests (components, common components, store etc)
- used by
postcss
to list target browsers. Read more
- ESLint configuration. Read more
- files ignored from source control
- CI configuration
- domain name
- project information, intended for public/consumers rather than project developers
- additional babel configurations that are merged with those generated by
vue-cli
. Read more
- NPM package configuration containing project's dependencies and scripts