create-powerapps-project 0.23.0 → 0.23.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/README.md +2 -1
- package/lib/plopfile.js +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ Project generator for Dataverse development
|
|
|
14
14
|
* Unit tests using [xrm-mock](https://github.com/camelCaseDave/xrm-mock) and [Jest](https://jestjs.io/)
|
|
15
15
|
* Deploy web resources
|
|
16
16
|
* Plugin project scaffolding
|
|
17
|
+
* Support for [plugin packages](https://docs.microsoft.com/en-us/power-apps/developer/data-platform/dependent-assembly-plugins) (dependent assemblies)
|
|
17
18
|
* Base plugin classes
|
|
18
19
|
* No ILMerge needed
|
|
19
20
|
* Deploy plugin assemblies and types
|
|
@@ -33,4 +34,4 @@ npm init powerapps-project
|
|
|
33
34
|
|
|
34
35
|
```sh
|
|
35
36
|
npm run gen
|
|
36
|
-
```
|
|
37
|
+
```
|
package/lib/plopfile.js
CHANGED
|
@@ -103,14 +103,15 @@ exports.default = (plop) => {
|
|
|
103
103
|
name: 'name',
|
|
104
104
|
message: 'default C# namespace (Company.Crm.Plugins):',
|
|
105
105
|
validate: (name) => {
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
108
|
-
return
|
|
106
|
+
const validNamespace = name.replace(/[^a-zA-Z.]+/g, '');
|
|
107
|
+
if (validNamespace !== name) {
|
|
108
|
+
return 'namespace must contain only alpha characters and periods';
|
|
109
109
|
}
|
|
110
|
+
const namespace = name.split('.');
|
|
110
111
|
for (const item of namespace) {
|
|
111
112
|
const title = plop.renderString('{{titleCase name}}', { name: item });
|
|
112
113
|
if (title !== item) {
|
|
113
|
-
return `enter namespace using
|
|
114
|
+
return `enter namespace using PascalCase`;
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
return true;
|