create-powerapps-project 2.3.2 → 2.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/nuget.js
CHANGED
|
@@ -26,8 +26,5 @@ export const getNugetPackageVersions = (name) => {
|
|
|
26
26
|
};
|
|
27
27
|
export const nugetRestore = async () => {
|
|
28
28
|
// Install nuget packages
|
|
29
|
-
if (process.env.JEST_WORKER_ID !== undefined) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
29
|
spawnSync('dotnet', ['restore'], { cwd: process.cwd(), stdio: 'inherit' });
|
|
33
30
|
};
|
package/lib/packageManager.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
2
|
export const install = async (packageManager, packages) => {
|
|
3
|
-
if (process.env.JEST_WORKER_ID != undefined) {
|
|
4
|
-
return;
|
|
5
|
-
}
|
|
6
3
|
if (packages) {
|
|
7
4
|
if (packages.devDependencies) {
|
|
8
5
|
spawnSync(packageManager, ['add', ...packages.devDependencies, '-D'], { stdio: 'inherit', shell: true });
|
package/lib/plopActions.js
CHANGED
|
@@ -36,23 +36,18 @@ export default (plop) => {
|
|
|
36
36
|
plop.setActionType('signAssembly', async (answers) => {
|
|
37
37
|
const keyPath = path.resolve(process.cwd(), `${answers.name}.snk`);
|
|
38
38
|
return new Promise((resolve, reject) => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (didSucceed(code)) {
|
|
46
|
-
resolve('signed assembly');
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
reject('failed to sign assembly');
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
sign.on('error', () => {
|
|
39
|
+
const sign = spawn(path.resolve(__dirname, '..', 'bin', 'sn.exe'), ['-q', '-k', keyPath], { stdio: 'inherit' });
|
|
40
|
+
sign.on('close', (code) => {
|
|
41
|
+
if (didSucceed(code)) {
|
|
42
|
+
resolve('signed assembly');
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
53
45
|
reject('failed to sign assembly');
|
|
54
|
-
}
|
|
55
|
-
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
sign.on('error', () => {
|
|
49
|
+
reject('failed to sign assembly');
|
|
50
|
+
});
|
|
56
51
|
});
|
|
57
52
|
});
|
|
58
53
|
plop.setActionType('runPcf', async (answers) => {
|
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": "2.3.
|
|
4
|
+
"version": "2.3.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
7
7
|
"engines": {
|
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsc -p .",
|
|
24
|
-
"lint": "eslint"
|
|
25
|
-
"clean": "rimraf lib"
|
|
24
|
+
"lint": "eslint"
|
|
26
25
|
},
|
|
27
26
|
"type": "module",
|
|
28
27
|
"dependencies": {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"gen": "plop",
|
|
8
|
-
"deploy": "dotnet build && dataverse-utils deploy assembly",
|
|
8
|
+
"deploy": "dotnet clean && dotnet build && dataverse-utils deploy assembly",
|
|
9
9
|
"modelbuilder": "pac auth select -n {{org}} && pac modelbuilder build -stf builderSettings.json -o Model -env {{server}}",
|
|
10
10
|
"authenticate": "pac auth create -n {{org}} -dc",
|
|
11
11
|
"prt": "pac tool prt"
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { IInputs } from './generated/ManifestTypes';
|
|
3
3
|
import { AppContext } from './contexts/AppContext';
|
|
4
|
+
import { FluentProvider, Theme } from "@fluentui/react-components";
|
|
4
5
|
|
|
5
|
-
export
|
|
6
|
+
export function App({ context }: { context: ComponentFramework.Context<IInputs>; }) {
|
|
6
7
|
return (
|
|
7
8
|
<AppContext.Provider value=\{{ context }}>
|
|
9
|
+
<FluentProvider theme={context.fluentDesignLanguage?.tokenTheme as Theme}>
|
|
10
|
+
</FluentProvider>
|
|
8
11
|
</AppContext.Provider>
|
|
9
12
|
);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
App.displayName = 'App';
|
|
13
|
+
}
|