From cb4f5dbf4a9fbcf6a907acf8049468910ced5104 Mon Sep 17 00:00:00 2001 From: hulxv Date: Sun, 22 Sep 2024 03:17:45 +0300 Subject: [PATCH] refactor: rename the bin from `metassr-cli` to `metassr` --- Cargo.toml | 10 ++++++++-- .../metassr-create/templates/javascript/package.json | 8 ++++---- .../metassr-create/templates/typescript/package.json | 8 ++++---- docs/getting-started/installation.md | 4 ++-- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 82364ec..a04f781 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,8 +2,14 @@ name = "metassr" version = "0.0.1-alpha" edition = "2021" -authors = ["Mohamed Emad (hulxxv@gmail.com)"] description = "Another SSR framework but built with MetaCall!" +license = "MIT" +license-file = "LICENSE" +default-run = "metassr" + + +[package.metadata] +authors = ["Mohamed Emad (hulxxv@gmail.com)"] [dependencies] anyhow = "1.0.82" @@ -47,5 +53,5 @@ members = [ ] [[bin]] -name = "metassr-cli" +name = "metassr" path = "metassr-cli/src/main.rs" diff --git a/crates/metassr-create/templates/javascript/package.json b/crates/metassr-create/templates/javascript/package.json index b990c3b..90b6a68 100644 --- a/crates/metassr-create/templates/javascript/package.json +++ b/crates/metassr-create/templates/javascript/package.json @@ -3,10 +3,10 @@ "version": "%VER%", "description": "%DESC%", "scripts": { - "run": "metassr-cli --debug-mode=http run", - "build:ssr": "metassr-cli --debug-mode=metacall build -t ssr", - "serve": "metassr-cli --debug-mode=http run --serve", - "build:ssg": "metassr-cli --debug-mode=metacall build -t ssg" + "run": "metassr --debug-mode=http run", + "serve": "metassr --debug-mode=http run --serve", + "build:ssr": "metassr --debug-mode=metacall build -t ssr", + "build:ssg": "metassr --debug-mode=metacall build -t ssg" }, "devDependencies": { "@rspack/core": "^0.7.5" diff --git a/crates/metassr-create/templates/typescript/package.json b/crates/metassr-create/templates/typescript/package.json index 971192f..3527b25 100644 --- a/crates/metassr-create/templates/typescript/package.json +++ b/crates/metassr-create/templates/typescript/package.json @@ -3,10 +3,10 @@ "version": "%VER%", "description": "%DESC%", "scripts": { - "run": "metassr-cli --debug-mode=http run", - "build:ssr": "metassr-cli --debug-mode=metacall build -t ssr", - "serve:ssg": "metassr-cli --debug-mode=http run --serve", - "build:ssg": "metassr-cli --debug-mode=metacall build -t ssg", + "run": "metassr --debug-mode=http run", + "serve": "metassr --debug-mode=http run --serve", + "build:ssr": "metassr --debug-mode=metacall build -t ssr", + "build:ssg": "metassr --debug-mode=metacall build -t ssg", "dev": "rspack --watch" }, "devDependencies": { diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index 0749b1b..785e1c9 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -52,10 +52,10 @@ $ cargo build --release ### 3. Add the CLI Binary to PATH (Linux) -Now, you'll want to make the binary of `metassr-cli` globally accessible. To do this on Linux, add the binary to your PATH: +Now, you'll want to make the binary of `metassr` globally accessible. To do this on Linux, add the binary to your PATH: ```bash -sudo ln -s $(pwd)/target/release/metassr-cli /usr/local/bin/metassr +sudo ln -s $(pwd)/target/release/metassr /usr/local/bin/metassr ``` ### 4. Create Your First Project