@contentstack/cli-cm-bootstrap 1.9.3 → 1.9.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/README.md +1 -1
- package/lib/bootstrap/utils.js +8 -0
- package/lib/config.js +5 -0
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap
|
|
|
15
15
|
$ csdx COMMAND
|
|
16
16
|
running command...
|
|
17
17
|
$ csdx (--version)
|
|
18
|
-
@contentstack/cli-cm-bootstrap/1.9.
|
|
18
|
+
@contentstack/cli-cm-bootstrap/1.9.4 linux-x64 node-v18.20.4
|
|
19
19
|
$ csdx --help [COMMAND]
|
|
20
20
|
USAGE
|
|
21
21
|
$ csdx COMMAND
|
package/lib/bootstrap/utils.js
CHANGED
|
@@ -143,6 +143,14 @@ const envFileHandler = async (appConfigKey, environmentVariables, clonedDirector
|
|
|
143
143
|
: '\n'}CONTENTSTACK_ENVIRONMENT=${environmentVariables.environment}\nCONTENTSTACK_API_HOST=${customHost ? customHost : managementAPIHost}${!isUSRegion && !customHost ? '\nCONTENTSTACK_REGION=' + region.name : ''}\nCONTENTSTACK_LIVE_PREVIEW=${livePreviewEnabled}\nCONTENTSTACK_LIVE_EDIT_TAGS=false`;
|
|
144
144
|
result = await writeEnvFile(content, filePath);
|
|
145
145
|
break;
|
|
146
|
+
case 'compass-app':
|
|
147
|
+
fileName = '.env';
|
|
148
|
+
filePath = (0, cli_utilities_1.pathValidator)(path.join((0, cli_utilities_1.sanitizePath)(clonedDirectory), (0, cli_utilities_1.sanitizePath)(fileName)));
|
|
149
|
+
content = `CONTENTSTACK_API_KEY=${environmentVariables.api_key}\nCONTENTSTACK_DELIVERY_TOKEN=${environmentVariables.deliveryToken}\n${livePreviewEnabled
|
|
150
|
+
? `\nCONTENTSTACK_PREVIEW_TOKEN=${environmentVariables.preview_token || `''`}\nCONTENTSTACK_PREVIEW_HOST=${previewHost}\nCONTENTSTACK_APP_HOST=${appHost}\n`
|
|
151
|
+
: '\n'}CONTENTSTACK_ENVIRONMENT=${environmentVariables.environment}\nCONTENTSTACK_API_HOST=${customHost ? customHost : managementAPIHost}${!isUSRegion && !customHost ? '\nCONTENTSTACK_REGION=' + region.name : ''}\nCONTENTSTACK_LIVE_PREVIEW=${livePreviewEnabled}\nCONTENTSTACK_LIVE_EDIT_TAGS=false`;
|
|
152
|
+
result = await writeEnvFile(content, filePath);
|
|
153
|
+
break;
|
|
146
154
|
case 'gatsby':
|
|
147
155
|
case 'gatsby-starter':
|
|
148
156
|
fileName = `.env.${environmentVariables.environment}`;
|
package/lib/config.js
CHANGED
|
@@ -18,6 +18,7 @@ const config = {
|
|
|
18
18
|
{ displayName: 'Vue JS', configKey: 'vue-starter' },
|
|
19
19
|
{ displayName: 'Stencil', configKey: 'stencil-starter' },
|
|
20
20
|
{ displayName: 'Nuxt3', configKey: 'nuxt3-starter' },
|
|
21
|
+
// { displayName: 'Compass App', configKey: 'compass-app' }
|
|
21
22
|
],
|
|
22
23
|
appLevelConfig: {
|
|
23
24
|
nextjs: {
|
|
@@ -36,6 +37,10 @@ const config = {
|
|
|
36
37
|
source: 'contentstack/contentstack-angular-modularblock-example',
|
|
37
38
|
stack: 'contentstack/stack-contentstack-angular-modularblock-example',
|
|
38
39
|
},
|
|
40
|
+
'compass-app': {
|
|
41
|
+
source: 'SunilLsagar/universal-demo',
|
|
42
|
+
stack: 'SunilLsagar/stack-universal-demo',
|
|
43
|
+
},
|
|
39
44
|
'nuxtjs-disabled': {
|
|
40
45
|
source: 'contentstack/contentstack-nuxtjs-vue-universal-demo',
|
|
41
46
|
stack: 'shafeeqd959/stack-contentstack-nuxtjs-vue-universal-demo',
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-bootstrap",
|
|
3
3
|
"description": "Bootstrap contentstack apps",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.4",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"scripts": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@contentstack/cli-cm-seed": "~1.7.
|
|
21
|
-
"@contentstack/cli-command": "~1.2.
|
|
22
|
-
"@contentstack/cli-utilities": "~1.
|
|
20
|
+
"@contentstack/cli-cm-seed": "~1.7.6",
|
|
21
|
+
"@contentstack/cli-command": "~1.2.19",
|
|
22
|
+
"@contentstack/cli-utilities": "~1.7.0",
|
|
23
23
|
"inquirer": "8.2.4",
|
|
24
24
|
"mkdirp": "^1.0.4",
|
|
25
25
|
"tar": "^6.2.1 "
|