flores-create
Version:
The CLI tool for creating a new Flores website.
48 lines (40 loc) • 1.22 kB
JavaScript
const cli = require("meow");
/**
* Run the CLI.
* @return {Object}
*/
const meow = () =>
cli(
`
Usage
$ flores-create <path> [--starter] [--package-manager]
- path: The path where you want to create the Flores website.
Options
--starter, -s: The URL of Flores starter template to download.
If not providied, it will use the default Flores starter template at:
"https://github.com/risan/flores-starter/archive/master.zip".
If it's a Github repository and you want to use the master branch, you
may provide a shorter value: "@risan/flores-starter". Note that you must
add "@" character in the front.
--package-manager, -p: The package manager to use ("npm" or "yarn").
Examples
$ flores-create my-blog
$ flores-create my-blog --starter https://github.com/risan/flores-starter/archive/master.zip
$ flores-create my-blog -s @risan/flores-starter
$ flores-create my-blog --package-manager npm
$ flores-create my-blog -p yarn
`,
{
flags: {
starter: {
type: "string",
alias: "s"
},
packageManager: {
type: "string",
alias: "p"
}
}
}
);
module.exports = meow;