path-manager

0.0.6 • Public • Published

Path Manager

path-manager build status

Instantiable class with one parameter which is the path to a config json file. Has methods that return an array js, scss, css, and views paths to be used at the beginning of gulp or grunt task

var plugins = require('gulp-load-plugins')(),
var PathManager = require('path-manager');

// instantiate with a config.json as only parameter
var pathsObj = new PathManager('./config.json');
// get js path
var jsPath = pathsObj.getJSPaths();

gulp.task('js', function () {

	return gulp.src(jsPath)
		.pipe(plugins.ngAnnotate())
		.pipe(plugins.uglify())
		.pipe(gulp.dest('dist/js'))

});

Readme

Keywords

none

Package Sidebar

Install

npm i path-manager

Weekly Downloads

0

Version

0.0.6

License

MIT

Last publish

Collaborators

  • crivas