@microsoft/generator-sharepoint 1.13.0 → 1.13.1
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/dependency/adaptiveCardExtension/firstParty.json +6 -6
- package/lib/common/dependency/adaptiveCardExtension/firstPartyPlusBeta.json +6 -6
- package/lib/common/dependency/applicationCustomizer.json +2 -2
- package/lib/common/dependency/applicationCustomizerPlusBeta.json +2 -2
- package/lib/common/dependency/commandSet.json +2 -2
- package/lib/common/dependency/commandSetPlusBeta.json +2 -2
- package/lib/common/dependency/extension/firstParty.json +5 -5
- package/lib/common/dependency/extension/firstPartyPlusBeta.json +5 -5
- package/lib/common/dependency/fieldCustomizer.json +1 -1
- package/lib/common/dependency/fieldCustomizerPlusBeta.json +1 -1
- package/lib/common/dependency/library/firstParty.json +3 -3
- package/lib/common/dependency/library/firstPartyPlusBeta.json +3 -3
- package/lib/common/dependency/searchQueryModifier.json +1 -1
- package/lib/common/dependency/searchQueryModifierPlusBeta.json +1 -1
- package/lib/common/dependency/webpart/firstParty.json +8 -8
- package/lib/common/dependency/webpart/firstPartyPlusBeta.json +8 -8
- package/lib/generators/app/index.js +8 -0
- package/lib/generators/solution/index.js +0 -32
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@microsoft/sp-core-library": "1.13.
|
|
4
|
-
"@microsoft/sp-property-pane": "1.13.
|
|
5
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.13.
|
|
3
|
+
"@microsoft/sp-core-library": "1.13.1",
|
|
4
|
+
"@microsoft/sp-property-pane": "1.13.1",
|
|
5
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.13.1"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@microsoft/sp-build-web": "1.13.
|
|
9
|
-
"@microsoft/sp-tslint-rules": "1.13.
|
|
10
|
-
"@microsoft/sp-module-interfaces": "1.13.
|
|
8
|
+
"@microsoft/sp-build-web": "1.13.1",
|
|
9
|
+
"@microsoft/sp-tslint-rules": "1.13.1",
|
|
10
|
+
"@microsoft/sp-module-interfaces": "1.13.1",
|
|
11
11
|
"@microsoft/rush-stack-compiler-3.9": "0.4.47"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@microsoft/sp-core-library": "1.13.
|
|
4
|
-
"@microsoft/sp-property-pane": "1.13.
|
|
5
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.13.
|
|
3
|
+
"@microsoft/sp-core-library": "1.13.1",
|
|
4
|
+
"@microsoft/sp-property-pane": "1.13.1",
|
|
5
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.13.1"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@microsoft/sp-build-web": "1.13.
|
|
9
|
-
"@microsoft/sp-tslint-rules": "1.13.
|
|
10
|
-
"@microsoft/sp-module-interfaces": "1.13.
|
|
8
|
+
"@microsoft/sp-build-web": "1.13.1",
|
|
9
|
+
"@microsoft/sp-tslint-rules": "1.13.1",
|
|
10
|
+
"@microsoft/sp-module-interfaces": "1.13.1",
|
|
11
11
|
"@microsoft/rush-stack-compiler-3.9": "0.4.47"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@microsoft/sp-core-library": "1.13.
|
|
4
|
-
"@microsoft/decorators": "1.13.
|
|
3
|
+
"@microsoft/sp-core-library": "1.13.1",
|
|
4
|
+
"@microsoft/decorators": "1.13.1"
|
|
5
5
|
},
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@microsoft/sp-build-web": "1.13.
|
|
8
|
-
"@microsoft/sp-tslint-rules": "1.13.
|
|
9
|
-
"@microsoft/sp-module-interfaces": "1.13.
|
|
7
|
+
"@microsoft/sp-build-web": "1.13.1",
|
|
8
|
+
"@microsoft/sp-tslint-rules": "1.13.1",
|
|
9
|
+
"@microsoft/sp-module-interfaces": "1.13.1",
|
|
10
10
|
"@microsoft/rush-stack-compiler-3.9": "0.4.47"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@microsoft/sp-core-library": "1.13.
|
|
4
|
-
"@microsoft/decorators": "1.13.
|
|
3
|
+
"@microsoft/sp-core-library": "1.13.1",
|
|
4
|
+
"@microsoft/decorators": "1.13.1"
|
|
5
5
|
},
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@microsoft/sp-build-web": "1.13.
|
|
8
|
-
"@microsoft/sp-tslint-rules": "1.13.
|
|
9
|
-
"@microsoft/sp-module-interfaces": "1.13.
|
|
7
|
+
"@microsoft/sp-build-web": "1.13.1",
|
|
8
|
+
"@microsoft/sp-tslint-rules": "1.13.1",
|
|
9
|
+
"@microsoft/sp-module-interfaces": "1.13.1",
|
|
10
10
|
"@microsoft/rush-stack-compiler-3.9": "0.4.47"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {},
|
|
3
3
|
"devDependencies": {
|
|
4
|
-
"@microsoft/sp-build-web": "1.13.
|
|
5
|
-
"@microsoft/sp-tslint-rules": "1.13.
|
|
6
|
-
"@microsoft/sp-module-interfaces": "1.13.
|
|
4
|
+
"@microsoft/sp-build-web": "1.13.1",
|
|
5
|
+
"@microsoft/sp-tslint-rules": "1.13.1",
|
|
6
|
+
"@microsoft/sp-module-interfaces": "1.13.1",
|
|
7
7
|
"@microsoft/rush-stack-compiler-3.9": "0.4.47"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {},
|
|
3
3
|
"devDependencies": {
|
|
4
|
-
"@microsoft/sp-build-web": "1.13.
|
|
5
|
-
"@microsoft/sp-tslint-rules": "1.13.
|
|
6
|
-
"@microsoft/sp-module-interfaces": "1.13.
|
|
4
|
+
"@microsoft/sp-build-web": "1.13.1",
|
|
5
|
+
"@microsoft/sp-tslint-rules": "1.13.1",
|
|
6
|
+
"@microsoft/sp-module-interfaces": "1.13.1",
|
|
7
7
|
"@microsoft/rush-stack-compiler-3.9": "0.4.47"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@microsoft/sp-core-library": "1.13.
|
|
4
|
-
"@microsoft/sp-property-pane": "1.13.
|
|
5
|
-
"@microsoft/sp-webpart-base": "1.13.
|
|
6
|
-
"@microsoft/sp-lodash-subset": "1.13.
|
|
7
|
-
"@microsoft/sp-office-ui-fabric-core": "1.13.
|
|
3
|
+
"@microsoft/sp-core-library": "1.13.1",
|
|
4
|
+
"@microsoft/sp-property-pane": "1.13.1",
|
|
5
|
+
"@microsoft/sp-webpart-base": "1.13.1",
|
|
6
|
+
"@microsoft/sp-lodash-subset": "1.13.1",
|
|
7
|
+
"@microsoft/sp-office-ui-fabric-core": "1.13.1"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@microsoft/sp-build-web": "1.13.
|
|
11
|
-
"@microsoft/sp-tslint-rules": "1.13.
|
|
12
|
-
"@microsoft/sp-module-interfaces": "1.13.
|
|
10
|
+
"@microsoft/sp-build-web": "1.13.1",
|
|
11
|
+
"@microsoft/sp-tslint-rules": "1.13.1",
|
|
12
|
+
"@microsoft/sp-module-interfaces": "1.13.1",
|
|
13
13
|
"@microsoft/rush-stack-compiler-3.9": "0.4.47"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@microsoft/sp-core-library": "1.13.
|
|
4
|
-
"@microsoft/sp-property-pane": "1.13.
|
|
5
|
-
"@microsoft/sp-webpart-base": "1.13.
|
|
6
|
-
"@microsoft/sp-lodash-subset": "1.13.
|
|
7
|
-
"@microsoft/sp-office-ui-fabric-core": "1.13.
|
|
3
|
+
"@microsoft/sp-core-library": "1.13.1",
|
|
4
|
+
"@microsoft/sp-property-pane": "1.13.1",
|
|
5
|
+
"@microsoft/sp-webpart-base": "1.13.1",
|
|
6
|
+
"@microsoft/sp-lodash-subset": "1.13.1",
|
|
7
|
+
"@microsoft/sp-office-ui-fabric-core": "1.13.1"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@microsoft/sp-build-web": "1.13.
|
|
11
|
-
"@microsoft/sp-tslint-rules": "1.13.
|
|
12
|
-
"@microsoft/sp-module-interfaces": "1.13.
|
|
10
|
+
"@microsoft/sp-build-web": "1.13.1",
|
|
11
|
+
"@microsoft/sp-tslint-rules": "1.13.1",
|
|
12
|
+
"@microsoft/sp-module-interfaces": "1.13.1",
|
|
13
13
|
"@microsoft/rush-stack-compiler-3.9": "0.4.47"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -61,6 +61,14 @@ class AppGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
61
61
|
this.log(yosay('Welcome to the ' + colors_1.default.blue(`SharePoint Client-side Solution Generator@${VERSION}`)));
|
|
62
62
|
this._explainArguments();
|
|
63
63
|
this.context.creatingSolution = !YeomanConfiguration_1.YeomanConfiguration.libraryName;
|
|
64
|
+
const shouldUseSubDir = this.options.solutionName !== undefined;
|
|
65
|
+
if (shouldUseSubDir) {
|
|
66
|
+
// changing destinationRoot to the subfolder
|
|
67
|
+
this.destinationRoot(this.destinationPath(this.options.solutionName));
|
|
68
|
+
// we need to manually update cwd to point to the subfolder as this.destinationRoot() will not do it
|
|
69
|
+
this.env.cwd = this.destinationRoot();
|
|
70
|
+
this.config.set('whichFolder', 'subdir');
|
|
71
|
+
}
|
|
64
72
|
if (this.options.solutionName !== undefined) {
|
|
65
73
|
this.config.set('solutionName', this.options.solutionName);
|
|
66
74
|
}
|
|
@@ -89,23 +89,6 @@ class SolutionGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
89
89
|
message: 'Only SharePoint Online (latest) is supported. For earlier versions of SharePoint (2016 and 2019) please use the 1.4.1 version of the generator.',
|
|
90
90
|
default: 'spo',
|
|
91
91
|
choices: [{ name: 'SharePoint Online only (latest)', value: 'spo' }]
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
type: 'list',
|
|
95
|
-
name: 'whichFolder',
|
|
96
|
-
default: 'current',
|
|
97
|
-
when: () => !this.config.get('solutionName'),
|
|
98
|
-
message: 'Where do you want to place the files?',
|
|
99
|
-
choices: [
|
|
100
|
-
{
|
|
101
|
-
name: 'Use the current folder',
|
|
102
|
-
value: 'current'
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: 'Create a subfolder with solution name',
|
|
106
|
-
value: 'subdir'
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
92
|
}
|
|
110
93
|
])
|
|
111
94
|
.then((answers) => {
|
|
@@ -143,22 +126,7 @@ class SolutionGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
143
126
|
}
|
|
144
127
|
}
|
|
145
128
|
const isPlusBeta = this.config.get('plusBeta');
|
|
146
|
-
// Use a sub-dir if they pass solutionName in via option
|
|
147
129
|
this.context.solutionName = this.config.get('solutionName') || answers.solutionName;
|
|
148
|
-
const shouldUseSubDir = answers.whichFolder === 'subdir' || !!this.config.get('solutionName');
|
|
149
|
-
if (shouldUseSubDir) {
|
|
150
|
-
this.config.set('whichFolder', 'subdir');
|
|
151
|
-
// All the sub generators currently point to the config in the root folder
|
|
152
|
-
// so we need to set the values to point at the new .yo-rc file.
|
|
153
|
-
this.destinationRoot(this.destinationPath(this.context.solutionName));
|
|
154
|
-
}
|
|
155
|
-
// Yeoman uses the destinationRoot at the time of instantiation when determining
|
|
156
|
-
// where to write the .yo-rc file, however we want to change the destinationRoot
|
|
157
|
-
// after. Once we change the destinationRoot, the base class instantiates a new
|
|
158
|
-
// storage object. We have a helper class using the storage object, so we need
|
|
159
|
-
// to reset it to use the new object.
|
|
160
|
-
// tslint:disable-next-line:no-string-literal
|
|
161
|
-
YeomanConfiguration_1.YeomanConfiguration.setStore(this['config']);
|
|
162
130
|
this.context.libraryName = lodash.kebabCase(this.context.solutionName);
|
|
163
131
|
this.context.libraryId = Utils.generateGuid();
|
|
164
132
|
// store some variables
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/generator-sharepoint",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "Yeoman generator for the SharePoint Framework",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"engines": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"homepage": "http://aka.ms/spfx",
|
|
14
14
|
"main": "lib/generators/app/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@microsoft/spfx-heft-plugins": "1.13.
|
|
16
|
+
"@microsoft/spfx-heft-plugins": "1.13.1",
|
|
17
17
|
"@rushstack/node-core-library": "3.40.0",
|
|
18
18
|
"colors": "~1.2.1",
|
|
19
19
|
"lodash": "4.17.21",
|