Lentil
Smart and modular gulp wrapper
How to install?
$ npm install --save-dev hf-lentil
What is Lentil?
Lentil is a tool that runs next to gulp to make setting up your new projects less painful. It will simply compile your scripts out of the box! It will use all the popular compiling implementations for your website's frontend assets (ingredients). Currently it will compile plain JS, sass or scss and angular apps (templateCache
is also included). Write us an issue or a Pull Request of you feel like something is missing!
Why use Lentil?
Lentil is built so that a project, or several projects keep the same compiling and conventions. It is very easy to setup and it's using a modular approach. This will simplify the ability to create several modules, without having to worry about an ever growing gulpfile
all that will be growing is your file tree!
Documentation
For Lentil's API docs see the documentation page.
Example gulpfile.js
var Lentil = require('hf-lentil');
var lentil = new Lentil({
paths: {
modules: __dirname + '/modules',
libs: __dirname + '/libs',
dist: __dirname + '/dist',
tmp: __dirname + '/../tmp',
rootPrefix: '/'
},
tasks: {
'js': 'js',
'app': 'angular',
'sass': 'sass'
},
libs: {
'base': [
__dirname + '/libs/sugar/release/sugar-full.development.js',
__dirname + '/libs/jquery/dist/jquery.js',
__dirname + '/libs/angular/angular.js'
],
'touch': [
__dirname + '/libs/angular-touch/angular-touch.js'
]
},
karma: {
files: [
'./libs/angular-mocks/angular-mocks.js'
]
},
plugins: {
eslint: require('./eslintconfig.json')
}
});
lentil.start();