refactor(cli): rename dev command to serve

This commit is contained in:
Ayo 2023-10-26 17:46:27 +02:00
parent ad1714a5e5
commit 5f4019cf0f
8 changed files with 9 additions and 9 deletions

View file

@ -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
View file

@ -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",

View file

@ -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) |

View file

@ -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),

View file

@ -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": {

View file

@ -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"

View file

@ -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"