@bigcommerce/stencil-cli 3.6.0 → 3.6.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/CHANGELOG.md +17 -0
- package/bin/stencil-download.js +13 -4
- package/lib/release/questions.js +1 -0
- package/lib/stencil-start.js +2 -1
- package/package-lock.json +508 -23767
- package/package.json +3 -3
- package/server/index.js +1 -0
- package/server/plugins/router/router.module.js +10 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
### 3.6.4 (2021-11-5)
|
|
2
|
+
|
|
3
|
+
- fix: strf-9474 Removed "git+" prefix from package-lock ([794](https://github.com/bigcommerce/stencil-cli/pull/794))
|
|
4
|
+
|
|
5
|
+
### 3.6.3 (2021-10-22)
|
|
6
|
+
|
|
7
|
+
- Bump paper to rc51
|
|
8
|
+
- fix: strf-8846 Send stencil-cli header to storefront api ([789](https://github.com/bigcommerce/stencil-cli/pull/789))
|
|
9
|
+
|
|
10
|
+
### 3.6.2 (2021-10-06)
|
|
11
|
+
|
|
12
|
+
- feat: Add overwrite option to download command ([785](https://github.com/bigcommerce/stencil-cli/pull/785))
|
|
13
|
+
|
|
14
|
+
### 3.6.1 (2021-10-04)
|
|
15
|
+
|
|
16
|
+
- fix: strf-9375 Fix custom release tag selection ([f41d6dd44fb](https://github.com/bigcommerce/stencil-cli/commit/f41d6dd44fb))
|
|
17
|
+
|
|
1
18
|
### 3.6.0 (2021-09-28)
|
|
2
19
|
|
|
3
20
|
- feat: strf-9332 added timeout parameter for stencil bundle command ([9c762fa0aa1](https://github.com/bigcommerce/stencil-cli/commit/9c762fa0aa1))
|
package/bin/stencil-download.js
CHANGED
|
@@ -15,6 +15,7 @@ program
|
|
|
15
15
|
.option('-f, --file [filename]', 'specify the filename to download only')
|
|
16
16
|
.option('-e, --exclude [exclude]', 'specify a directory to exclude from download')
|
|
17
17
|
.option('-c, --channel_id [channelId]', 'specify the channel ID of the storefront', parseInt)
|
|
18
|
+
.option('-o, --overwrite', 'overwrite local with remote files')
|
|
18
19
|
.parse(process.argv);
|
|
19
20
|
|
|
20
21
|
checkNodeVersion();
|
|
@@ -25,6 +26,7 @@ const options = {
|
|
|
25
26
|
exclude: ['parsed', 'manifest.json', ...extraExclude],
|
|
26
27
|
apiHost: cliOptions.host,
|
|
27
28
|
channelId: cliOptions.channel_id,
|
|
29
|
+
overwrite: cliOptions.overwrite,
|
|
28
30
|
applyTheme: true, // fix to be compatible with stencil-push.utils
|
|
29
31
|
file: cliOptions.file,
|
|
30
32
|
};
|
|
@@ -32,16 +34,23 @@ const options = {
|
|
|
32
34
|
async function run(opts) {
|
|
33
35
|
const overwriteType = opts.file ? opts.file : 'files';
|
|
34
36
|
|
|
35
|
-
const
|
|
37
|
+
const promptAnswers = await inquirer.prompt([
|
|
36
38
|
{
|
|
37
39
|
message: `${'Warning'.yellow} -- overwrite local with remote ${overwriteType}?`,
|
|
38
40
|
name: 'overwrite',
|
|
39
|
-
type: '
|
|
40
|
-
|
|
41
|
+
type: 'confirm',
|
|
42
|
+
when() {
|
|
43
|
+
return !opts.overwrite;
|
|
44
|
+
},
|
|
41
45
|
},
|
|
42
46
|
]);
|
|
43
47
|
|
|
44
|
-
|
|
48
|
+
const answers = {
|
|
49
|
+
...opts,
|
|
50
|
+
...promptAnswers,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
if (!answers.overwrite) {
|
|
45
54
|
console.log(`Request cancelled by user ${'No'.red}`);
|
|
46
55
|
return;
|
|
47
56
|
}
|
package/lib/release/questions.js
CHANGED
|
@@ -63,6 +63,7 @@ async function askQuestions(currentVersion, githubToken, remotes) {
|
|
|
63
63
|
name: 'version',
|
|
64
64
|
type: 'input',
|
|
65
65
|
message: 'What specific version would you like',
|
|
66
|
+
askAnswered: true,
|
|
66
67
|
when: (answers) => answers.version === 'custom',
|
|
67
68
|
validate: (value) => {
|
|
68
69
|
const valid = semver.valid(value) && true;
|
package/lib/stencil-start.js
CHANGED
|
@@ -5,7 +5,7 @@ const path = require('path');
|
|
|
5
5
|
|
|
6
6
|
const Cycles = require('./Cycles');
|
|
7
7
|
const templateAssemblerModule = require('./template-assembler');
|
|
8
|
-
const { THEME_PATH } = require('../constants');
|
|
8
|
+
const { PACKAGE_INFO, THEME_PATH } = require('../constants');
|
|
9
9
|
const Server = require('../server');
|
|
10
10
|
const StencilConfigManager = require('./StencilConfigManager');
|
|
11
11
|
const ThemeConfig = require('./theme-config');
|
|
@@ -131,6 +131,7 @@ class StencilStart {
|
|
|
131
131
|
variationIndex: this._themeConfigManager.variationIndex || 0,
|
|
132
132
|
useCache: cliOptions.cache,
|
|
133
133
|
themePath: this._themeConfigManager.themePath,
|
|
134
|
+
stencilCliVersion: PACKAGE_INFO.version,
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
137
|
|