create-powerapps-project 0.25.2 → 0.27.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 CHANGED
@@ -137,6 +137,7 @@ exports.default = (plop) => {
137
137
  ...sharedQuestions,
138
138
  ],
139
139
  actions: (data) => {
140
+ data.org = new URL(data.server).hostname.split('.')[0];
140
141
  return [
141
142
  async (answers) => {
142
143
  const xrmVersions = await (0, nuget_1.getNugetPackageVersions)('JourneyTeam.Xrm');
@@ -201,7 +202,7 @@ exports.default = (plop) => {
201
202
  '../plop-templates/assembly/package.json.hbs',
202
203
  '../plop-templates/assembly/plopfile.js',
203
204
  '../plop-templates/assembly/.gitignore',
204
- '../plop-templates/assembly/Entities/EarlyBoundGenerator.xml',
205
+ '../plop-templates/assembly/builderSettings.json',
205
206
  '../plop-templates/assembly/.vscode/tasks.json.hbs',
206
207
  '../plop-templates/assembly/.editorconfig'
207
208
  ],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-powerapps-project",
3
3
  "description": "💧 plop generator for Dataverse development",
4
- "version": "0.25.2",
4
+ "version": "0.27.0",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
7
7
  "bin": {
@@ -0,0 +1,18 @@
1
+ {
2
+ "suppressINotifyPattern": false,
3
+ "suppressGeneratedCodeAttribute": false,
4
+ "language": "CS",
5
+ "namespace": "Xrm",
6
+ "serviceContextName": "CrmServiceContext",
7
+ "generateActions": true,
8
+ "generateGlobalOptionSets": false,
9
+ "emitFieldsClasses": false,
10
+ "entityTypesFolder": "Entities",
11
+ "messagesTypesFolder": "Messages",
12
+ "optionSetsTypesFolder": "OptionSets",
13
+ "entityNamesFilter": [
14
+ ],
15
+ "messageNamesFilter": [
16
+ "jt_*"
17
+ ]
18
+ }
@@ -5,6 +5,9 @@
5
5
  "type": "commonjs",
6
6
  "scripts": {
7
7
  "gen": "plop",
8
- "deploy": "dataverse-utils deploy assembly"
8
+ "deploy": "dataverse-utils deploy assembly",
9
+ "modelbuilder": "pac auth select --name {{org}} && pac modelbuilder build -stf builderSettings.json -o Model",
10
+ "authenticate": "pac auth create --url {{server}} --name {{org}}",
11
+ "prt": "pac tool prt"
9
12
  }
10
13
  }
@@ -1,17 +1,17 @@
1
- import React from 'react';
2
- import { IInputs } from './generated/ManifestTypes';
3
-
4
- const AppContext = React.createContext<ComponentFramework.Context<IInputs>>({} as ComponentFramework.Context<IInputs>);
5
-
6
- interface IAppContextProviderProps {
7
- context: ComponentFramework.Context<IInputs>;
8
- children?: React.ReactNode;
9
- }
10
-
11
- export const AppContextProvider = (props: IAppContextProviderProps): JSX.Element => {
12
- const { context, children } = props;
13
-
14
- return <AppContext.Provider value={context}>{children}</AppContext.Provider>;
15
- };
16
-
17
- export const useAppContext = (): ComponentFramework.Context<IInputs> => React.useContext(AppContext);
1
+ import React from 'react';
2
+ import { IInputs } from './generated/ManifestTypes';
3
+
4
+ const AppContext = React.createContext<ComponentFramework.Context<IInputs>>({} as ComponentFramework.Context<IInputs>);
5
+
6
+ interface IAppContextProviderProps {
7
+ context: ComponentFramework.Context<IInputs>;
8
+ children?: React.ReactNode;
9
+ }
10
+
11
+ export const AppContextProvider = (props: IAppContextProviderProps): JSX.Element => {
12
+ const { context, children } = props;
13
+
14
+ return <AppContext.Provider value={context}>{children}</AppContext.Provider>;
15
+ };
16
+
17
+ export const useAppContext = (): ComponentFramework.Context<IInputs> => React.useContext(AppContext);
@@ -1,163 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Config xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
- <AudibleCompletionNotification>true</AudibleCompletionNotification>
5
- <CrmSvcUtilRelativePath>DLaB.EarlyBoundGenerator\crmsvcutil.exe</CrmSvcUtilRelativePath>
6
- <IncludeCommandLine>false</IncludeCommandLine>
7
- <MaskPassword>true</MaskPassword>
8
- <SettingsVersion>1.2020.4.24</SettingsVersion>
9
- <Version>1.2020.4.24</Version>
10
- <ExtensionConfig>
11
- <ActionPrefixesWhitelist />
12
- <ActionsWhitelist />
13
- <ActionsToSkip />
14
- <AddDebuggerNonUserCode>true</AddDebuggerNonUserCode>
15
- <AddNewFilesToProject>false</AddNewFilesToProject>
16
- <AddOptionSetMetadataAttribute>true</AddOptionSetMetadataAttribute>
17
- <CreateOneFilePerAction>true</CreateOneFilePerAction>
18
- <CreateOneFilePerEntity>true</CreateOneFilePerEntity>
19
- <CreateOneFilePerOptionSet>false</CreateOneFilePerOptionSet>
20
- <DeleteFilesFromOutputFolders>true</DeleteFilesFromOutputFolders>
21
- <EntitiesToSkip />
22
- <EntitiesWhitelist></EntitiesWhitelist>
23
- <EntityAttributeSpecifiedNames />
24
- <EntityPrefixesToSkip />
25
- <EntityPrefixesWhitelist />
26
- <GenerateActionAttributeNameConsts>false</GenerateActionAttributeNameConsts>
27
- <GenerateAttributeNameConsts>false</GenerateAttributeNameConsts>
28
- <GenerateAnonymousTypeConstructor>true</GenerateAnonymousTypeConstructor>
29
- <GenerateConstructorsSansLogicalName>true</GenerateConstructorsSansLogicalName>
30
- <GenerateEntityRelationships>true</GenerateEntityRelationships>
31
- <GenerateEntityTypeCode>false</GenerateEntityTypeCode>
32
- <GenerateEnumProperties>true</GenerateEnumProperties>
33
- <GenerateOnlyReferencedOptionSets>true</GenerateOnlyReferencedOptionSets>
34
- <GenerateOptionSetMetadataAttribute>true</GenerateOptionSetMetadataAttribute>
35
- <InvalidCSharpNamePrefix>_</InvalidCSharpNamePrefix>
36
- <MakeAllFieldsEditable>false</MakeAllFieldsEditable>
37
- <MakeReadonlyFieldsEditable>false</MakeReadonlyFieldsEditable>
38
- <MakeResponseActionsEditable>false</MakeResponseActionsEditable>
39
- <LocalOptionSetFormat>{0}_{1}</LocalOptionSetFormat>
40
- <OptionSetPrefixesToSkip />
41
- <OptionSetsToSkip />
42
- <OptionSetLanguageCodeOverride xsi:nil="true" />
43
- <ProjectNameForEarlyBoundFiles />
44
- <RemoveRuntimeVersionComment>true</RemoveRuntimeVersionComment>
45
- <ReplaceOptionSetPropertiesWithEnum>true</ReplaceOptionSetPropertiesWithEnum>
46
- <PropertyEnumMappings />
47
- <ReadSerializedMetadata>false</ReadSerializedMetadata>
48
- <SerializeMetadata>false</SerializeMetadata>
49
- <UnmappedProperties>duplicaterule:BaseEntityTypeCode,MatchingEntityTypeCode|
50
- invoicedetail:InvoiceStateCode|
51
- leadaddress:AddressTypeCode,ShippingMethodCode|
52
- organization:CurrencyFormatCode,DateFormatCode,TimeFormatCode,WeekStartDayCode|
53
- quote:StatusCode|
54
- quotedetail:QuoteStateCode|
55
- salesorderdetail:SalesOrderStateCode</UnmappedProperties>
56
- <UseDeprecatedOptionSetNaming>false</UseDeprecatedOptionSetNaming>
57
- <UseTfsToCheckoutFiles>false</UseTfsToCheckoutFiles>
58
- <WaitForAttachedDebugger>false</WaitForAttachedDebugger>
59
- </ExtensionConfig>
60
- <ExtensionArguments>
61
- <Argument>
62
- <SettingType>Actions</SettingType>
63
- <Name>codecustomization</Name>
64
- <Value>DLaB.CrmSvcUtilExtensions.Action.CustomizeCodeDomService,DLaB.CrmSvcUtilExtensions</Value>
65
- </Argument>
66
- <Argument>
67
- <SettingType>Actions</SettingType>
68
- <Name>codegenerationservice</Name>
69
- <Value>DLaB.CrmSvcUtilExtensions.Action.CustomCodeGenerationService,DLaB.CrmSvcUtilExtensions</Value>
70
- </Argument>
71
- <Argument>
72
- <SettingType>Actions</SettingType>
73
- <Name>codewriterfilter</Name>
74
- <Value>DLaB.CrmSvcUtilExtensions.Action.CodeWriterFilterService,DLaB.CrmSvcUtilExtensions</Value>
75
- </Argument>
76
- <Argument>
77
- <SettingType>Actions</SettingType>
78
- <Name>metadataproviderservice</Name>
79
- <Value>DLaB.CrmSvcUtilExtensions.BaseMetadataProviderService,DLaB.CrmSvcUtilExtensions</Value>
80
- </Argument>
81
- <Argument>
82
- <SettingType>Entities</SettingType>
83
- <Name>codecustomization</Name>
84
- <Value>DLaB.CrmSvcUtilExtensions.Entity.CustomizeCodeDomService,DLaB.CrmSvcUtilExtensions</Value>
85
- </Argument>
86
- <Argument>
87
- <SettingType>Entities</SettingType>
88
- <Name>codegenerationservice</Name>
89
- <Value>DLaB.CrmSvcUtilExtensions.Entity.CustomCodeGenerationService,DLaB.CrmSvcUtilExtensions</Value>
90
- </Argument>
91
- <Argument>
92
- <SettingType>Entities</SettingType>
93
- <Name>codewriterfilter</Name>
94
- <Value>DLaB.CrmSvcUtilExtensions.Entity.CodeWriterFilterService,DLaB.CrmSvcUtilExtensions</Value>
95
- </Argument>
96
- <Argument>
97
- <SettingType>Entities</SettingType>
98
- <Name>namingservice</Name>
99
- <Value>DLaB.CrmSvcUtilExtensions.NamingService,DLaB.CrmSvcUtilExtensions</Value>
100
- </Argument>
101
- <Argument>
102
- <SettingType>Entities</SettingType>
103
- <Name>metadataproviderservice</Name>
104
- <Value>DLaB.CrmSvcUtilExtensions.Entity.MetadataProviderService,DLaB.CrmSvcUtilExtensions</Value>
105
- </Argument>
106
- <Argument>
107
- <SettingType>OptionSets</SettingType>
108
- <Name>codecustomization</Name>
109
- <Value>DLaB.CrmSvcUtilExtensions.OptionSet.CustomizeCodeDomService,DLaB.CrmSvcUtilExtensions</Value>
110
- </Argument>
111
- <Argument>
112
- <SettingType>OptionSets</SettingType>
113
- <Name>codegenerationservice</Name>
114
- <Value>DLaB.CrmSvcUtilExtensions.OptionSet.CustomCodeGenerationService,DLaB.CrmSvcUtilExtensions</Value>
115
- </Argument>
116
- <Argument>
117
- <SettingType>OptionSets</SettingType>
118
- <Name>codewriterfilter</Name>
119
- <Value>DLaB.CrmSvcUtilExtensions.OptionSet.CodeWriterFilterService,DLaB.CrmSvcUtilExtensions</Value>
120
- </Argument>
121
- <Argument>
122
- <SettingType>OptionSets</SettingType>
123
- <Name>namingservice</Name>
124
- <Value>DLaB.CrmSvcUtilExtensions.NamingService,DLaB.CrmSvcUtilExtensions</Value>
125
- </Argument>
126
- <Argument>
127
- <SettingType>OptionSets</SettingType>
128
- <Name>metadataproviderservice</Name>
129
- <Value>DLaB.CrmSvcUtilExtensions.BaseMetadataProviderService,DLaB.CrmSvcUtilExtensions</Value>
130
- </Argument>
131
- </ExtensionArguments>
132
- <UserArguments>
133
- <Argument>
134
- <SettingType>Actions</SettingType>
135
- <Name>generateActions</Name>
136
- </Argument>
137
- <Argument>
138
- <SettingType>Actions</SettingType>
139
- <Name>out</Name>
140
- <Value>\Actions</Value>
141
- </Argument>
142
- <Argument>
143
- <SettingType>All</SettingType>
144
- <Name>namespace</Name>
145
- <Value>Xrm</Value>
146
- </Argument>
147
- <Argument>
148
- <SettingType>Entities</SettingType>
149
- <Name>out</Name>
150
- <Value />
151
- </Argument>
152
- <Argument>
153
- <SettingType>Entities</SettingType>
154
- <Name>servicecontextname</Name>
155
- <Value>CrmServiceContext</Value>
156
- </Argument>
157
- <Argument>
158
- <SettingType>OptionSets</SettingType>
159
- <Name>out</Name>
160
- <Value>OptionSets.cs</Value>
161
- </Argument>
162
- </UserArguments>
163
- </Config>