create-powerapps-project 0.16.5 → 0.16.6

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/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "create-powerapps-project",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 14 Feb 2022 23:29:38 GMT",
5
+ "date": "Wed, 16 Feb 2022 00:36:07 GMT",
6
+ "tag": "create-powerapps-project_v0.16.6",
7
+ "version": "0.16.6",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "derek.finlinson@journeyteam.com",
12
+ "package": "create-powerapps-project",
13
+ "commit": "96abb993cc017edf436a612281ef7a5d3346023b",
14
+ "comment": "Re-add sn.exe; React PCF updates"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 14 Feb 2022 23:29:54 GMT",
6
21
  "tag": "create-powerapps-project_v0.16.5",
7
22
  "version": "0.16.5",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,25 @@
1
1
  # Change Log - create-powerapps-project
2
2
 
3
- This log was last generated on Mon, 14 Feb 2022 23:29:38 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 16 Feb 2022 00:36:07 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.16.5
7
+ ## 0.16.6
8
8
 
9
- Mon, 14 Feb 2022 23:29:38 GMT
9
+ Wed, 16 Feb 2022 00:36:07 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Set class name from prompts (derek.finlinson@journeyteam.com)
13
+ - Re-add sn.exe; React PCF updates (derek.finlinson@journeyteam.com)
14
14
 
15
+ ## 0.16.5
16
+
17
+ Mon, 14 Feb 2022 23:29:54 GMT
18
+
19
+ ### Patches
20
+
21
+ - Set class name from prompts (derek.finlinson@journeyteam.com)
22
+
15
23
  ## 0.16.4
16
24
 
17
25
  Fri, 11 Feb 2022 16:59:23 GMT
package/bin/sn.exe ADDED
Binary file
@@ -0,0 +1,6 @@
1
+ <?xml version ="1.0"?>
2
+ <configuration>
3
+ <startup useLegacyV2RuntimeActivationPolicy="true">
4
+ <requiredRuntime safemode="true" imageVersion="v4.0.30319" version="v4.0.30319"/>
5
+ </startup>
6
+ </configuration>
package/lib/plopfile.js CHANGED
@@ -76,7 +76,7 @@ exports.default = (plop) => {
76
76
  type: 'addMany',
77
77
  templateFiles: [
78
78
  '../plop-templates/pcf/App.tsx',
79
- '../plop-templates/pcf/index.ts'
79
+ '../plop-templates/pcf/index.ts.hbs'
80
80
  ],
81
81
  base: '../plop-templates/pcf',
82
82
  destination: `${process.cwd()}/{{ name }}`,
@@ -85,11 +85,26 @@ exports.default = (plop) => {
85
85
  return !answers.react;
86
86
  }
87
87
  },
88
+ {
89
+ type: 'add',
90
+ templateFile: '../plop-templates/pcf/tsconfig.json',
91
+ path: path_1.default.resolve(process.cwd(), 'tsconfig.json'),
92
+ force: true,
93
+ skip: (answers) => {
94
+ return !answers.react;
95
+ }
96
+ },
88
97
  {
89
98
  type: 'addGenScript',
90
99
  skip: (answers) => {
91
100
  return !answers.react;
92
101
  }
102
+ },
103
+ {
104
+ type: 'updateTsConfig',
105
+ skip: (answers) => {
106
+ return !answers.react;
107
+ }
93
108
  }
94
109
  ]
95
110
  });
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.16.5",
4
+ "version": "0.16.6",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
7
7
  "bin": {
@@ -3,12 +3,13 @@ import React from 'react';
3
3
  import ReactDOM from 'react-dom';
4
4
  import { initializeIcons } from '@fluentui/font-icons-mdl2';
5
5
 
6
- import { App } from './App';
6
+ import { App, AppProps } from './App';
7
7
 
8
8
  export class {{name}} implements ComponentFramework.StandardControl<IInputs, IOutputs> {
9
9
  container: HTMLDivElement;
10
10
  context: ComponentFramework.Context<IInputs>;
11
11
  isTestHarness: boolean;
12
+ props: AppProps;
12
13
 
13
14
  /**
14
15
  * Empty constructor.
@@ -39,10 +40,12 @@ export class {{name}} implements ComponentFramework.StandardControl<IInputs, IOu
39
40
  * @param context The entire property bag available to control via Context Object; It contains values as set up by the customizer mapped to names defined in the manifest, as well as utility functions
40
41
  */
41
42
  public updateView(context: ComponentFramework.Context<IInputs>): void {
43
+ this.props = {
44
+ isTestHarness: this.isTestHarness
45
+ };
46
+
42
47
  ReactDOM.render(
43
- React.createElement(App, {
44
- isTestHarness: this.isTestHarness
45
- }),
48
+ React.createElement(App, AppProps),
46
49
  this.container
47
50
  );
48
51
  }
@@ -60,7 +63,7 @@ export class {{name}} implements ComponentFramework.StandardControl<IInputs, IOu
60
63
  * i.e. cancelling any pending remote calls, removing listeners, etc.
61
64
  */
62
65
  public destroy(): void {
63
- // Add code to cleanup control if necessary
66
+ ReactDOM.unmountComponentAtNode(this.container);
64
67
  }
65
68
 
66
69
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./node_modules/pcf-scripts/tsconfig_base.json",
3
+ "compilerOptions": {
4
+ "target": "ES6",
5
+ "esModuleInterop": true
6
+ }
7
+ }