@microsoft/generator-sharepoint 1.22.0-beta.2 → 1.22.0-beta.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/common/BaseGenerator.js +3 -3
- package/lib/common/dependencies.json +61 -59
- package/lib/common/utilities.js +10 -10
- package/lib/generators/adaptiveCardExtension/index.js +2 -2
- package/lib/generators/app/index.js +2 -2
- package/lib/generators/applicationCustomizer/index.js +3 -3
- package/lib/generators/commandSet/index.js +3 -3
- package/lib/generators/component/BaseComponentGenerator.js +6 -6
- package/lib/generators/component/index.js +2 -2
- package/lib/generators/dataVisualizationAdaptiveCardExtension/index.js +3 -3
- package/lib/generators/extension/BaseExtensionGenerator.js +4 -4
- package/lib/generators/extension/index.js +2 -2
- package/lib/generators/fieldCustomizer/index.js +7 -7
- package/lib/generators/formCustomizer/index.js +6 -6
- package/lib/generators/genericAdaptiveCardExtension/index.js +3 -3
- package/lib/generators/library/index.js +3 -3
- package/lib/generators/searchAdaptiveCardExtension/index.js +3 -3
- package/lib/generators/searchQueryModifier/index.js +3 -3
- package/lib/generators/solution/heft.package.json +2 -1
- package/lib/generators/solution/index.js +7 -7
- package/lib/generators/webpart/index.js +7 -7
- package/package.json +9 -8
- package/lib/templates/solution/heft/config/heft.json +0 -41
|
@@ -8,8 +8,8 @@ Object.defineProperty(exports, "BaseGenerator", {
|
|
|
8
8
|
return BaseGenerator;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
11
12
|
const _colors = /*#__PURE__*/ _interop_require_default(require("colors"));
|
|
12
|
-
const _path = /*#__PURE__*/ _interop_require_wildcard(require("path"));
|
|
13
13
|
const _updatenotifier = /*#__PURE__*/ _interop_require_wildcard(require("update-notifier"));
|
|
14
14
|
const _yeomangenerator = /*#__PURE__*/ _interop_require_default(require("yeoman-generator"));
|
|
15
15
|
const _nodecorelibrary = require("@rushstack/node-core-library");
|
|
@@ -235,8 +235,8 @@ class BaseGenerator extends _yeomangenerator.default {
|
|
|
235
235
|
}
|
|
236
236
|
_untokenizedCopier(directory, destination) {
|
|
237
237
|
return (filename)=>{
|
|
238
|
-
const sourceFile =
|
|
239
|
-
const destinationFile =
|
|
238
|
+
const sourceFile = _nodepath.join(directory, filename);
|
|
239
|
+
const destinationFile = _nodepath.join(destination, _utilities.untokenize(filename, this.context));
|
|
240
240
|
this.fs.copyTpl(sourceFile, destinationFile, this.context);
|
|
241
241
|
};
|
|
242
242
|
}
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
"adaptiveCardExtension": {
|
|
3
3
|
"standard": {
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@microsoft/sp-core-library": "1.22.0-beta.
|
|
6
|
-
"@microsoft/sp-property-pane": "1.22.0-beta.
|
|
7
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.22.0-beta.
|
|
5
|
+
"@microsoft/sp-core-library": "1.22.0-beta.4",
|
|
6
|
+
"@microsoft/sp-property-pane": "1.22.0-beta.4",
|
|
7
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.22.0-beta.4"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@microsoft/sp-module-interfaces": "1.22.0-beta.
|
|
10
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"plusBeta": {
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@microsoft/sp-core-library": "1.22.0-beta.
|
|
16
|
-
"@microsoft/sp-property-pane": "1.22.0-beta.
|
|
17
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.22.0-beta.
|
|
15
|
+
"@microsoft/sp-core-library": "1.22.0-beta.4",
|
|
16
|
+
"@microsoft/sp-property-pane": "1.22.0-beta.4",
|
|
17
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.22.0-beta.4"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@microsoft/sp-module-interfaces": "1.22.0-beta.
|
|
20
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"applicationCustomizer": {
|
|
25
25
|
"standard": {
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@microsoft/sp-dialog": "1.22.0-beta.
|
|
28
|
-
"@microsoft/sp-application-base": "1.22.0-beta.
|
|
27
|
+
"@microsoft/sp-dialog": "1.22.0-beta.4",
|
|
28
|
+
"@microsoft/sp-application-base": "1.22.0-beta.4"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"plusBeta": null
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"applicationCustomizerPlusBeta": {
|
|
34
34
|
"standard": {
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@microsoft/sp-dialog": "1.22.0-beta.
|
|
37
|
-
"@microsoft/sp-application-base": "1.22.0-beta.
|
|
36
|
+
"@microsoft/sp-dialog": "1.22.0-beta.4",
|
|
37
|
+
"@microsoft/sp-application-base": "1.22.0-beta.4"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"plusBeta": null
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"commandSet": {
|
|
43
43
|
"standard": {
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@microsoft/sp-listview-extensibility": "1.22.0-beta.
|
|
46
|
-
"@microsoft/sp-dialog": "1.22.0-beta.
|
|
45
|
+
"@microsoft/sp-listview-extensibility": "1.22.0-beta.4",
|
|
46
|
+
"@microsoft/sp-dialog": "1.22.0-beta.4"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"plusBeta": null
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"commandSetPlusBeta": {
|
|
52
52
|
"standard": {
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@microsoft/sp-listview-extensibility": "1.22.0-beta.
|
|
55
|
-
"@microsoft/sp-dialog": "1.22.0-beta.
|
|
54
|
+
"@microsoft/sp-listview-extensibility": "1.22.0-beta.4",
|
|
55
|
+
"@microsoft/sp-dialog": "1.22.0-beta.4"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"plusBeta": null
|
|
@@ -60,27 +60,27 @@
|
|
|
60
60
|
"extension": {
|
|
61
61
|
"standard": {
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@microsoft/sp-core-library": "1.22.0-beta.
|
|
64
|
-
"@microsoft/decorators": "1.22.0-beta.
|
|
63
|
+
"@microsoft/sp-core-library": "1.22.0-beta.4",
|
|
64
|
+
"@microsoft/decorators": "1.22.0-beta.4"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@microsoft/sp-module-interfaces": "1.22.0-beta.
|
|
67
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"plusBeta": {
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@microsoft/sp-core-library": "1.22.0-beta.
|
|
73
|
-
"@microsoft/decorators": "1.22.0-beta.
|
|
72
|
+
"@microsoft/sp-core-library": "1.22.0-beta.4",
|
|
73
|
+
"@microsoft/decorators": "1.22.0-beta.4"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@microsoft/sp-module-interfaces": "1.22.0-beta.
|
|
76
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"fieldCustomizer": {
|
|
81
81
|
"standard": {
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@microsoft/sp-listview-extensibility": "1.22.0-beta.
|
|
83
|
+
"@microsoft/sp-listview-extensibility": "1.22.0-beta.4"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"plusBeta": null
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"fieldCustomizerPlusBeta": {
|
|
89
89
|
"standard": {
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@microsoft/sp-listview-extensibility": "1.22.0-beta.
|
|
91
|
+
"@microsoft/sp-listview-extensibility": "1.22.0-beta.4"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"plusBeta": null
|
|
@@ -97,13 +97,13 @@
|
|
|
97
97
|
"standard": {
|
|
98
98
|
"dependencies": {},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@microsoft/sp-module-interfaces": "1.22.0-beta.
|
|
100
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4"
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
"plusBeta": {
|
|
104
104
|
"dependencies": {},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@microsoft/sp-module-interfaces": "1.22.0-beta.
|
|
106
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"searchQueryModifier": {
|
|
126
126
|
"standard": {
|
|
127
127
|
"dependencies": {
|
|
128
|
-
"@microsoft/sp-search-extensibility": "1.22.0-beta.
|
|
128
|
+
"@microsoft/sp-search-extensibility": "1.22.0-beta.4"
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"plusBeta": null
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"searchQueryModifierPlusBeta": {
|
|
134
134
|
"standard": {
|
|
135
135
|
"dependencies": {
|
|
136
|
-
"@microsoft/sp-search-extensibility": "1.22.0-beta.
|
|
136
|
+
"@microsoft/sp-search-extensibility": "1.22.0-beta.4"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
"plusBeta": null
|
|
@@ -141,29 +141,29 @@
|
|
|
141
141
|
"webpart": {
|
|
142
142
|
"standard": {
|
|
143
143
|
"dependencies": {
|
|
144
|
-
"@microsoft/sp-core-library": "1.22.0-beta.
|
|
145
|
-
"@microsoft/sp-component-base": "1.22.0-beta.
|
|
146
|
-
"@microsoft/sp-property-pane": "1.22.0-beta.
|
|
147
|
-
"@microsoft/sp-webpart-base": "1.22.0-beta.
|
|
148
|
-
"@microsoft/sp-lodash-subset": "1.22.0-beta.
|
|
149
|
-
"@microsoft/sp-office-ui-fabric-core": "1.22.0-beta.
|
|
144
|
+
"@microsoft/sp-core-library": "1.22.0-beta.4",
|
|
145
|
+
"@microsoft/sp-component-base": "1.22.0-beta.4",
|
|
146
|
+
"@microsoft/sp-property-pane": "1.22.0-beta.4",
|
|
147
|
+
"@microsoft/sp-webpart-base": "1.22.0-beta.4",
|
|
148
|
+
"@microsoft/sp-lodash-subset": "1.22.0-beta.4",
|
|
149
|
+
"@microsoft/sp-office-ui-fabric-core": "1.22.0-beta.4"
|
|
150
150
|
},
|
|
151
151
|
"devDependencies": {
|
|
152
|
-
"@microsoft/sp-module-interfaces": "1.22.0-beta.
|
|
152
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4",
|
|
153
153
|
"@fluentui/react": "^8.106.4"
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
"plusBeta": {
|
|
157
157
|
"dependencies": {
|
|
158
|
-
"@microsoft/sp-core-library": "1.22.0-beta.
|
|
159
|
-
"@microsoft/sp-component-base": "1.22.0-beta.
|
|
160
|
-
"@microsoft/sp-property-pane": "1.22.0-beta.
|
|
161
|
-
"@microsoft/sp-webpart-base": "1.22.0-beta.
|
|
162
|
-
"@microsoft/sp-lodash-subset": "1.22.0-beta.
|
|
163
|
-
"@microsoft/sp-office-ui-fabric-core": "1.22.0-beta.
|
|
158
|
+
"@microsoft/sp-core-library": "1.22.0-beta.4",
|
|
159
|
+
"@microsoft/sp-component-base": "1.22.0-beta.4",
|
|
160
|
+
"@microsoft/sp-property-pane": "1.22.0-beta.4",
|
|
161
|
+
"@microsoft/sp-webpart-base": "1.22.0-beta.4",
|
|
162
|
+
"@microsoft/sp-lodash-subset": "1.22.0-beta.4",
|
|
163
|
+
"@microsoft/sp-office-ui-fabric-core": "1.22.0-beta.4"
|
|
164
164
|
},
|
|
165
165
|
"devDependencies": {
|
|
166
|
-
"@microsoft/sp-module-interfaces": "1.22.0-beta.
|
|
166
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4"
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
},
|
|
@@ -174,10 +174,12 @@
|
|
|
174
174
|
},
|
|
175
175
|
"devDependencies": {
|
|
176
176
|
"@rushstack/eslint-config": "4.3.0",
|
|
177
|
-
"@microsoft/eslint-plugin-spfx": "1.22.0-beta.
|
|
178
|
-
"@microsoft/eslint-config-spfx": "1.22.0-beta.
|
|
179
|
-
"@microsoft/spfx-web-build-rig": "1.22.0-beta.
|
|
180
|
-
"@
|
|
177
|
+
"@microsoft/eslint-plugin-spfx": "1.22.0-beta.4",
|
|
178
|
+
"@microsoft/eslint-config-spfx": "1.22.0-beta.4",
|
|
179
|
+
"@microsoft/spfx-web-build-rig": "1.22.0-beta.4",
|
|
180
|
+
"@microsoft/spfx-heft-plugins": "1.22.0-beta.4",
|
|
181
|
+
"@rushstack/heft": "1.1.1",
|
|
182
|
+
"@types/heft-jest": "1.0.2",
|
|
181
183
|
"@types/webpack-env": "~1.15.2",
|
|
182
184
|
"@typescript-eslint/parser": "8.31.1",
|
|
183
185
|
"eslint": "8.57.1",
|
|
@@ -194,9 +196,9 @@
|
|
|
194
196
|
"devDependencies": {
|
|
195
197
|
"@microsoft/rush-stack-compiler-5.3": "0.1.0",
|
|
196
198
|
"@rushstack/eslint-config": "4.3.0",
|
|
197
|
-
"@microsoft/eslint-plugin-spfx": "1.22.0-beta.
|
|
198
|
-
"@microsoft/eslint-config-spfx": "1.22.0-beta.
|
|
199
|
-
"@microsoft/sp-build-web": "1.22.0-beta.
|
|
199
|
+
"@microsoft/eslint-plugin-spfx": "1.22.0-beta.4",
|
|
200
|
+
"@microsoft/eslint-config-spfx": "1.22.0-beta.4",
|
|
201
|
+
"@microsoft/sp-build-web": "1.22.0-beta.4",
|
|
200
202
|
"@types/webpack-env": "~1.15.2",
|
|
201
203
|
"@typescript-eslint/parser": "8.31.1",
|
|
202
204
|
"ajv": "^6.12.5",
|
|
@@ -213,24 +215,24 @@
|
|
|
213
215
|
"formCustomizer": {
|
|
214
216
|
"standard": {
|
|
215
217
|
"dependencies": {
|
|
216
|
-
"@microsoft/sp-core-library": "1.22.0-beta.
|
|
217
|
-
"@microsoft/sp-listview-extensibility": "1.22.0-beta.
|
|
218
|
-
"@microsoft/sp-lodash-subset": "1.22.0-beta.
|
|
219
|
-
"@microsoft/sp-office-ui-fabric-core": "1.22.0-beta.
|
|
218
|
+
"@microsoft/sp-core-library": "1.22.0-beta.4",
|
|
219
|
+
"@microsoft/sp-listview-extensibility": "1.22.0-beta.4",
|
|
220
|
+
"@microsoft/sp-lodash-subset": "1.22.0-beta.4",
|
|
221
|
+
"@microsoft/sp-office-ui-fabric-core": "1.22.0-beta.4"
|
|
220
222
|
},
|
|
221
223
|
"devDependencies": {
|
|
222
|
-
"@microsoft/sp-module-interfaces": "1.22.0-beta.
|
|
224
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4"
|
|
223
225
|
}
|
|
224
226
|
},
|
|
225
227
|
"plusBeta": {
|
|
226
228
|
"dependencies": {
|
|
227
|
-
"@microsoft/sp-core-library": "1.22.0-beta.
|
|
228
|
-
"@microsoft/sp-listview-extensibility": "1.22.0-beta.
|
|
229
|
-
"@microsoft/sp-lodash-subset": "1.22.0-beta.
|
|
230
|
-
"@microsoft/sp-office-ui-fabric-core": "1.22.0-beta.
|
|
229
|
+
"@microsoft/sp-core-library": "1.22.0-beta.4",
|
|
230
|
+
"@microsoft/sp-listview-extensibility": "1.22.0-beta.4",
|
|
231
|
+
"@microsoft/sp-lodash-subset": "1.22.0-beta.4",
|
|
232
|
+
"@microsoft/sp-office-ui-fabric-core": "1.22.0-beta.4"
|
|
231
233
|
},
|
|
232
234
|
"devDependencies": {
|
|
233
|
-
"@microsoft/sp-module-interfaces": "1.22.0-beta.
|
|
235
|
+
"@microsoft/sp-module-interfaces": "1.22.0-beta.4"
|
|
234
236
|
}
|
|
235
237
|
}
|
|
236
238
|
}
|
package/lib/common/utilities.js
CHANGED
|
@@ -28,12 +28,12 @@ _export(exports, {
|
|
|
28
28
|
return untokenize;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
+
const _nodefs = /*#__PURE__*/ _interop_require_wildcard(require("node:fs"));
|
|
32
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
31
33
|
const _colors = /*#__PURE__*/ _interop_require_default(require("colors"));
|
|
32
|
-
const _fs = /*#__PURE__*/ _interop_require_wildcard(require("fs"));
|
|
33
34
|
const _lodash = /*#__PURE__*/ _interop_require_wildcard(require("lodash"));
|
|
34
|
-
const _nodecorelibrary = require("@rushstack/node-core-library");
|
|
35
|
-
const _path = /*#__PURE__*/ _interop_require_wildcard(require("path"));
|
|
36
35
|
const _uuid = /*#__PURE__*/ _interop_require_wildcard(require("uuid"));
|
|
36
|
+
const _nodecorelibrary = require("@rushstack/node-core-library");
|
|
37
37
|
function _interop_require_default(obj) {
|
|
38
38
|
return obj && obj.__esModule ? obj : {
|
|
39
39
|
default: obj
|
|
@@ -92,21 +92,21 @@ function untokenize(str, props) {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
// Convert file name prefix with '_' to '.'
|
|
95
|
-
const basename =
|
|
95
|
+
const basename = _nodepath.basename(str);
|
|
96
96
|
if (basename[0] === '_') {
|
|
97
97
|
const filename = '.' + basename.substr(1);
|
|
98
|
-
const dirname =
|
|
99
|
-
str =
|
|
98
|
+
const dirname = _nodepath.dirname(str);
|
|
99
|
+
str = _nodepath.join(dirname, filename);
|
|
100
100
|
}
|
|
101
101
|
return str;
|
|
102
102
|
}
|
|
103
103
|
function filesIn(...args) {
|
|
104
|
-
const inputPath =
|
|
104
|
+
const inputPath = _nodepath.join.apply(undefined, args);
|
|
105
105
|
const files = [];
|
|
106
106
|
function traversePath(innerPath) {
|
|
107
|
-
const subPaths =
|
|
108
|
-
const subFiles = subPaths.filter((pathname)=>
|
|
109
|
-
const subFolders = subPaths.filter((pathname)=>
|
|
107
|
+
const subPaths = _nodefs.readdirSync(innerPath).filter((filename)=>filename !== '.' && filename !== '..').map((filename)=>_nodepath.join(innerPath, filename));
|
|
108
|
+
const subFiles = subPaths.filter((pathname)=>_nodefs.statSync(pathname).isFile()).map((pathname)=>_nodepath.relative(inputPath, pathname));
|
|
109
|
+
const subFolders = subPaths.filter((pathname)=>_nodefs.statSync(pathname).isDirectory());
|
|
110
110
|
subFolders.forEach(traversePath);
|
|
111
111
|
files.push.apply(files, subFiles);
|
|
112
112
|
}
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _colors = /*#__PURE__*/ _interop_require_default(require("colors"));
|
|
24
24
|
const _BaseGenerator = require("../../common/BaseGenerator");
|
|
25
25
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
@@ -86,7 +86,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
86
86
|
return newObj;
|
|
87
87
|
}
|
|
88
88
|
function composeWith(base, options) {
|
|
89
|
-
_utilities.compose(
|
|
89
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
90
90
|
}
|
|
91
91
|
function defineOptions(generator) {
|
|
92
92
|
_genericAdaptiveCardExtension.defineOptions(generator);
|
|
@@ -8,8 +8,8 @@ Object.defineProperty(exports, "composeWith", {
|
|
|
8
8
|
return composeWith;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
11
12
|
const _colors = /*#__PURE__*/ _interop_require_default(require("colors"));
|
|
12
|
-
const _path = /*#__PURE__*/ _interop_require_wildcard(require("path"));
|
|
13
13
|
const _yosay = /*#__PURE__*/ _interop_require_default(require("yosay"));
|
|
14
14
|
const _nodecorelibrary = require("@rushstack/node-core-library");
|
|
15
15
|
const _spsay = /*#__PURE__*/ _interop_require_default(require("../../common/spsay"));
|
|
@@ -91,7 +91,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
91
91
|
}
|
|
92
92
|
const VERSION = require('../../../package.json').version;
|
|
93
93
|
function composeWith(base, options) {
|
|
94
|
-
_utilities.compose(
|
|
94
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
97
|
* This class is the entry point when running `yo @microsoft/sharepoint`
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
24
24
|
const _BaseExtensionGenerator = /*#__PURE__*/ _interop_require_wildcard(require("../extension/BaseExtensionGenerator"));
|
|
25
25
|
function _define_property(obj, key, value) {
|
|
@@ -77,7 +77,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
77
77
|
return newObj;
|
|
78
78
|
}
|
|
79
79
|
function composeWith(base, options) {
|
|
80
|
-
_utilities.compose(
|
|
80
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
81
81
|
}
|
|
82
82
|
function defineOptions(generator) {
|
|
83
83
|
_BaseExtensionGenerator.defineOptions(generator, 'Application Customizer');
|
|
@@ -110,7 +110,7 @@ class ApplicationCustomizerGenerator extends _BaseExtensionGenerator.BaseExtensi
|
|
|
110
110
|
}
|
|
111
111
|
writing() {
|
|
112
112
|
if (this._shouldExecute()) {
|
|
113
|
-
this.sourceRoot(
|
|
113
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/applicationCustomizer'));
|
|
114
114
|
super.writing();
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
24
24
|
const _BaseExtensionGenerator = /*#__PURE__*/ _interop_require_wildcard(require("../extension/BaseExtensionGenerator"));
|
|
25
25
|
function _define_property(obj, key, value) {
|
|
@@ -77,7 +77,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
77
77
|
return newObj;
|
|
78
78
|
}
|
|
79
79
|
function composeWith(base, options) {
|
|
80
|
-
_utilities.compose(
|
|
80
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
81
81
|
}
|
|
82
82
|
function defineOptions(generator) {
|
|
83
83
|
_BaseExtensionGenerator.defineOptions(generator, 'Command Set');
|
|
@@ -111,7 +111,7 @@ class CommandSetGenerator extends _BaseExtensionGenerator.BaseExtensionGenerator
|
|
|
111
111
|
}
|
|
112
112
|
writing() {
|
|
113
113
|
if (this._shouldExecute()) {
|
|
114
|
-
this.sourceRoot(
|
|
114
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/commandSet'));
|
|
115
115
|
super.writing();
|
|
116
116
|
}
|
|
117
117
|
}
|
|
@@ -19,10 +19,10 @@ _export(exports, {
|
|
|
19
19
|
return normalizeComponentNames;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _colors = /*#__PURE__*/ _interop_require_default(require("colors"));
|
|
24
24
|
const _lodash = /*#__PURE__*/ _interop_require_wildcard(require("lodash"));
|
|
25
|
-
const
|
|
25
|
+
const _nodecorelibrary = require("@rushstack/node-core-library");
|
|
26
26
|
const _BaseGenerator = require("../../common/BaseGenerator");
|
|
27
27
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
28
28
|
const _YeomanConfiguration = require("../../common/YeomanConfiguration");
|
|
@@ -209,11 +209,11 @@ class BaseComponentGenerator extends _BaseGenerator.BaseGenerator {
|
|
|
209
209
|
super.writing(false);
|
|
210
210
|
if (shouldWrite) {
|
|
211
211
|
const dest = this._getOutputFolder(this.context.componentNameCamelCase);
|
|
212
|
-
this.copyTemplate(
|
|
213
|
-
this.copyTemplate(
|
|
212
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), this.context.template), dest);
|
|
213
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'base'), dest);
|
|
214
214
|
}
|
|
215
215
|
// we need to write the eslint config anyway
|
|
216
|
-
this.copyTemplate(
|
|
216
|
+
this.copyTemplate(_nodepath.join(`${__dirname}/../../templates/component`, 'eslint'), this.destinationRoot());
|
|
217
217
|
}
|
|
218
218
|
install() {
|
|
219
219
|
if (!this.tryInstall()) {
|
|
@@ -227,7 +227,7 @@ class BaseComponentGenerator extends _BaseGenerator.BaseGenerator {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
_getOutputFolder(componentNameCamelCase) {
|
|
230
|
-
return
|
|
230
|
+
return _nodepath.join(this.destinationRoot(), 'src', this.folderName, componentNameCamelCase);
|
|
231
231
|
}
|
|
232
232
|
async _checkSolutionAsync() {
|
|
233
233
|
if (this.config.get('creatingSolution')) {
|
|
@@ -19,8 +19,8 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
22
23
|
const _colors = /*#__PURE__*/ _interop_require_default(require("colors"));
|
|
23
|
-
const _path = /*#__PURE__*/ _interop_require_wildcard(require("path"));
|
|
24
24
|
const _BaseGenerator = require("../../common/BaseGenerator");
|
|
25
25
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
26
26
|
const _webpart = /*#__PURE__*/ _interop_require_wildcard(require("../webpart"));
|
|
@@ -87,7 +87,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
87
87
|
return newObj;
|
|
88
88
|
}
|
|
89
89
|
function composeWith(base, options) {
|
|
90
|
-
_utilities.compose(
|
|
90
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
91
91
|
}
|
|
92
92
|
function defineOptions(generator) {
|
|
93
93
|
generator.option('component-type', {
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
24
24
|
const _BaseAdaptiveCardExtensionGenerator = require("../adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator");
|
|
25
25
|
function _getRequireWildcardCache(nodeInterop) {
|
|
@@ -64,7 +64,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
64
64
|
return newObj;
|
|
65
65
|
}
|
|
66
66
|
function composeWith(base, options) {
|
|
67
|
-
_utilities.compose(
|
|
67
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
68
68
|
}
|
|
69
69
|
function defineOptions(generator) {
|
|
70
70
|
/* no-op */ }
|
|
@@ -84,7 +84,7 @@ class DataVisualizationAdaptiveCardExtensionGenerator extends _BaseAdaptiveCardE
|
|
|
84
84
|
}
|
|
85
85
|
writing() {
|
|
86
86
|
if (this._shouldExecute()) {
|
|
87
|
-
this.sourceRoot(
|
|
87
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/dataVisualizationAdaptiveCardExtension'));
|
|
88
88
|
super.writing(true);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -16,7 +16,7 @@ _export(exports, {
|
|
|
16
16
|
return defineOptions;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const
|
|
19
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
20
20
|
const _safe = /*#__PURE__*/ _interop_require_default(require("colors/safe"));
|
|
21
21
|
const _nodecorelibrary = require("@rushstack/node-core-library");
|
|
22
22
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
@@ -93,8 +93,8 @@ class BaseExtensionGenerator extends _BaseComponentGenerator.BaseComponentGenera
|
|
|
93
93
|
super.writing(shouldCopy);
|
|
94
94
|
if (shouldCopy) {
|
|
95
95
|
if (!this.hasElementsXml()) {
|
|
96
|
-
const dest =
|
|
97
|
-
this.copyTemplate(
|
|
96
|
+
const dest = _nodepath.join(this.destinationRoot(), 'sharepoint');
|
|
97
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'sharepoint'), dest);
|
|
98
98
|
} else {
|
|
99
99
|
const docsUrl = this._getFeatureFrameworkDocsUrl();
|
|
100
100
|
if (docsUrl) {
|
|
@@ -112,7 +112,7 @@ class BaseExtensionGenerator extends _BaseComponentGenerator.BaseComponentGenera
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
hasElementsXml() {
|
|
115
|
-
const elementsXmlPath =
|
|
115
|
+
const elementsXmlPath = _nodepath.join(this.destinationRoot(), 'sharepoint', 'assets', 'elements.xml');
|
|
116
116
|
return _nodecorelibrary.FileSystem.exists(elementsXmlPath);
|
|
117
117
|
}
|
|
118
118
|
_getFeatureFrameworkDocsUrl() {
|
|
@@ -19,8 +19,8 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
22
23
|
const _colors = /*#__PURE__*/ _interop_require_default(require("colors"));
|
|
23
|
-
const _path = /*#__PURE__*/ _interop_require_wildcard(require("path"));
|
|
24
24
|
const _BaseGenerator = require("../../common/BaseGenerator");
|
|
25
25
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
26
26
|
const _commandSet = /*#__PURE__*/ _interop_require_wildcard(require("../commandSet"));
|
|
@@ -95,7 +95,7 @@ function defineOptions(generator) {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
function composeWith(base, options) {
|
|
98
|
-
_utilities.compose(
|
|
98
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
99
99
|
}
|
|
100
100
|
class ExtensionSelectorGenerator extends _BaseGenerator.BaseGenerator {
|
|
101
101
|
initializing() {
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
24
24
|
const _BaseExtensionGenerator = /*#__PURE__*/ _interop_require_wildcard(require("../extension/BaseExtensionGenerator"));
|
|
25
25
|
function _define_property(obj, key, value) {
|
|
@@ -77,7 +77,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
77
77
|
return newObj;
|
|
78
78
|
}
|
|
79
79
|
function composeWith(base, options) {
|
|
80
|
-
_utilities.compose(
|
|
80
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
81
81
|
}
|
|
82
82
|
function defineOptions(generator) {
|
|
83
83
|
_BaseExtensionGenerator.defineOptions(generator, 'Field Customizer');
|
|
@@ -111,18 +111,18 @@ class FieldCustomizerGenerator extends _BaseExtensionGenerator.BaseExtensionGene
|
|
|
111
111
|
}
|
|
112
112
|
writing() {
|
|
113
113
|
if (this._shouldExecute()) {
|
|
114
|
-
this.sourceRoot(
|
|
114
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/fieldCustomizer'));
|
|
115
115
|
super.writing(false);
|
|
116
116
|
const dest = this._getOutputFolder(this.context.componentNameCamelCase);
|
|
117
117
|
const template = this.context.template;
|
|
118
|
-
this.copyTemplate(
|
|
118
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), template), dest);
|
|
119
119
|
if (template !== 'minimal') {
|
|
120
|
-
this.copyTemplate(
|
|
120
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'loc'), _nodepath.join(dest, 'loc'));
|
|
121
121
|
}
|
|
122
122
|
if (!this.hasElementsXml()) {
|
|
123
|
-
this.copyTemplate(
|
|
123
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'sharepoint'), _nodepath.join(this.destinationRoot(), 'sharepoint'));
|
|
124
124
|
}
|
|
125
|
-
this.copyTemplate(
|
|
125
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'base'), dest);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
install() {
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
24
24
|
const _YeomanConfiguration = require("../../common/YeomanConfiguration");
|
|
25
25
|
const _BaseExtensionGenerator = /*#__PURE__*/ _interop_require_wildcard(require("../extension/BaseExtensionGenerator"));
|
|
@@ -78,7 +78,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
78
78
|
return newObj;
|
|
79
79
|
}
|
|
80
80
|
function composeWith(base, options) {
|
|
81
|
-
_utilities.compose(
|
|
81
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
82
82
|
}
|
|
83
83
|
function defineOptions(generator) {
|
|
84
84
|
_BaseExtensionGenerator.defineOptions(generator, 'Form Customizer');
|
|
@@ -139,15 +139,15 @@ class FormCustomizerGenerator extends _BaseExtensionGenerator.BaseExtensionGener
|
|
|
139
139
|
}
|
|
140
140
|
writing() {
|
|
141
141
|
if (this._shouldExecute()) {
|
|
142
|
-
this.sourceRoot(
|
|
142
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/formCustomizer'));
|
|
143
143
|
super.writing(false);
|
|
144
144
|
const dest = this._getOutputFolder(this.context.componentNameCamelCase);
|
|
145
145
|
const template = this.context.template;
|
|
146
|
-
this.copyTemplate(
|
|
146
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), template), dest);
|
|
147
147
|
if (template !== 'minimal') {
|
|
148
|
-
this.copyTemplate(
|
|
148
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'loc'), _nodepath.join(dest, 'loc'));
|
|
149
149
|
}
|
|
150
|
-
this.copyTemplate(
|
|
150
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'base'), dest);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
install() {
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
24
24
|
const _BaseAdaptiveCardExtensionGenerator = require("../adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator");
|
|
25
25
|
function _getRequireWildcardCache(nodeInterop) {
|
|
@@ -64,7 +64,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
64
64
|
return newObj;
|
|
65
65
|
}
|
|
66
66
|
function composeWith(base, options) {
|
|
67
|
-
_utilities.compose(
|
|
67
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
68
68
|
}
|
|
69
69
|
function defineOptions(generator) {
|
|
70
70
|
/* no-op */ }
|
|
@@ -84,7 +84,7 @@ class GenericAdaptiveCardExtensionGenerator extends _BaseAdaptiveCardExtensionGe
|
|
|
84
84
|
}
|
|
85
85
|
writing() {
|
|
86
86
|
if (this._shouldExecute()) {
|
|
87
|
-
this.sourceRoot(
|
|
87
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/genericAdaptiveCardExtension'));
|
|
88
88
|
super.writing(true);
|
|
89
89
|
// copy view template
|
|
90
90
|
this.copyTemplate(this._getTemplatePath(this.config.get('aceTemplateType')), this.destinationPath(`src/adaptiveCardExtensions/${this.context.componentNameCamelCase}/cardView`));
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
24
24
|
const _BaseComponentGenerator = /*#__PURE__*/ _interop_require_wildcard(require("../component/BaseComponentGenerator"));
|
|
25
25
|
function _define_property(obj, key, value) {
|
|
@@ -77,7 +77,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
77
77
|
return newObj;
|
|
78
78
|
}
|
|
79
79
|
function composeWith(base, options) {
|
|
80
|
-
_utilities.compose(
|
|
80
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
81
81
|
}
|
|
82
82
|
function defineOptions(generator) {
|
|
83
83
|
_BaseComponentGenerator.defineOptions(generator, 'Library');
|
|
@@ -108,7 +108,7 @@ class LibraryGenerator extends _BaseComponentGenerator.BaseComponentGenerator {
|
|
|
108
108
|
}
|
|
109
109
|
writing() {
|
|
110
110
|
if (this._shouldExecute()) {
|
|
111
|
-
this.sourceRoot(
|
|
111
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/library'));
|
|
112
112
|
super.writing(true);
|
|
113
113
|
this.copyTemplate(this.templatePath('./index/'), this.destinationPath('./src'));
|
|
114
114
|
}
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
24
24
|
const _BaseAdaptiveCardExtensionGenerator = require("../adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator");
|
|
25
25
|
function _getRequireWildcardCache(nodeInterop) {
|
|
@@ -64,7 +64,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
64
64
|
return newObj;
|
|
65
65
|
}
|
|
66
66
|
function composeWith(base, options) {
|
|
67
|
-
_utilities.compose(
|
|
67
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
68
68
|
}
|
|
69
69
|
function defineOptions(generator) {
|
|
70
70
|
/* no-op */ }
|
|
@@ -84,7 +84,7 @@ class SearchAdaptiveCardExtensionGenerator extends _BaseAdaptiveCardExtensionGen
|
|
|
84
84
|
}
|
|
85
85
|
writing() {
|
|
86
86
|
if (this._shouldExecute()) {
|
|
87
|
-
this.sourceRoot(
|
|
87
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/searchAdaptiveCardExtension'));
|
|
88
88
|
super.writing(true);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
24
24
|
const _BaseExtensionGenerator = /*#__PURE__*/ _interop_require_wildcard(require("../extension/BaseExtensionGenerator"));
|
|
25
25
|
function _define_property(obj, key, value) {
|
|
@@ -77,7 +77,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
77
77
|
return newObj;
|
|
78
78
|
}
|
|
79
79
|
function composeWith(base, options) {
|
|
80
|
-
_utilities.compose(
|
|
80
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
81
81
|
}
|
|
82
82
|
function defineOptions(generator) {
|
|
83
83
|
_BaseExtensionGenerator.defineOptions(generator, 'Search Query Modifier');
|
|
@@ -110,7 +110,7 @@ class SearchQueryModifierGenerator extends _BaseExtensionGenerator.BaseExtension
|
|
|
110
110
|
}
|
|
111
111
|
writing() {
|
|
112
112
|
if (this._shouldExecute()) {
|
|
113
|
-
this.sourceRoot(
|
|
113
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/searchQueryModifier'));
|
|
114
114
|
super.writing();
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -16,8 +16,8 @@ _export(exports, {
|
|
|
16
16
|
return defineOptions;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
19
20
|
const _lodash = /*#__PURE__*/ _interop_require_wildcard(require("lodash"));
|
|
20
|
-
const _path = /*#__PURE__*/ _interop_require_wildcard(require("path"));
|
|
21
21
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
22
22
|
const _BaseGenerator = require("../../common/BaseGenerator");
|
|
23
23
|
const _YeomanConfiguration = require("../../common/YeomanConfiguration");
|
|
@@ -76,7 +76,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
76
76
|
return newObj;
|
|
77
77
|
}
|
|
78
78
|
function composeWith(base, options) {
|
|
79
|
-
_utilities.compose(
|
|
79
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
80
80
|
}
|
|
81
81
|
function defineOptions(generator) {
|
|
82
82
|
generator.option('solution-name', {
|
|
@@ -229,15 +229,15 @@ class SolutionGenerator extends _BaseGenerator.BaseGenerator {
|
|
|
229
229
|
if (this._shouldExecute()) {
|
|
230
230
|
// eslint-disable-next-line no-console
|
|
231
231
|
console.log();
|
|
232
|
-
this.sourceRoot(
|
|
232
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/solution'));
|
|
233
233
|
super.writing(false);
|
|
234
234
|
const dest = this.destinationRoot();
|
|
235
|
-
this.copyTemplate(
|
|
235
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'base'), dest);
|
|
236
236
|
if (!this.context.useGulp) {
|
|
237
|
-
this.copyTemplate(
|
|
237
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'heft'), dest);
|
|
238
238
|
} else {
|
|
239
|
-
this.copyTemplate(
|
|
240
|
-
this.copyTemplate(
|
|
239
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'gulp'), dest);
|
|
240
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), _YeomanConfiguration.YeomanConfiguration.environment), dest);
|
|
241
241
|
}
|
|
242
242
|
this.packageJsonManager.save();
|
|
243
243
|
this.configJson.save();
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
return defineOptions;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
|
|
23
23
|
const _utilities = /*#__PURE__*/ _interop_require_wildcard(require("../../common/utilities"));
|
|
24
24
|
const _YeomanConfiguration = require("../../common/YeomanConfiguration");
|
|
25
25
|
const _BaseComponentGenerator = /*#__PURE__*/ _interop_require_wildcard(require("../component/BaseComponentGenerator"));
|
|
@@ -78,7 +78,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
78
78
|
return newObj;
|
|
79
79
|
}
|
|
80
80
|
function composeWith(base, options) {
|
|
81
|
-
_utilities.compose(
|
|
81
|
+
_utilities.compose(_nodepath.basename(__dirname), base, options);
|
|
82
82
|
}
|
|
83
83
|
function defineOptions(generator) {
|
|
84
84
|
_BaseComponentGenerator.defineOptions(generator, 'Web part');
|
|
@@ -103,16 +103,16 @@ class WebpartGenerator extends _BaseComponentGenerator.BaseComponentGenerator {
|
|
|
103
103
|
}
|
|
104
104
|
writing() {
|
|
105
105
|
if (this._shouldExecute()) {
|
|
106
|
-
this.sourceRoot(
|
|
106
|
+
this.sourceRoot(_nodepath.join(__dirname, '../../templates/webpart'));
|
|
107
107
|
super.writing(false);
|
|
108
108
|
const dest = this._getOutputFolder(this.context.componentNameCamelCase);
|
|
109
109
|
const template = this.context.template;
|
|
110
|
-
this.copyTemplate(
|
|
110
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), template), dest);
|
|
111
111
|
if (template !== 'minimal') {
|
|
112
|
-
this.copyTemplate(
|
|
113
|
-
this.copyTemplate(
|
|
112
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'loc'), _nodepath.join(dest, 'loc'));
|
|
113
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'assets'), _nodepath.join(dest, 'assets'));
|
|
114
114
|
}
|
|
115
|
-
this.copyTemplate(
|
|
115
|
+
this.copyTemplate(_nodepath.join(this.sourceRoot(), 'base'), dest);
|
|
116
116
|
this.fs.copy(this.templatePath('./images/outline.png'), this.destinationPath(`teams/${this.context.componentId}_outline.png`));
|
|
117
117
|
this.fs.copy(this.templatePath('./images/color.png'), this.destinationPath(`teams/${this.context.componentId}_color.png`));
|
|
118
118
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/generator-sharepoint",
|
|
3
|
-
"version": "1.22.0-beta.
|
|
3
|
+
"version": "1.22.0-beta.4",
|
|
4
4
|
"description": "Yeoman generator for the SharePoint Framework",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.14.0 < 23.0.0"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@rushstack/node-core-library": "5.
|
|
38
|
-
"@rushstack/terminal": "0.
|
|
37
|
+
"@rushstack/node-core-library": "5.17.0",
|
|
38
|
+
"@rushstack/terminal": "0.19.1",
|
|
39
39
|
"colors": "~1.2.1",
|
|
40
40
|
"lodash": "4.17.21",
|
|
41
41
|
"mem-fs": "^4.1.2",
|
|
@@ -43,12 +43,13 @@
|
|
|
43
43
|
"uuid": "^9.0.0",
|
|
44
44
|
"yeoman-generator": "5.10.0",
|
|
45
45
|
"yosay": "2.0.2",
|
|
46
|
-
"@microsoft/spfx-heft-plugins": "1.22.0-beta.
|
|
46
|
+
"@microsoft/spfx-heft-plugins": "1.22.0-beta.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@rushstack/heft": "
|
|
49
|
+
"@rushstack/heft": "1.1.1",
|
|
50
50
|
"@rushstack/heft-isolated-typescript-transpile-plugin": "0.2.2",
|
|
51
|
-
"@rushstack/heft-typescript-plugin": "
|
|
51
|
+
"@rushstack/heft-typescript-plugin": "1.1.1",
|
|
52
|
+
"@types/heft-jest": "1.0.2",
|
|
52
53
|
"@types/inquirer": "7.3.1",
|
|
53
54
|
"@types/lodash": "4.14.117",
|
|
54
55
|
"@types/update-notifier": "5.1.0",
|
|
@@ -57,9 +58,9 @@
|
|
|
57
58
|
"@types/yosay": "2.0.0",
|
|
58
59
|
"eslint": "8.57.1",
|
|
59
60
|
"mem-fs-editor": "^11.1.4",
|
|
60
|
-
"@msinternal/
|
|
61
|
+
"@msinternal/sp-teams-lib": "0.24.168",
|
|
61
62
|
"@msinternal/internal-node-rig": "0.1.0",
|
|
62
|
-
"@msinternal/
|
|
63
|
+
"@msinternal/ms-graph-v3-bundle": "3.0.2"
|
|
63
64
|
},
|
|
64
65
|
"scripts": {
|
|
65
66
|
"build": "heft test --clean",
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json",
|
|
3
|
-
|
|
4
|
-
"extends": "@microsoft/spfx-web-build-rig/profiles/default/config/heft.json",
|
|
5
|
-
|
|
6
|
-
"phasesByName": {
|
|
7
|
-
"build": {
|
|
8
|
-
"tasksByName": {
|
|
9
|
-
// copies the localization js files to the lib folder
|
|
10
|
-
"copy-strings": {
|
|
11
|
-
"taskPlugin": {
|
|
12
|
-
"pluginPackage": "@rushstack/heft",
|
|
13
|
-
"pluginName": "copy-files-plugin",
|
|
14
|
-
"options": {
|
|
15
|
-
"copyOperations": [
|
|
16
|
-
{
|
|
17
|
-
"sourcePath": "./src",
|
|
18
|
-
"destinationFolders": ["./lib"],
|
|
19
|
-
"fileExtensions": [".js"]
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"eject-webpack": {
|
|
28
|
-
"tasksByName": {
|
|
29
|
-
"eject-webpack": {
|
|
30
|
-
"taskPlugin": {
|
|
31
|
-
"pluginPackage": "@rushstack/heft",
|
|
32
|
-
"pluginName": "run-script-plugin",
|
|
33
|
-
"options": {
|
|
34
|
-
"scriptPath": "node_modules/@microsoft/spfx-heft-plugins/lib-commonjs/plugins/ejectWebpackPlugin/EjectWebpackPlugin.js"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|