create-powerapps-project 1.3.0 → 1.3.1
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 +2 -20
- package/package.json +1 -1
package/lib/plopfile.js
CHANGED
|
@@ -312,7 +312,7 @@ export default async (plop) => {
|
|
|
312
312
|
{
|
|
313
313
|
type: 'add',
|
|
314
314
|
templateFile: '../plop-templates/pcf/App.tsx.hbs',
|
|
315
|
-
path: path.resolve(process.cwd(), 'App.tsx'),
|
|
315
|
+
path: path.resolve(process.cwd(), '{{name}}', 'App.tsx'),
|
|
316
316
|
skip: (answers) => {
|
|
317
317
|
if (!answers.react) {
|
|
318
318
|
return 'react not included';
|
|
@@ -323,7 +323,7 @@ export default async (plop) => {
|
|
|
323
323
|
{
|
|
324
324
|
type: 'add',
|
|
325
325
|
templateFile: '../plop-templates/pcf/AppContext.tsx.hbs',
|
|
326
|
-
path: path.resolve(process.cwd(), 'contexts', 'AppContext.tsx'),
|
|
326
|
+
path: path.resolve(process.cwd(), '{{name}}', 'contexts', 'AppContext.tsx'),
|
|
327
327
|
skip: (answers) => {
|
|
328
328
|
if (!answers.react) {
|
|
329
329
|
return 'react not included';
|
|
@@ -400,24 +400,6 @@ export default async (plop) => {
|
|
|
400
400
|
}
|
|
401
401
|
return;
|
|
402
402
|
}
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
type: 'addDirectory',
|
|
406
|
-
data: {
|
|
407
|
-
folder: 'components'
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
type: 'addDirectory',
|
|
412
|
-
data: {
|
|
413
|
-
folder: 'services'
|
|
414
|
-
}
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
type: 'addDirectory',
|
|
418
|
-
data: {
|
|
419
|
-
folder: 'hooks'
|
|
420
|
-
}
|
|
421
403
|
}
|
|
422
404
|
];
|
|
423
405
|
}
|