-
Notifications
You must be signed in to change notification settings - Fork 46
Folder Structures
Mike Mai edited this page May 8, 2019
·
17 revisions
-
__tests__
/-
__snapshots__
/ → jest snapshots- component.test.js → jest tests
- component.nightwatch.js → nightwatch tests
-
__fixture__
/ → media used in tests - component.js
-
-
src
/- _component-element.twig
- _component-element.scss
- _component-element.js
- _component-setting-and-tools.scss
- _component-outside-library.js
- component.twig
- component.scss
- component.js
-
assets
/ → if needed - index.js → polyfill, export namespaces, etc.
- index.scss → points to src folder’s main .scss
- component.schema.yml
- package.json
- README.md
- CHANGELOG.md
- TESTING.md
-
_patterns
/-
02-components
/-
component-name
/- 00-component-name-docs.twig
- 05-component-name.twig
-
schema
/- 10-component-name--prop1.twig
- 15-component-name--prop2.twig
-
recipes
/- 20-component-name--recipe-name.twig
-
-
04-pages
/-
mockup-name
/- simple-mockup-page-name.twig
- complex-mockup-page-name.twig → has variables for passing data
- complex-mockup-page-name~variation-a.json → passes unique data
- complex-mockup-page-name~variation-b.json → passes unique data
-
-
Refer to Naming Conventions for naming files.
-
packages
/-
build-tools
/ -
config
/ -
core
/ -
ui
/-
assets
/ → fonts and svgs -
icons
/ -
fonts
/ -
core
/- bolt-themes
- bolt-typography
- etc...
-
components
/- bolt-button
- bolt-band
- etc...
-
patterns
/- bolt-button-group
- bolt-chip-group
- etc...
-
-
-
examples
/-
using-react
/ -
using-pattern-lab
/ -
using-drupal
/ -
using-static-site
/
-
-
website
/-
src
/-
content
/ -
templates
/ -
pages
/ -
utils
/ -
assets
/ - .boltrc
- package.json
- composer.json
-
-
- Basic A11y Checklist
- Get started with Bolt locally
- Bolt Specific Standards and Conventions
- How to save SVG graphics and SVG icons
- Upgrade to minor release
- Upgrade to 4.x
- Upgrade to 5.x
- Release Workflow
- VS Code Configuration
- Bolt Doc Writing Guide
- Prefixing Custom Attributes
- Standard Props for Passing Content in Twig
- Building Websites with Bolt in Drupal
- From Design Mockup to Code
- Override with Utility Classes