Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const util = require('./util');
const lib = require('./lib');
const Monaca = require('monaca-lib').Monaca;
const common = require('monaca-lib').common;
const inquirer = require('inquirer');
const CLI_MIGRATION_DOC_URL = common.migrationDocUrl();
let printInitInfo = (commands) => {
// Main steps to keep in mind
util.warn('\nBefore using Monaca, take a look at the following points:');
// www folder
util.print(`A. Change the output folder to ${'www'.commands}.`);
// config.xml
util.print(`B. In case of not having a ${'config.xml'.commands} file, a new one has been created with Monaca's default settings.`);
// monaca commands
util.print(`C. Some new commands have been added:\n`
+ `\t${'monaca:preview'.commands}: ${commands.serve.commands}\n`
+ `\t${'monaca:build'.commands}: ${commands.build ? commands.build.commands : 'not transpile'}\n`
+ `\t${'monaca:debug'.commands}: ${commands.watch ? commands.watch.commands : 'not transpile'}\n`
+ ` Make sure that the commands you have specified before are working properly because Monaca will need them.`);
// public folder
util.print(`D. Make sure that opening ${'index.html'.commands} over ${'file://'.commands} works. For example, you may need to change\n`