Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Plans for unstable release #1

@sergeysova

Description

@sergeysova
  • Configuration file
    • Directory naming
    • File extension
    • File naming case (CamelCase, kebab-case, snake_case)
    • File templates
    • Index file support
module.exports = {
  naming: {
    components: 'components',
    atoms: 'atoms',
    molecules: 'molecules',
    organisms: 'organisms',
    templates: 'templates',
    pages: 'pages',
    modules: 'modules',
  },
  fileExtensions: 'js', // default extension for all types
  fileNamingCase: 'kebab-case', // UpperCamelCase, lowerCamelCase, snake_case
  templates: { // specified templates for each type
    component: './templates/component.js'
    // if template file return string — should be .replace()
    // if return function, execute function with params
  },
  indexFile: { // if true, generate index.js for each type
    components: false, // export all from atoms, molecules, organisms ...
    atoms: true,
    molecules: true,
    organisms: true,
    templates: false,
    pages: false,
    modules: false, // modules inherits config for atoms, molecules, ...
  },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions