@bigcommerce/stencil-cli 7.5.1 → 7.5.3

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.
@@ -11,7 +11,9 @@ program
11
11
  .option('-u, --url [url]', 'Store URL')
12
12
  .option('-t, --token [token]', 'Access Token')
13
13
  .option('-p, --port [port]', 'Port')
14
- .option('-h, --apiHost [host]', 'API Host');
14
+ .option('-h, --apiHost [host]', 'API Host')
15
+ .option('-pm, --packageManager [pm]', 'Package manager')
16
+ .option('-skip, --skipInstall', 'Skip packages installation');
15
17
 
16
18
  const cliOptions = prepareCommand(program);
17
19
 
@@ -21,5 +23,7 @@ new StencilInit()
21
23
  accessToken: cliOptions.token,
22
24
  port: cliOptions.port,
23
25
  apiHost: cliOptions.apiHost,
26
+ packageManager: cliOptions.packageManager,
27
+ skipInstall: cliOptions.skipInstall,
24
28
  })
25
29
  .catch(printCliResultErrorAndExit);
@@ -47,7 +47,7 @@ class StencilInit {
47
47
  const answers = await this.askQuestions(questions);
48
48
  const updatedStencilConfig = this.applyAnswers(oldStencilConfig, answers, cliOptions);
49
49
  await this._stencilConfigManager.save(updatedStencilConfig);
50
- await this.installDependencies(THEME_PATH, answers.packageManager);
50
+ await this.installDependencies(THEME_PATH, answers.packageManager, cliOptions);
51
51
 
52
52
  this._logger.log(
53
53
  'You are now ready to go! To start developing, run $ ' + 'stencil start'.cyan,
@@ -195,9 +195,13 @@ class StencilInit {
195
195
  *
196
196
  * @param {string} projectDir
197
197
  * @param {object} packageManager
198
+ * @param {object} cliOptions
198
199
  * @returns
199
200
  */
200
- installDependencies(projectDir, packageManager) {
201
+ installDependencies(projectDir, packageManager, cliOptions) {
202
+ if (cliOptions.skipInstall) {
203
+ return Promise.resolve();
204
+ }
201
205
  return this._spinner(
202
206
  this._nypm.installDependencies({
203
207
  cwd: projectDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "7.5.1",
3
+ "version": "7.5.3",
4
4
  "description": "CLI tool to run BigCommerce Stores locally for theme development.",
5
5
  "main": "index.js",
6
6
  "engines": {