Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break bin/kss-node into reusable modules #138

Closed
nkgm opened this issue Nov 27, 2014 · 1 comment
Closed

Break bin/kss-node into reusable modules #138

nkgm opened this issue Nov 27, 2014 · 1 comment

Comments

@nkgm
Copy link

nkgm commented Nov 27, 2014

At the moment, there's a lot happening in bin/kss-node:

  1. Handlebars helpers
  2. Json functions
  3. Page generator functions

Any build system that wishes to use kss-node has to replicate these functions verbatim. I think this functionality should be modularized.

@nkgm nkgm changed the title Break down bin/kss-node into reusable modules Break bin/kss-node into reusable modules Nov 27, 2014
@JohnAlbin
Copy link
Contributor

At the moment, there's a lot happening in bin/kss-node

Agreed. I would really like to make Handlebars be the default template system for the CLI. So that you could swap in your own templating system.

Any build system that wishes to use kss-node has to replicate these functions verbatim.

Can you speak more about this? I'm currently using gulp.js to build my KSS style guide and I just need to have my gulp tasks call the command line. No copying of code necessary.

gulp.task('styleguide', gulpShell.task([
    // kss-node [source folder of files to parse] [destination folder] --template [location of template files]
    'kss-node <%= source %> <%= destination %> --template <%= template %>'
  ], {
    templateData: {
      source:       theme + compass.sass,
      destination:  styleguide,
      template:     styleguide + 'template'
    }
  }
));

This was referenced Jan 31, 2015
JohnAlbin added a commit that referenced this issue Feb 16, 2015
JohnAlbin added a commit that referenced this issue Feb 16, 2015
JohnAlbin added a commit that referenced this issue Feb 17, 2015
JohnAlbin added a commit that referenced this issue Feb 17, 2015
JohnAlbin added a commit that referenced this issue Feb 18, 2015
JohnAlbin added a commit that referenced this issue Feb 18, 2015
JohnAlbin added a commit that referenced this issue Feb 18, 2015
JohnAlbin added a commit that referenced this issue Feb 18, 2015
JohnAlbin added a commit that referenced this issue Feb 19, 2015
JohnAlbin added a commit that referenced this issue Feb 19, 2015
JohnAlbin added a commit that referenced this issue Feb 19, 2015
JohnAlbin added a commit that referenced this issue Feb 19, 2015
JohnAlbin added a commit that referenced this issue Feb 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants