gulp-compile-dependencies
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -6,4 +6,18 @@ 'use strict'; | ||
}); | ||
exports.executeGulp = executeGulp; | ||
exports.executeJspm = executeJspm; | ||
exports.executeNpm = executeNpm; | ||
let getPackageObject = (() => { | ||
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { return step("next", value); }, function (err) { return step("throw", err); }); } } return step("next"); }); }; } | ||
let Promise = require('rsvp').Promise; | ||
let asp = require('rsvp').denodeify; | ||
let fs = require('graceful-fs'); | ||
let path = require('path'); | ||
let gutil = require('gulp-util'); | ||
let spawn = require('child_process').spawn; | ||
let dependencyPath = 'jspm_packages/local'; | ||
let getPackageObject = function () { | ||
var ref = _asyncToGenerator(function* (packageFile) { | ||
@@ -22,5 +36,15 @@ try { | ||
}; | ||
})(); | ||
}(); | ||
let processDependency = (() => { | ||
function fileExists(filepath) { | ||
if (!filepath) return false; | ||
try { | ||
return fs.statSync(filepath).isFile(); | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
let processDependency = function () { | ||
var ref = _asyncToGenerator(function* (packagePath, options) { | ||
@@ -33,5 +57,5 @@ let packageName = packagePath.substring(0, packagePath.indexOf('@')); | ||
let npmInstall = options.npmInstall !== undefined ? options.npmInstall : true; | ||
let jspmInstall = options.jspmInstall !== undefined ? options.jspmInstall : true; | ||
let gulpBuild = options.gulpBuild !== undefined ? options.gulpBuild : true; | ||
let npmInstall = options && options.npmInstall || true; | ||
let jspmInstall = options && options.jspmInstall || true; | ||
let gulpBuild = otpions && options.gulpBuild || true; | ||
@@ -57,66 +81,4 @@ if (npmInstall) { | ||
}; | ||
})(); | ||
}(); | ||
let getLocalDependencies = (() => { | ||
var ref = _asyncToGenerator(function* () { | ||
let packageConfig = yield getPackageObject("package.json"); | ||
if (!packageConfig.jspm || !packageConfig.jspm.dependencies) throw "package.json does have jspm configured."; | ||
let localDepedencies = []; | ||
var dependencies = packageConfig.jspm.dependencies; | ||
for (let dependency in dependencies) { | ||
var value = dependencies[dependency]; | ||
if (value.indexOf("local:") == 0) { | ||
localDepedencies.push(value.substring("local:".length)); | ||
} | ||
} | ||
return localDepedencies; | ||
}); | ||
return function getLocalDependencies() { | ||
return ref.apply(this, arguments); | ||
}; | ||
})(); | ||
let buildDependencies = exports.buildDependencies = (() => { | ||
var ref = _asyncToGenerator(function* (options) { | ||
gutil.log("Building local dependencies"); | ||
let dependencies = yield getLocalDependencies(); | ||
for (let entry of dependencies) { | ||
yield processDependency(entry, options); | ||
} | ||
}); | ||
return function buildDependencies(_x4) { | ||
return ref.apply(this, arguments); | ||
}; | ||
})(); | ||
exports.executeGulp = executeGulp; | ||
exports.executeJspm = executeJspm; | ||
exports.executeNpm = executeNpm; | ||
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { return step("next", value); }, function (err) { return step("throw", err); }); } } return step("next"); }); }; } | ||
let Promise = require('rsvp').Promise; | ||
let asp = require('rsvp').denodeify; | ||
let fs = require('graceful-fs'); | ||
let path = require('path'); | ||
let gutil = require('gulp-util'); | ||
let spawn = require('child_process').spawn; | ||
let dependencyPath = 'jspm_packages/local'; | ||
function fileExists(filepath) { | ||
if (!filepath) return false; | ||
try { | ||
return fs.statSync(filepath).isFile(); | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
function executeGulp(packagePath, tasks) { | ||
@@ -183,2 +145,39 @@ gutil.log("Processing", gutil.colors.yellow("gulp"), "for", gutil.colors.yellow(packagePath)); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWV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tLmRlcGVuZGVuY2llcztcclxuXHRmb3IgKGxldCBkZXBlbmRlbmN5IGluIGRlcGVuZGVuY2llcylcclxuXHR7XHJcblx0XHR2YXIgdmFsdWUgPSBkZXBlbmRlbmNpZXNbZGVwZW5kZW5jeV07XHJcblx0XHRpZiAodmFsdWUuaW5kZXhPZihcImxvY2FsOlwiKSA9PSAwKSB7XHJcblx0XHRcdGxvY2FsRGVwZWRlbmNpZXMucHVzaCh2YWx1ZS5zdWJzdHJpbmcoXCJsb2NhbDpcIi5sZW5ndGgpKVxyXG5cdFx0fVxyXG5cdH1cclxuXHRyZXR1cm4gbG9jYWxEZXBlZGVuY2llcztcclxufVxyXG5cclxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGJ1aWxkRGVwZW5kZW5jaWVzKG9wdGlvbnMpIHtcclxuXHRndXRpbC5sb2coXCJCdWlsZGluZyBsb2NhbCBkZXBlbmRlbmNpZXNcIik7XHJcblx0bGV0IGRlcGVuZGVuY2llcyA9IGF3YWl0IGdldExvY2FsRGVwZW5kZW5jaWVzKCk7XHJcblx0Zm9yIChsZXQgZW50cnkgb2YgZGVwZW5kZW5jaWVzKSB7XHJcblx0XHRhd2FpdCBwcm9jZXNzRGVwZW5kZW5jeShlbnRyeSxvcHRpb25zKTtcclxuXHR9XHJcbn1cclxuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9 | ||
let getLocalDependencies = function () { | ||
var ref = _asyncToGenerator(function* () { | ||
let packageConfig = yield getPackageObject("package.json"); | ||
if (!packageConfig.jspm || !packageConfig.jspm.dependencies) throw "package.json does have jspm configured."; | ||
let localDepedencies = []; | ||
var dependencies = packageConfig.jspm.dependencies; | ||
for (let dependency in dependencies) { | ||
var value = dependencies[dependency]; | ||
if (value.indexOf("local:") == 0) { | ||
localDepedencies.push(value.substring("local:".length)); | ||
} | ||
} | ||
return localDepedencies; | ||
}); | ||
return function getLocalDependencies() { | ||
return ref.apply(this, arguments); | ||
}; | ||
}(); | ||
let buildDependencies = exports.buildDependencies = function () { | ||
var ref = _asyncToGenerator(function* (options) { | ||
gutil.log("Building local dependencies"); | ||
let dependencies = yield getLocalDependencies(); | ||
for (let entry of dependencies) { | ||
yield processDependency(entry, options); | ||
} | ||
}); | ||
return function buildDependencies(_x4) { | ||
return ref.apply(this, arguments); | ||
}; | ||
}(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7OztRQXdFZ0I7UUFLQTtRQUtBOzs7O0FBcEVoQixJQUFJLFVBQVUsUUFBUSxNQUFSLEVBQWdCLE9BQWhCO0FBQ2QsSUFBSSxNQUFNLFFBQVEsTUFBUixFQUFnQixTQUFoQjtBQUNWLElBQUksS0FBSyxRQUFRLGFBQVIsQ0FBTDtBQUNKLElBQUksT0FBTyxRQUFRLE1BQVIsQ0FBUDtBQUNKLElBQUksUUFBUSxRQUFRLFdBQVIsQ0FBUjtBQUNKLElBQUksUUFBUSxRQUFRLGVBQVIsRUFBeUIsS0FBekI7O0FBRVosSUFBSSxpQkFBaUIscUJBQWpCOzs7NkJBRUosV0FBZ0MsV0FBaEMsRUFBNkM7QUFDNUMsTUFBSTtBQUNILE9BQUksYUFBYSxNQUFNLElBQUksR0FBRyxRQUFILENBQUosQ0FBaUIsV0FBakIsQ0FBTixDQURkO0FBRUgsVUFBTyxLQUFLLEtBQUwsQ0FBVyxXQUFXLFFBQVgsRUFBWCxDQUFQLENBRkc7R0FBSixDQUlBLE9BQU8sQ0FBUCxFQUFVO0FBQ1QsT0FBSSxFQUFFLElBQUYsSUFBVSxRQUFWLElBQXNCLGFBQWEsV0FBYixFQUN6QixPQUFPLEVBQUUsVUFBVSxJQUFWLEVBQVQsQ0FERDtBQUVBLFNBQU0sQ0FBTixDQUhTO0dBQVY7RUFMRDs7aUJBQWU7Ozs7O0FBWWYsU0FBUyxVQUFULENBQXFCLFFBQX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bmRlbmN5KGVudHJ5LG9wdGlvbnMpO1xyXG5cdH1cclxufVxyXG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0= |
{ | ||
"name": "gulp-compile-dependencies", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Resolves local jspm dependencies and builds them. Will call 'npm install', 'jspm install' and 'gulp build' on each dependency.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -29,5 +29,5 @@ [![NPM version][npm-image]][npm-url] | ||
var options = { | ||
npmInstall: true; | ||
jspmInstall: true; | ||
gulpBuild: true; | ||
npmInstall: true, | ||
jspmInstall: true, | ||
gulpBuild: true | ||
} | ||
@@ -34,0 +34,0 @@ |
@@ -53,5 +53,5 @@ 'use strict' | ||
let npmInstall = (options.npmInstall !== undefined ? options.npmInstall : true); | ||
let jspmInstall = (options.jspmInstall !== undefined ? options.jspmInstall : true); | ||
let gulpBuild = (options.gulpBuild !== undefined ? options.gulpBuild : true); | ||
let npmInstall = (options && options.npmInstall) ||true; | ||
let jspmInstall = (options && options.jspmInstall) || true; | ||
let gulpBuild = (otpions && options.gulpBuild) || true; | ||
@@ -58,0 +58,0 @@ if(npmInstall) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39622
359