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

Plans for unstable release #1

Open
6 tasks
sergeysova opened this issue Jun 3, 2017 · 0 comments
Open
6 tasks

Plans for unstable release #1

sergeysova opened this issue Jun 3, 2017 · 0 comments

Comments

@sergeysova
Copy link
Member

sergeysova commented Jun 3, 2017

  • 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, ...
  },
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant