mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
move styles from view folder to assets
This commit is contained in:
parent
70bfd9d70c
commit
0727c3314d
@ -98,10 +98,9 @@ We are currently in the process of migrating our styleguide components and desig
|
|||||||
|
|
||||||
The folder structure we are following is [prescribed by Nuxt.js](https://nuxtjs.org/guide/directory-structure):
|
The folder structure we are following is [prescribed by Nuxt.js](https://nuxtjs.org/guide/directory-structure):
|
||||||
|
|
||||||
- **assets** contains icons, images and logos in `svg` format
|
- **assets** contains icons, images and logos in `svg` format and all shared SCSS files such as `tokens`
|
||||||
- **components** separated into two sub-folders:
|
- **components** separated into two sub-folders:
|
||||||
- **generics** are the generic building blocks of the app – small, reusable and usually not coupled to state
|
- **generics** are the generic building blocks of the app – small, reusable and usually not coupled to state
|
||||||
- **features** are composed of components but tied to a particular function of the app (e.g. `comment` or `post`)
|
- **features** are composed of components but tied to a particular function of the app (e.g. `comment` or `post`)
|
||||||
- **layouts** can use components to create layout templates for pages
|
- **layouts** can use components to create layout templates for pages
|
||||||
- **pages** are the entry points for all `routes` in the app and are composed of layouts, features and components
|
- **pages** are the entry points for all `routes` in the app and are composed of layouts, features and components
|
||||||
- **styles** holds all shared SCSS files such as `variables` and `mixins`
|
|
||||||
|
|||||||
@ -100,7 +100,7 @@ export default {
|
|||||||
** Global processed styles
|
** Global processed styles
|
||||||
*/
|
*/
|
||||||
styleResources: {
|
styleResources: {
|
||||||
scss: [styleguideStyles, '~view/styles/tokens.scss'],
|
scss: [styleguideStyles, '~assets/_new/styles/tokens.scss'],
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -23,7 +23,7 @@ module.exports = async ({ config, mode }) => {
|
|||||||
__dirname,
|
__dirname,
|
||||||
'../node_modules/@human-connection/styleguide/dist/shared.scss',
|
'../node_modules/@human-connection/styleguide/dist/shared.scss',
|
||||||
),
|
),
|
||||||
path.resolve(__dirname, '../view/styles/tokens.scss'),
|
path.resolve(__dirname, '../assets/_new/styles/tokens.scss'),
|
||||||
],
|
],
|
||||||
injector: 'prepend',
|
injector: 'prepend',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user