* @param {object} cliOptions * @param {string} cliOptions.normalStoreUrl * @param {string} cliOptions.accessToken * @param {number} cliOptions.port * @returns {Promise }
(cliOptions = {})
| 39 | * @returns {Promise<void>} |
| 40 | */ |
| 41 | async run(cliOptions = {}) { |
| 42 | const oldStencilConfig = await this.readStencilConfig(); |
| 43 | const defaultAnswers = this.getDefaultAnswers(oldStencilConfig); |
| 44 | const questions = this.getQuestions(defaultAnswers, cliOptions); |
| 45 | const answers = await this.askQuestions(questions); |
| 46 | const updatedStencilConfig = this.applyAnswers(oldStencilConfig, answers, cliOptions); |
| 47 | await this._stencilConfigManager.save(updatedStencilConfig); |
| 48 | await this.installDependencies(THEME_PATH, answers.packageManager, cliOptions); |
| 49 | this._logger.log( |
| 50 | 'You are now ready to go! To start developing, run $ ' + 'stencil start'.cyan, |
| 51 | ); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * @returns {object} |
no test coverage detected