How to use the monaca-lib.common.migrationDocUrl function in monaca-lib

To help you get started, we’ve selected a few monaca-lib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github monaca / monaca-cli / src / init.js View on Github external
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`

monaca-lib

Monaca cloud and localkit API bindings for JavaScript

Unrecognized
Latest version published 2 months ago

Package Health Score

65 / 100
Full package analysis