yun-cli
Version:
A simple CLI for scaffolding Vue.js projects with yun-ui.
14 lines (11 loc) • 353 B
JavaScript
var path = require('path')
module.exports = {
isLocalPath: function (templatePath) {
return /^[./]|(^[a-zA-Z]:)/.test(templatePath)
},
getTemplatePath: function (templatePath) {
return path.isAbsolute(templatePath)
? templatePath
: path.normalize(path.join(process.cwd(), templatePath))
}
}