create-powerapps-project 2.2.0 → 2.2.3
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 +2 -0
- package/package.json +1 -1
- package/plop-templates/assembly/package.json.hbs +1 -1
- package/plop-templates/assembly/plopfile.js +2 -2
- package/plop-templates/pcf/plopfile.js +2 -2
- package/plop-templates/pcf/tsconfig.json +9 -9
- package/plop-templates/webresource/package.json.hbs +1 -0
- package/plop-templates/webresource/plopfile.js +2 -2
- package/plop-templates/webresource/webpack.config.js.hbs +28 -13
package/lib/plopfile.js
CHANGED
package/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export default async function (plop) {
|
|
2
2
|
await plop.load('powerapps-project-assembly');
|
|
3
|
-
}
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export default async function (plop) {
|
|
2
2
|
await plop.load('powerapps-project-pcf');
|
|
3
|
-
}
|
|
3
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
2
|
+
"extends": "./node_modules/pcf-scripts/tsconfig_base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"typeRoots": ["node_modules/@types"],
|
|
5
|
+
"esModuleInterop": true,
|
|
6
|
+
"target": "ES6",
|
|
7
|
+
"module": "es2015",
|
|
8
|
+
"moduleResolution": "node"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export default async function (plop) {
|
|
2
2
|
await plop.load('powerapps-project-webresource');
|
|
3
|
-
}
|
|
3
|
+
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import config from './dataverse.config.json' with { type: 'json' };
|
|
2
|
+
import path, { dirname } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import spawn from 'cross-spawn';
|
|
5
|
+
import WebpackEventPlugin from 'webpack-event-plugin';
|
|
6
|
+
import { CleanWebpackPlugin } from 'clean-webpack-plugin';
|
|
7
|
+
import { EsbuildPlugin } from 'esbuild-loader';
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
|
+
|
|
11
|
+
export default function (env, argv) {
|
|
8
12
|
const webpackConfig = {
|
|
9
13
|
entry: config.entries,
|
|
10
14
|
|
|
@@ -21,12 +25,15 @@ module.exports = (env, argv) => {
|
|
|
21
25
|
module: {
|
|
22
26
|
rules: [
|
|
23
27
|
{
|
|
24
|
-
test: /\.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
test: /\.ts(x?)$/,
|
|
29
|
+
exclude: /node_modules/,
|
|
30
|
+
use: ['esbuild-loader', 'ts-loader']
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
test: /\.js$/,
|
|
34
|
+
exclude: /node_modules/,
|
|
35
|
+
use: ['esbuild-loader']
|
|
36
|
+
},
|
|
30
37
|
]
|
|
31
38
|
},
|
|
32
39
|
|
|
@@ -49,9 +56,17 @@ module.exports = (env, argv) => {
|
|
|
49
56
|
]
|
|
50
57
|
};
|
|
51
58
|
|
|
59
|
+
config.optimization = {
|
|
60
|
+
minimizer: [
|
|
61
|
+
new EsbuildPlugin({
|
|
62
|
+
target: 'es2020'
|
|
63
|
+
})
|
|
64
|
+
]
|
|
65
|
+
};
|
|
66
|
+
|
|
52
67
|
if (argv.mode === 'development') {
|
|
53
68
|
config.devtool = 'eval-source-map';
|
|
54
69
|
}
|
|
55
70
|
|
|
56
71
|
return webpackConfig;
|
|
57
|
-
}
|
|
72
|
+
}
|