create-powerapps-project 1.3.3 → 1.3.4
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/packageManager.js
CHANGED
|
@@ -5,7 +5,7 @@ export const install = async (packageManager, packages) => {
|
|
|
5
5
|
}
|
|
6
6
|
if (packages) {
|
|
7
7
|
if (packages.devDependencies) {
|
|
8
|
-
spawnSync(packageManager, ['add', ...packages.devDependencies], { stdio: 'inherit', shell: true });
|
|
8
|
+
spawnSync(packageManager, ['add', ...packages.devDependencies, '-D'], { stdio: 'inherit', shell: true });
|
|
9
9
|
}
|
|
10
10
|
if (packages.dependencies) {
|
|
11
11
|
spawnSync(packageManager, ['add', ...packages.dependencies], { stdio: 'inherit', shell: true });
|
package/lib/plopfile.js
CHANGED
|
@@ -311,7 +311,7 @@ export default async (plop) => {
|
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
type: 'add',
|
|
314
|
-
templateFile: '../plop-templates/pcf/App.tsx
|
|
314
|
+
templateFile: '../plop-templates/pcf/App.tsx',
|
|
315
315
|
path: path.resolve(process.cwd(), '{{name}}', 'App.tsx'),
|
|
316
316
|
skip: (answers) => {
|
|
317
317
|
if (!answers.react) {
|
package/package.json
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IInputs } from './generated/ManifestTypes';
|
|
3
|
-
import { AppContext } from './contexts/AppContext';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IInputs } from './generated/ManifestTypes';
|
|
3
|
+
import { AppContext } from './contexts/AppContext';
|
|
4
|
+
import { initializeIcons } from '@fluentui/react/lib/Icons';
|
|
5
|
+
|
|
6
|
+
initializeIcons();
|
|
7
|
+
|
|
8
|
+
export const App = (props: { context: ComponentFramework.Context<IInputs>; }) => {
|
|
9
|
+
const {
|
|
10
|
+
context
|
|
11
|
+
} = props;
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<AppContext.Provider value={{ context: context }}>
|
|
15
|
+
</AppContext.Provider>
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
App.displayName = 'App';
|