gulp-projects
v0.0.3
Published
Work in progress.
Downloads
2
Readme
gulp-projects
Provides a way to configure gulp with the least JavaScript possible.
Usage
const gulp = require('gulp');
const gulpProjects = require('gulp-projects');
var serverProject = gulpProjects.typescript("server/tsconfig.json");
var scriptProject = gulpProjects.typescript("files/tsconfig.json");
var requireProject = gulpProjects.requireJs("files/requireconfig.json");
var lessProject = gulpProjects.less("files/lessconfig.json");
var typingsProject = gulpProjects.typings("typings.json");
gulp.task('default', () => {
//typingsProject.run();
lessProject.run();
// TODO: only run serverProject and scriptProject after typingsProject.
serverProject.run();
scriptProject.run();
// TODO: only run requireProject after serverProject and scriptProject.
requireProject.run();
});
gulp.task('watch', ['default'], () => {
//typingsProject.watch();
lessProject.watch();
serverProject.watch();
scriptProject.watch();
requireProject.watch();
// TODO: restart watcher if "gulpfile.js" changes.
});
Development
# Clone the Git repository
git clone git+https://github.com/bruce965/gulp-projects.git
# Install project dependencies
npm install
# Download type-definitions
npm run typings
# Build
npm run build