JavaScript

I think some people prefere to use JavaScript API to work with build tools such as gulp. So I have prepared JavaScript API you can require();

// import atomic-lab
const atomic = require('atomic-lab');

// build styleguide
atomic.build({
  src: 'components/',
  dist: 'styleguide/'
});

Example to use with gulp.

const gulp = require('gulp');
const atomic = require('atomic-lab');

gulp.task('atomic', function(){
  atomic.build({
    src: 'components/',
    dist: 'styleguide/',
    exts: 'html,ejs,jade,haml,pug,css,scss,less,txt,text'
  });
});

gulp.task('watch',function(){
  gulp.watch('components/*/.*',['atomic']);
});