@contentful/app-scripts 1.2.7 → 1.4.2
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.
|
@@ -26,6 +26,7 @@ NOTE: This will create an app definition in your Contentful organization.
|
|
|
26
26
|
{ name: 'Entry editor (entry-editor)', value: 'entry-editor' },
|
|
27
27
|
{ name: 'Entry sidebar (entry-sidebar) ', value: 'entry-sidebar' },
|
|
28
28
|
{ name: 'Page (page) ', value: 'page' },
|
|
29
|
+
{ name: 'Home (home) ', value: 'home' },
|
|
29
30
|
],
|
|
30
31
|
},
|
|
31
32
|
{
|
|
@@ -7,7 +7,12 @@ const { createAppUpload } = require('./create-app-upload');
|
|
|
7
7
|
|
|
8
8
|
async function createAppBundleFromUpload(settings, appUploadId) {
|
|
9
9
|
const clientSpinner = ora('Verifying your upload...').start();
|
|
10
|
-
const client = createClient({
|
|
10
|
+
const client = createClient({
|
|
11
|
+
accessToken: settings.accessToken,
|
|
12
|
+
application: settings.userAgentApplication
|
|
13
|
+
? settings.userAgentApplication
|
|
14
|
+
: 'contentful.app-scripts',
|
|
15
|
+
});
|
|
11
16
|
const organization = await client.getOrganization(settings.organization.value);
|
|
12
17
|
const appDefinition = await organization.getAppDefinition(settings.definition.value);
|
|
13
18
|
clientSpinner.stop();
|
|
@@ -31,18 +36,16 @@ async function createAppBundleFromSettings(settings) {
|
|
|
31
36
|
try {
|
|
32
37
|
appUpload = await createAppUpload(settings);
|
|
33
38
|
console.log(`
|
|
34
|
-
${chalk.yellow(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
appUpload.sys.id
|
|
38
|
-
)}) has been created.`);
|
|
39
|
+
${chalk.yellow('Done!')} Your files were successfully uploaded and a new AppUpload (${chalk.dim(
|
|
40
|
+
appUpload.sys.id
|
|
41
|
+
)}) has been created.`);
|
|
39
42
|
} catch (err) {
|
|
40
43
|
showCreationError('app upload', err.message);
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
if (!appUpload) return;
|
|
44
47
|
|
|
45
|
-
console.log(
|
|
48
|
+
console.log('');
|
|
46
49
|
console.log(` ----------------------------`);
|
|
47
50
|
const appBundle = await createAppBundleFromUpload(settings, appUpload.sys.id);
|
|
48
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/app-scripts",
|
|
3
|
-
"version": "1.2
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "A collection of scripts for building Contentful Apps",
|
|
5
5
|
"author": "Contentful GmbH",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"bottleneck": "2.19.5",
|
|
53
53
|
"chalk": "4.1.2",
|
|
54
54
|
"commander": "9.4.1",
|
|
55
|
-
"contentful-management": "10.
|
|
55
|
+
"contentful-management": "10.23.0",
|
|
56
56
|
"dotenv": "16.0.3",
|
|
57
57
|
"ignore": "5.2.1",
|
|
58
58
|
"inquirer": "8.2.5",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"open": "8.4.0",
|
|
61
61
|
"ora": "5.4.1"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "4c3506be3f52c7a8aae17deaa75acefc9a805b42"
|
|
64
64
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Contentful
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|