refactor(cli): rename dev command to serve
This commit is contained in:
parent
ad1714a5e5
commit
5f4019cf0f
8 changed files with 9 additions and 9 deletions
|
@ -57,7 +57,7 @@ Then, you can run the following **McFly CLI** commands:
|
||||||
| Command | Action |
|
| Command | Action |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `mcfly new` | Creates a new McFly project. |
|
| `mcfly new` | Creates a new McFly project. |
|
||||||
| `mcfly dev` | Runs the developent server. |
|
| `mcfly serve` | Runs the developent server. |
|
||||||
| `mcfly build` | Builds the McFly project for production. |
|
| `mcfly build` | Builds the McFly project for production. |
|
||||||
| `mcfly prepare` | Prepares the McFly workspace. |
|
| `mcfly prepare` | Prepares the McFly workspace. |
|
||||||
| `mcfly generate` | Generates building blocks for a McFly app. (In-progress) |
|
| `mcfly generate` | Generates building blocks for a McFly app. (In-progress) |
|
||||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -3970,7 +3970,7 @@
|
||||||
},
|
},
|
||||||
"packages/cli": {
|
"packages/cli": {
|
||||||
"name": "@mcflyjs/cli",
|
"name": "@mcflyjs/cli",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"citty": "^0.1.4",
|
"citty": "^0.1.4",
|
||||||
|
|
|
@ -17,7 +17,7 @@ You can run the following **McFly CLI** commands:
|
||||||
| Command | Action |
|
| Command | Action |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `mcfly new` | Creates a new McFly project. |
|
| `mcfly new` | Creates a new McFly project. |
|
||||||
| `mcfly dev` | Runs the developent server. |
|
| `mcfly serve` | Runs the developent server. |
|
||||||
| `mcfly build` | Builds the McFly project for production. |
|
| `mcfly build` | Builds the McFly project for production. |
|
||||||
| `mcfly prepare` | Prepares the McFly workspace. |
|
| `mcfly prepare` | Prepares the McFly workspace. |
|
||||||
| `mcfly generate` | Generates building blocks for a McFly app. (In-progress) |
|
| `mcfly generate` | Generates building blocks for a McFly app. (In-progress) |
|
||||||
|
|
|
@ -10,7 +10,7 @@ const main = defineCommand({
|
||||||
},
|
},
|
||||||
subCommands: {
|
subCommands: {
|
||||||
new: () => import("./commands/new.mjs").then((r) => r.default),
|
new: () => import("./commands/new.mjs").then((r) => r.default),
|
||||||
dev: () => import("./commands/dev.mjs").then((r) => r.default),
|
serve: () => import("./commands/serve.mjs").then((r) => r.default),
|
||||||
build: () => import("./commands/build.mjs").then((r) => r.default),
|
build: () => import("./commands/build.mjs").then((r) => r.default),
|
||||||
prepare: () => import("./commands/prepare.mjs").then((r) => r.default),
|
prepare: () => import("./commands/prepare.mjs").then((r) => r.default),
|
||||||
generate: () => import("./commands/generate.mjs").then((r) => r.default),
|
generate: () => import("./commands/generate.mjs").then((r) => r.default),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@mcflyjs/cli",
|
"name": "@mcflyjs/cli",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"description": "McFly CLI tools",
|
"description": "McFly CLI tools",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
"description": "McFly is a full-stack no-framework framework that assists developers in leveraging the web platform.",
|
"description": "McFly is a full-stack no-framework framework that assists developers in leveraging the web platform.",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "mcfly dev",
|
"start": "mcfly serve",
|
||||||
"prepare": "mcfly prepare",
|
"prepare": "mcfly prepare",
|
||||||
"dev": "mcfly dev",
|
"dev": "mcfly serve",
|
||||||
"build": "mcfly build",
|
"build": "mcfly build",
|
||||||
"preview": "node .output/server/index.mjs",
|
"preview": "node .output/server/index.mjs",
|
||||||
"build:preview": "npm run build && npm run preview"
|
"build:preview": "npm run build && npm run preview"
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
"name": "@templates/basic",
|
"name": "@templates/basic",
|
||||||
"description": "McFly starter project; see more on https://ayco.io/gh/McFly",
|
"description": "McFly starter project; see more on https://ayco.io/gh/McFly",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "mcfly dev",
|
"start": "mcfly serve",
|
||||||
"prepare": "mcfly prepare",
|
"prepare": "mcfly prepare",
|
||||||
"dev": "mcfly dev",
|
"dev": "mcfly serve",
|
||||||
"build": "mcfly build",
|
"build": "mcfly build",
|
||||||
"preview": "node .output/server/index.mjs",
|
"preview": "node .output/server/index.mjs",
|
||||||
"build:preview": "npm run build && npm run preview"
|
"build:preview": "npm run build && npm run preview"
|
||||||
|
|
Loading…
Reference in a new issue