1.0.11 • Published 9 years ago

component-library-core v1.0.11

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

Component Library Generator core

It does the dirty job. In components folder, for each template file (.twig, .hb, .mustache, .tt2, etc.)

  • description (.md)
  • test data (.json) is been added. Returns a) documentation b) how does component looks like in iframe (so you can put e.g. 'position: fixed' elements in there) c) see raw template / style (.sass, .less) / data

Steps

Simple things it does:

  • get / set options

    module.exports = function (options) {
      var opts = options || {}
    
      opts.location = (opts.location) ? opts.location : {}
      opts.extensions = (opts.extensions) ? opts.extensions : {}
    
      opts.location.root = opts.location.root || '/'
      opts.location.src = opts.location.src || '..\\..\\src\\components\\'
      opts.location.dest = opts.location.dest || '..\\..\\dest\\components\\'
      opts.location.styleguide = opts.location.styleguide || '..\\..\\src\\styleguide\\'
    
      opts.extensions.template = opts.extensions.template || '.twig'
      opts.extensions.output = opts.extensions.output || '.html'
    
      return opts
    }
  • saves components from folder into JSON

  • renders
    • component (documentation, navigation)
    • raw.component
    • dashboard (could be style guidelines or any other components you want to highlight)
1.0.11

9 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago