create-powerapps-project 0.27.0 → 0.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/plopfile.js +10 -20
- package/package.json +1 -1
- package/plop-templates/pcf/App.tsx.hbs +1 -1
package/lib/plopfile.js
CHANGED
|
@@ -134,7 +134,7 @@ exports.default = (plop) => {
|
|
|
134
134
|
]
|
|
135
135
|
},
|
|
136
136
|
packageQuestion,
|
|
137
|
-
...sharedQuestions
|
|
137
|
+
...sharedQuestions
|
|
138
138
|
],
|
|
139
139
|
actions: (data) => {
|
|
140
140
|
data.org = new URL(data.server).hostname.split('.')[0];
|
|
@@ -227,10 +227,7 @@ exports.default = (plop) => {
|
|
|
227
227
|
type: 'npmInstall',
|
|
228
228
|
data: {
|
|
229
229
|
packages: {
|
|
230
|
-
devDependencies: [
|
|
231
|
-
'powerapps-project-assembly',
|
|
232
|
-
'dataverse-utils'
|
|
233
|
-
]
|
|
230
|
+
devDependencies: ['powerapps-project-assembly', 'dataverse-utils']
|
|
234
231
|
}
|
|
235
232
|
}
|
|
236
233
|
}
|
|
@@ -296,10 +293,7 @@ exports.default = (plop) => {
|
|
|
296
293
|
},
|
|
297
294
|
{
|
|
298
295
|
type: 'addMany',
|
|
299
|
-
templateFiles: [
|
|
300
|
-
'../plop-templates/pcf/App.tsx.hbs',
|
|
301
|
-
'../plop-templates/pcf/AppContext.tsx'
|
|
302
|
-
],
|
|
296
|
+
templateFiles: ['../plop-templates/pcf/App.tsx.hbs', '../plop-templates/pcf/AppContext.tsx'],
|
|
303
297
|
base: '../plop-templates/pcf',
|
|
304
298
|
destination: `${process.cwd()}/{{name}}`,
|
|
305
299
|
skip: (answers) => {
|
|
@@ -349,8 +343,11 @@ exports.default = (plop) => {
|
|
|
349
343
|
}
|
|
350
344
|
},
|
|
351
345
|
async (answers) => {
|
|
352
|
-
|
|
353
|
-
|
|
346
|
+
if (answers.react) {
|
|
347
|
+
await fs_1.default.promises.rm(path_1.default.resolve(process.cwd(), answers.name, 'HelloWorld.tsx'));
|
|
348
|
+
return 'removed HelloWorld component';
|
|
349
|
+
}
|
|
350
|
+
return 'react not included';
|
|
354
351
|
},
|
|
355
352
|
{
|
|
356
353
|
type: 'npmInstall'
|
|
@@ -359,9 +356,7 @@ exports.default = (plop) => {
|
|
|
359
356
|
type: 'npmInstall',
|
|
360
357
|
data: {
|
|
361
358
|
packages: {
|
|
362
|
-
devDependencies: [
|
|
363
|
-
'powerapps-project-pcf'
|
|
364
|
-
]
|
|
359
|
+
devDependencies: ['powerapps-project-pcf']
|
|
365
360
|
}
|
|
366
361
|
}
|
|
367
362
|
}
|
|
@@ -431,12 +426,7 @@ exports.default = (plop) => {
|
|
|
431
426
|
'@microsoft/eslint-plugin-power-apps',
|
|
432
427
|
'-D'
|
|
433
428
|
],
|
|
434
|
-
dependencies: [
|
|
435
|
-
'core-js',
|
|
436
|
-
'regenerator-runtime',
|
|
437
|
-
'powerapps-common',
|
|
438
|
-
'dataverse-webapi'
|
|
439
|
-
]
|
|
429
|
+
dependencies: ['core-js', 'regenerator-runtime', 'powerapps-common', 'dataverse-webapi']
|
|
440
430
|
}
|
|
441
431
|
}
|
|
442
432
|
}
|
package/package.json
CHANGED