emily-cm
Emily is a component manager and offers easy integration with your workflow while not restricting structural freedom.
Install using: npm install emily-cm -g
Commands
emily init <dir>
Generates the emily.jsonemily new <module>
Generates a module with the given nameemily activate <module>
Activates the given moduleemily deactivate <module>
Dectivates the given moduleemily list
Lists all modules
emily.json
After the basic installation via emily init <dir>
. You can further customize the emily.json to fit your needs.
Build task integration
Emily offers some basic methods to retrieve the module paths and integrate them in your build task:
const emily = require('emily-cm');
emily.config();
emily.all();
emily.active();
emily.inactive();
emily.toPaths(emily.all());
Example with gulp
const gulp = require('gulp');
const emily = require('emily-cm');
gulp.task('scripts', function() {
let scripts = emily.toPaths(emily.active()).map((el)=>el + '**/*.js'));
return gulp.src(scripts)
.pipe(gulp.dest('dist/js'));
});