gulp-compile-dependencies
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -22,5 +22,3 @@ 'use strict'; | ||
let getPackageObject = function () { | ||
var ref = _asyncToGenerator(function* (repo) { | ||
let packageFile = path.resolve('..', path.join(repo, 'package.json')); | ||
var ref = _asyncToGenerator(function* (packageFile) { | ||
try { | ||
@@ -55,3 +53,3 @@ let lookupJSON = yield asp(fs.readFile)(packageFile); | ||
let project = yield getPackageObject(packageName); | ||
let project = yield getPackageObject(path.resolve('..', path.join(packageName, 'package.json'))); | ||
let projectPath = path.resolve(path.join("..", packageName)); | ||
@@ -140,2 +138,25 @@ | ||
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 () { | ||
@@ -156,2 +177,2 @@ var ref = _asyncToGenerator(function* () { | ||
}(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7OztRQW9FZ0I7UUFLQTtRQUtBOzs7O0FBaEVoQixJQUFJLFVBQVUsUUFBUSxNQUFSLEVBQWdCLE9BQWhCO0FBQ2QsSUFBSSxNQUFNLFFBQVEsTUFBUixFQUFnQixTQUFoQjtBQUNWLElBQUksS0FBSyxRQUFRLGFBQVIsQ0FBTDtBQUNKLElBQUksT0FBTyxRQUFRLE1BQVIsQ0FBUDtBQUNKLElBQUksUU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W5jaWVzKCkge1xyXG5cdGd1dGlsLmxvZyhcIkJ1aWxkaW5nIGxvY2FsIGRlcGVuZGVuY2llc1wiKVxyXG5cdGxldCBmaWxlcyA9IGF3YWl0IGFzcChmcy5yZWFkZGlyKShkZXBlbmRlbmN5UGF0aCk7XHJcblx0Zm9yIChsZXQgZW50cnkgb2YgZmlsZXMpIHtcclxuXHRcdGlmIChpc0RpcmVjdG9yeShlbnRyeSkpIHtcclxuXHRcdFx0YXdhaXQgcHJvY2Vzc0RlcGVuZGVuY3koZW50cnkpO1xyXG5cdFx0fVxyXG5cdH1cclxufVxyXG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0= |
{ | ||
"name": "gulp-compile-dependencies", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"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", |
@@ -24,5 +24,3 @@ 'use strict' | ||
async function getPackageObject(repo) { | ||
let packageFile = path.resolve('..', path.join(repo, 'package.json')); | ||
async function getPackageObject(packageFile) { | ||
try { | ||
@@ -53,3 +51,3 @@ let lookupJSON = await asp(fs.readFile)(packageFile); | ||
let project = await getPackageObject(packageName); | ||
let project = await getPackageObject(path.resolve('..', path.join(packageName, 'package.json'))); | ||
let projectPath = path.resolve(path.join("..", packageName)); | ||
@@ -133,2 +131,20 @@ | ||
async function getLocalDependencies() { | ||
let packageConfig = await 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; | ||
} | ||
export async function buildDependencies() { | ||
@@ -135,0 +151,0 @@ gutil.log("Building local dependencies") |
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
38238
351