UNPKG
vue-cli
Version:
latest (2.9.6)
2.9.6
2.9.5
2.9.4
2.9.3
2.9.2
2.9.1
2.9.0
2.8.2
2.8.1
2.8.0
2.7.0
2.6.0
2.5.1
2.5.0
2.4.0
2.3.1
2.2.0
2.1.1
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.4.0
1.3.0
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
A simple CLI for scaffolding Vue.js projects.
github.com/vuejs/vue-cli
vuejs/vue-cli
vue-cli
/
lib
/
local-path.js
14 lines
(11 loc)
•
303 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
path
=
require
(
'path'
)
module
.exports = { isLocalPath (templatePath) {
return
/^[./]|(^[a-zA-Z]:)/.test(templatePath) }, getTemplatePath (templatePath) {
return
path
.isAbsolute(templatePath) ? templatePath :
path
.normalize(
path
.join(process.cwd(), templatePath)) } }