mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
6cd0e5c0d6
commit
0045068313
1 changed files with 8 additions and 7 deletions
|
@ -135,8 +135,11 @@ module.exports = function({ name, targetPath }) {
|
|||
'eslintrc.js': '.eslintrc.js',
|
||||
'i18nrc.json': '.i18nrc.json',
|
||||
},
|
||||
data: answers =>
|
||||
Object.assign(
|
||||
data: answers => {
|
||||
const pathToPlugin = answers.customPath
|
||||
? resolve(answers.customPath, camelCase(name), 'public')
|
||||
: resolve(targetPath, 'public');
|
||||
return Object.assign(
|
||||
{
|
||||
templateVersion: pkg.version,
|
||||
startCase,
|
||||
|
@ -150,13 +153,11 @@ module.exports = function({ name, targetPath }) {
|
|||
hasUi: !!answers.generateApp,
|
||||
hasServer: !!answers.generateApi,
|
||||
hasScss: !!answers.generateScss,
|
||||
relRoot: relative(
|
||||
resolve(answers.customPath || targetPath, name, 'public'),
|
||||
process.cwd()
|
||||
),
|
||||
relRoot: relative(pathToPlugin, process.cwd()),
|
||||
},
|
||||
answers
|
||||
),
|
||||
);
|
||||
},
|
||||
enforceNewFolder: true,
|
||||
installDependencies: false,
|
||||
async post({ log, answers }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue