create-powerapps-project 0.19.1 → 0.20.0
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 +12 -13
- package/package.json +1 -1
package/lib/plopfile.js
CHANGED
|
@@ -90,9 +90,9 @@ exports.default = (plop) => {
|
|
|
90
90
|
nuget.install(answers.name, answers.sdkVersion, xrmVersion);
|
|
91
91
|
return 'installed nuget packages';
|
|
92
92
|
});
|
|
93
|
-
plop.setActionType('npmInstall', (
|
|
94
|
-
if (
|
|
95
|
-
pkg.install(process.cwd(),
|
|
93
|
+
plop.setActionType('npmInstall', (answers) => {
|
|
94
|
+
if (answers.projectType) {
|
|
95
|
+
pkg.install(process.cwd(), answers.projectType);
|
|
96
96
|
}
|
|
97
97
|
return 'installed npm packages';
|
|
98
98
|
});
|
|
@@ -178,7 +178,9 @@ exports.default = (plop) => {
|
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
type: 'npmInstall',
|
|
181
|
-
|
|
181
|
+
data: {
|
|
182
|
+
projectType: 'assembly'
|
|
183
|
+
}
|
|
182
184
|
}
|
|
183
185
|
]
|
|
184
186
|
});
|
|
@@ -227,6 +229,7 @@ exports.default = (plop) => {
|
|
|
227
229
|
if (!answers.react) {
|
|
228
230
|
return 'react not included';
|
|
229
231
|
}
|
|
232
|
+
return;
|
|
230
233
|
}
|
|
231
234
|
},
|
|
232
235
|
{
|
|
@@ -238,23 +241,19 @@ exports.default = (plop) => {
|
|
|
238
241
|
if (!answers.react) {
|
|
239
242
|
return 'react not included';
|
|
240
243
|
}
|
|
241
|
-
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
type: 'addGenScript',
|
|
245
|
-
skip: (answers) => {
|
|
246
|
-
if (!answers.react) {
|
|
247
|
-
return 'react not included';
|
|
248
|
-
}
|
|
244
|
+
return;
|
|
249
245
|
}
|
|
250
246
|
},
|
|
251
247
|
{
|
|
252
248
|
type: 'npmInstall',
|
|
253
|
-
|
|
249
|
+
data: {
|
|
250
|
+
projectType: 'pcf'
|
|
251
|
+
},
|
|
254
252
|
skip: (answers) => {
|
|
255
253
|
if (!answers.react) {
|
|
256
254
|
return 'react not included';
|
|
257
255
|
}
|
|
256
|
+
return;
|
|
258
257
|
}
|
|
259
258
|
}
|
|
260
259
|
]
|