@architect/hydrate
Advanced tools
Comparing version 1.3.3-RC.2 to 1.3.3-RC.3
{ | ||
"name": "@architect/hydrate", | ||
"version": "1.3.3-RC.2", | ||
"version": "1.3.3-RC.3", | ||
"description": "Architect dependency hydrator and shared file manager", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -63,8 +63,10 @@ let parse = require('@architect/parser') | ||
getBasePaths('arcfile', function gotBasePaths(err, paths) { | ||
if (err) throw err | ||
series(paths.map(dest=> { | ||
return function copier(callback) { | ||
copy(path.join(dest, 'shared'), callback) | ||
} | ||
}), done) | ||
if (err) done(err) | ||
else { | ||
series(paths.map(dest=> { | ||
return function copier(callback) { | ||
copy(path.join(dest, 'shared'), callback) | ||
} | ||
}), done) | ||
} | ||
}) | ||
@@ -71,0 +73,0 @@ } |
@@ -20,3 +20,3 @@ let cp = require('./copy') | ||
*/ | ||
module.exports = function copyArc(params, callback) { | ||
module.exports = function copyStatic(params, callback) { | ||
let {quiet} = params | ||
@@ -71,8 +71,9 @@ let {arc} = readArc() | ||
if (err) done(err) | ||
series(paths.map(dest=> { | ||
return function copier(callback) { | ||
cp(static, path.join(dest, 'shared', 'static.json'), callback) | ||
} | ||
}), done) | ||
else { | ||
series(paths.map(dest=> { | ||
return function copier(callback) { | ||
cp(static, path.join(dest, 'shared', 'static.json'), callback) | ||
} | ||
}), done) | ||
} | ||
}) | ||
@@ -79,0 +80,0 @@ } |
@@ -21,3 +21,3 @@ let cp = require('./copy') | ||
*/ | ||
module.exports = function copyArc(params, callback) { | ||
module.exports = function copyViews(params, callback) { | ||
let {quiet} = params | ||
@@ -24,0 +24,0 @@ let views = path.join(process.cwd(), 'src', 'views') |
@@ -30,3 +30,10 @@ let fs = require('fs') | ||
}, | ||
], callback) | ||
], function done(err, result) { | ||
if (err) callback(err) | ||
else { | ||
// Remove empty positions from series functions that skipped | ||
result = result.filter(r => r) | ||
callback(null, result) | ||
} | ||
}) | ||
} |
@@ -87,3 +87,3 @@ let chalk = require('chalk') | ||
if (deps && deps > 0 && !quiet) { | ||
let msg = 'Finished hydrating dependencies' | ||
let msg = 'Finished updating dependencies' | ||
let confirm = chalk.green(msg) | ||
@@ -95,4 +95,4 @@ update.done('Success!', confirm) | ||
if (!deps && !quiet) { | ||
let msg = 'Finished checks, nothing to hydrate' | ||
update.done('Finished checks, nothing to hydrate') | ||
let msg = 'Finished checks, nothing to update' | ||
update.done('Finished checks, nothing to update') | ||
result.push({raw: {stdout: msg}, term: {stdout: msg}}) | ||
@@ -99,0 +99,0 @@ } |
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
42281
833