mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-23 11:30:52 -05:00
10 lines
225 B
JavaScript
10 lines
225 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = class Generator {
|
|
constructor (id, requirePath = id) {
|
|
this.id = id
|
|
this.path = path.dirname(require.resolve(requirePath))
|
|
this.module = require(requirePath)
|
|
}
|
|
}
|