harno-build
v0.0.9
Published
Module that help to build you node.js apps
Downloads
13
Maintainers
Readme
Harno-build
Npm module that helps you build your project
Install
npm install --save-dev harno-build
Usage
Create gulpfile.js in your project
// you should have [email protected] in devDependencies
const gulp = require('gulp')
const Build = require('harno-build').default
// here you can overwrite default config values
const config = {
unitTestsCoverage: {
thresholds: {
lines: 90,
functions: 90,
branches: 90,
statements: 90
}
}
}
const build = new Build(config)
build.initGulpTasks(gulp)
API
new Build(config)
- config - object with user config values
Creates new build instance with its own configuration
build.initGulpTasks(gulp)
- gulp - instance of [email protected]
Inits all available gulp tasks
Default config values
All default config values are located at app/config.defaults.yml
Gulp tasks available
All available task and small description to them can be found in gulp default tasks
gulp
# or
gulp default