Skip to content

Commit

Permalink
refactor: rename the bin from metassr-cli to metassr
Browse files Browse the repository at this point in the history
  • Loading branch information
hulxv committed Sep 22, 2024
1 parent 539c8f5 commit cb4f5db
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
name = "metassr"
version = "0.0.1-alpha"
edition = "2021"
authors = ["Mohamed Emad ([email protected])"]
description = "Another SSR framework but built with MetaCall!"
license = "MIT"
license-file = "LICENSE"
default-run = "metassr"


[package.metadata]
authors = ["Mohamed Emad ([email protected])"]

[dependencies]
anyhow = "1.0.82"
Expand Down Expand Up @@ -47,5 +53,5 @@ members = [
]

[[bin]]
name = "metassr-cli"
name = "metassr"
path = "metassr-cli/src/main.rs"
8 changes: 4 additions & 4 deletions crates/metassr-create/templates/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions crates/metassr-create/templates/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb4f5db

Please sign in to comment.