Skip to content

Instantly share code, notes, and snippets.

@Super-Chama
Created January 9, 2023 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Super-Chama/f589df43d35bc2dfde39b21280cbafe5 to your computer and use it in GitHub Desktop.
Save Super-Chama/f589df43d35bc2dfde39b21280cbafe5 to your computer and use it in GitHub Desktop.
OXD 2.0

1.X Folder structure

├── components
│   ├── package.json
│   └── src
│       ├── core
│       │   └── components
│       │      └── Alert
│       │         ├── alert.scss
│       │         ├── Alert.vue
│       │         ├── __tests__
│       │         │   ├── alert.spec.ts
│       │         ├── types.ts
│       │         └── _variables.scss
│       ├── assets
│       ├── composables
│       ├── directives
│       ├── mixins
│       ├── services
│       ├── styles
│       └── utils
├── storybook
│   ├── package.json
│   ├── public
│   └── stories
│       └── core
│           └── components
│               └── Alert
│                   ├── AlertContainer.vue
│                   └── Alert.stories.js
├── package.json
├── scripts
└── yarn.lock

2.X Proposed structure


├── src
│   ├── components
│   │   ├── Alert
│   │      ├── alert.scss
│   │      ├── Alert.vue
│   │      ├── stories
|   |      |   ├── AlertContainer.vue
│   │      │   └── Alert.stories.ts
│   │      └── __tests__
│   │      |   └── alert.spec.ts
│   │      ├── types.ts
│   │      └── _variables.scss
|   ├── composables
│   ├── assets
│   ├── directives
│   ├── mixins
│   ├── services
│   ├── styles
│   └── utils
├── package.json
└── yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment