build: add vue package

This commit is contained in:
Evan You
2018-10-23 11:58:37 -04:00
parent f57ca5e189
commit 0857d96438
10 changed files with 55 additions and 5 deletions

View File

@@ -11,11 +11,14 @@ const targets = (exports.targets = fs.readdirSync('packages').filter(f => {
return true
}))
exports.fuzzyMatchTarget = partialTarget => {
exports.fuzzyMatchTarget = (partialTarget, includeAllMatching) => {
const matched = []
for (const target of targets) {
if (target.match(partialTarget)) {
matched.push(target)
if (!includeAllMatching) {
return matched
}
}
}
if (matched.length) {