create-powerapps-project 0.17.1 → 0.17.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 +63 -64
- package/package.json +1 -1
- package/CHANGELOG.json +0 -994
- package/CHANGELOG.md +0 -498
- package/plop-templates/assembly/.gitignore +0 -362
- package/plop-templates/webresource/.gitignore +0 -43
package/lib/plopfile.js
CHANGED
|
@@ -30,7 +30,6 @@ const pkg = __importStar(require("./packageManager"));
|
|
|
30
30
|
const getEnvInfo_1 = require("./getEnvInfo");
|
|
31
31
|
const didSucceed = (code) => `${code}` === '0';
|
|
32
32
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
34
33
|
exports.default = (plop) => {
|
|
35
34
|
void (0, getEnvInfo_1.initialize)();
|
|
36
35
|
plop.setActionType('signAssembly', (answers) => {
|
|
@@ -115,36 +114,71 @@ exports.default = (plop) => {
|
|
|
115
114
|
message: 'dataverse solution unique name:'
|
|
116
115
|
}
|
|
117
116
|
];
|
|
118
|
-
plop.setGenerator('
|
|
119
|
-
description: 'generate dataverse
|
|
117
|
+
plop.setGenerator('assembly', {
|
|
118
|
+
description: 'generate dataverse assembly project',
|
|
120
119
|
prompts: [
|
|
120
|
+
{
|
|
121
|
+
type: 'list',
|
|
122
|
+
name: 'sdkVersion',
|
|
123
|
+
message: 'select sdk version',
|
|
124
|
+
choices: async () => {
|
|
125
|
+
const versions = await nuget.getNugetPackageVersions('Microsoft.CrmSdk.Workflow');
|
|
126
|
+
return versions.map(v => ({ name: v, value: v }));
|
|
127
|
+
}
|
|
128
|
+
},
|
|
121
129
|
{
|
|
122
130
|
type: 'input',
|
|
123
131
|
name: 'name',
|
|
124
|
-
message: '
|
|
125
|
-
default: path_1.default.basename(process.cwd())
|
|
132
|
+
message: 'default C# namespace (Company.Crm.Plugins):'
|
|
126
133
|
},
|
|
127
134
|
{
|
|
128
|
-
type: '
|
|
129
|
-
name: '
|
|
130
|
-
message: '
|
|
135
|
+
type: 'list',
|
|
136
|
+
name: 'isolation',
|
|
137
|
+
message: 'select isolation mode',
|
|
138
|
+
default: 2,
|
|
139
|
+
choices: [
|
|
140
|
+
{
|
|
141
|
+
name: 'sandbox',
|
|
142
|
+
value: 2
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'none',
|
|
146
|
+
value: 1
|
|
147
|
+
}
|
|
148
|
+
]
|
|
131
149
|
},
|
|
132
|
-
...connectionQuestions
|
|
150
|
+
...connectionQuestions,
|
|
133
151
|
],
|
|
134
152
|
actions: [
|
|
153
|
+
{
|
|
154
|
+
type: 'add',
|
|
155
|
+
templateFile: '../plop-templates/assembly/assembly.csproj.hbs',
|
|
156
|
+
path: path_1.default.resolve(process.cwd(), '{{name}}.csproj'),
|
|
157
|
+
},
|
|
135
158
|
{
|
|
136
159
|
type: 'addMany',
|
|
137
|
-
templateFiles: [
|
|
138
|
-
|
|
160
|
+
templateFiles: [
|
|
161
|
+
'../plop-templates/assembly/*.json.hbs',
|
|
162
|
+
'../plop-templates/assembly/*.js',
|
|
163
|
+
'../plop-templates/assembly/*.ts.hbs',
|
|
164
|
+
'../plop-templates/assembly/.gitignore',
|
|
165
|
+
'../plop-templates/assembly/Entities/EarlyBoundGenerator.xml',
|
|
166
|
+
'../plop-templates/assembly/.vscode/tasks.json',
|
|
167
|
+
'../plop-templates/assembly/.editorconfig'
|
|
168
|
+
],
|
|
169
|
+
base: '../plop-templates/assembly',
|
|
139
170
|
destination: process.cwd(),
|
|
140
171
|
force: true
|
|
141
172
|
},
|
|
173
|
+
{
|
|
174
|
+
type: 'signAssembly'
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
type: 'nugetInstall'
|
|
178
|
+
},
|
|
142
179
|
{
|
|
143
180
|
type: 'npmInstall',
|
|
144
|
-
projectType: '
|
|
145
|
-
skip: (answers) => {
|
|
146
|
-
return !answers.react;
|
|
147
|
-
}
|
|
181
|
+
projectType: 'assembly'
|
|
148
182
|
}
|
|
149
183
|
]
|
|
150
184
|
});
|
|
@@ -217,71 +251,36 @@ exports.default = (plop) => {
|
|
|
217
251
|
}
|
|
218
252
|
]
|
|
219
253
|
});
|
|
220
|
-
plop.setGenerator('
|
|
221
|
-
description: 'generate dataverse
|
|
254
|
+
plop.setGenerator('webresource', {
|
|
255
|
+
description: 'generate dataverse web resource project',
|
|
222
256
|
prompts: [
|
|
223
|
-
{
|
|
224
|
-
type: 'list',
|
|
225
|
-
name: 'sdkVersion',
|
|
226
|
-
message: 'select sdk version',
|
|
227
|
-
choices: async () => {
|
|
228
|
-
const versions = await nuget.getNugetPackageVersions('Microsoft.CrmSdk.Workflow');
|
|
229
|
-
return versions.map(v => ({ name: v, value: v }));
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
257
|
{
|
|
233
258
|
type: 'input',
|
|
234
259
|
name: 'name',
|
|
235
|
-
message: '
|
|
260
|
+
message: 'project name',
|
|
261
|
+
default: path_1.default.basename(process.cwd())
|
|
236
262
|
},
|
|
237
263
|
{
|
|
238
|
-
type: '
|
|
239
|
-
name: '
|
|
240
|
-
message: '
|
|
241
|
-
default: 2,
|
|
242
|
-
choices: [
|
|
243
|
-
{
|
|
244
|
-
name: 'sandbox',
|
|
245
|
-
value: 2
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
name: 'none',
|
|
249
|
-
value: 1
|
|
250
|
-
}
|
|
251
|
-
]
|
|
264
|
+
type: 'input',
|
|
265
|
+
name: 'namespace',
|
|
266
|
+
message: 'namespace for form and ribbon scripts:'
|
|
252
267
|
},
|
|
253
|
-
...connectionQuestions
|
|
268
|
+
...connectionQuestions
|
|
254
269
|
],
|
|
255
270
|
actions: [
|
|
256
|
-
{
|
|
257
|
-
type: 'add',
|
|
258
|
-
templateFile: '../plop-templates/assembly/assembly.csproj.hbs',
|
|
259
|
-
path: path_1.default.resolve(process.cwd(), '{{name}}.csproj'),
|
|
260
|
-
},
|
|
261
271
|
{
|
|
262
272
|
type: 'addMany',
|
|
263
|
-
templateFiles: [
|
|
264
|
-
|
|
265
|
-
'../plop-templates/assembly/*.js',
|
|
266
|
-
'../plop-templates/assembly/*.ts.hbs',
|
|
267
|
-
'../plop-templates/assembly/.gitignore',
|
|
268
|
-
'../plop-templates/assembly/Entities/EarlyBoundGenerator.xml',
|
|
269
|
-
'../plop-templates/assembly/.vscode/tasks.json',
|
|
270
|
-
'../plop-templates/assembly/.editorconfig'
|
|
271
|
-
],
|
|
272
|
-
base: '../plop-templates/assembly',
|
|
273
|
+
templateFiles: ['../plop-templates/webresource/*', '../plop-templates/webresource/.*'],
|
|
274
|
+
base: '../plop-templates/webresource',
|
|
273
275
|
destination: process.cwd(),
|
|
274
276
|
force: true
|
|
275
277
|
},
|
|
276
|
-
{
|
|
277
|
-
type: 'signAssembly'
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
type: 'nugetInstall'
|
|
281
|
-
},
|
|
282
278
|
{
|
|
283
279
|
type: 'npmInstall',
|
|
284
|
-
projectType: '
|
|
280
|
+
projectType: 'webresource',
|
|
281
|
+
skip: (answers) => {
|
|
282
|
+
return !answers.react;
|
|
283
|
+
}
|
|
285
284
|
}
|
|
286
285
|
]
|
|
287
286
|
});
|