update md2site
This commit is contained in:
parent
e0f70300dd
commit
e98b4a1ea6
|
@ -23,7 +23,7 @@ if (cmdstr) {
|
|||
const binFile = executable(cmdstr)
|
||||
if (binFile) {
|
||||
console.log()
|
||||
console.log(chalk.bold.cyan("Omi-cli") + " is initializing... ")
|
||||
console.log(chalk.bold.cyan("md2site-cli") + " is initializing... ")
|
||||
secede(spawn('node', [].concat([binFile], args), {stdio: 'inherit'}))
|
||||
} else {
|
||||
program.help();
|
||||
|
@ -35,13 +35,13 @@ if (cmdstr) {
|
|||
function help() {
|
||||
console.log(' Commands:')
|
||||
console.log()
|
||||
console.log(' init [project-name] Initialize a new Omi application in the current folder ')
|
||||
console.log(' init [project-name] Initialize a new md2site application in the current folder ')
|
||||
console.log()
|
||||
console.log(' All commands can be run with -h (or --help) for more information.')
|
||||
}
|
||||
|
||||
function executable(cmdstr) {
|
||||
const file = join(__dirname, 'omi-' + cmdstr)
|
||||
const file = join(__dirname, 'md2site-' + cmdstr)
|
||||
if (exists(file)) {
|
||||
return file
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ function init(program) {
|
|||
}
|
||||
|
||||
console.log()
|
||||
console.log(`Creating a new Omi app in ${dest}`)
|
||||
console.log(`Creating a new md2site app in ${dest}`)
|
||||
|
||||
/*
|
||||
* Use vinyl-fs to init file
|
||||
|
@ -62,7 +62,7 @@ In ${projectName}, you can run these commands:
|
|||
> ${chalk.bold.white('npm run dev')} Starts the development server
|
||||
> ${chalk.bold.white('npm run dist')} Publish your project`)
|
||||
console.log()
|
||||
console.log(`${chalk.bold.cyan('Omi!')} https://alloyteam.github.io/omi` )
|
||||
console.log(`${chalk.bold.cyan('md2site!')} https://alloyteam.github.io/omi` )
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "md2site",
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.2",
|
||||
"description": "CLI for scaffolding Omi.js projects.",
|
||||
"main": "bin/md2site",
|
||||
"engines": {
|
||||
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"preferGlobal": true,
|
||||
"bin": {
|
||||
"omi": "./bin/omi"
|
||||
"omi": "./bin/md2site"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -16,9 +16,13 @@
|
|||
},
|
||||
"keywords": [
|
||||
"omi",
|
||||
"markdown",
|
||||
"md2site",
|
||||
"doc",
|
||||
"docs",
|
||||
"cli"
|
||||
],
|
||||
"author": "pasturn",
|
||||
"author": "dntzhang",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"chalk": "^1.1.3",
|
||||
|
|
Loading…
Reference in New Issue