Skip to content

franksongca/path-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path Manager

path-manager build status

Instantiable class with two parameters, first one is the path to a config json file, second is the customized one, brand, indicates the current brand of the package. 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', brand);
// 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'))

});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published