1.0.12 • Published 9 years ago
gulp-compile-dependencies v1.0.12
A gulp task for compiling a package which has local dependencies installed via jspm-local.
Together with gulp-jspm-local this can be used to compile the current package and all dependencies.
It runs 'npm install' and, when needed 'jspm install' and 'gulp build' on each dependency.
Installation
Install gulp-compile-dependencies using npm into your local repository.
npm install gulp-compile-dependencies --save-devUsage
Setup a gulp task compile-dependencies using this code:
'use strict'
let gulp = require('gulp');
let dependencies = require('gulp-compile-dependencies')
let tools = require('gulp-jspm-local');
let runSequence = require('run-sequence');
var options = {
npmInstall: true,
jspmInstall: true,
gulpBuild: true
}
gulp.task('compile-solution', () =>
dependencies.buildDependencies(options)
.then(() => tools.updateLocalDependencies())
.then(() => dependencies.executeJspm())
.then(() => runSequence("export")));Options
npmInstall: boolean =trueExecutes npm install on all dependencies.jspmInstall: boolean =trueExecutes jspm install on all dependencies.gulpBuild: boolean =trueExecutes gulp build on all dependencies.