Skip to content

Commit

Permalink
refactor: rename cli to artusx-init
Browse files Browse the repository at this point in the history
  • Loading branch information
thonatos committed Jan 31, 2024
1 parent 58f5a8e commit 205ef26
Show file tree
Hide file tree
Showing 23 changed files with 20 additions and 21 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,8 @@ rush update
create new plugin (with @artusx/cli)

```bash
# create plugin with name @artusx/postgres
# will also update projects in rush.json
rush artusx --name postgres
# create new package and update projects in rush.json
rush gen --name postgres
```

publish to npm.js
Expand Down
26 changes: 13 additions & 13 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"shellCommand": "commitlint --edit ''"
},
{
"name": "artusx",
"name": "gen",
"commandKind": "global",
"summary": "project manager for monorepo",
"shellCommand": "node toolchains/cli/dist/bin/cli.js"
"summary": "Generator for monorepo, This command invokes toolchains to create a new package.",
"shellCommand": "node toolchains/artusx-init/dist/bin/cli.js"
}
// {
// /**
Expand Down Expand Up @@ -206,7 +206,15 @@
* Custom "parameters" introduce new parameters for specified Rush command-line commands.
* For example, you might define a "--production" parameter for the "rush build" command.
*/
"parameters": [
"parameters": [
{
"parameterKind": "string",
"longName": "--name",
"description": "new package name",
"associatedCommands": [ "gen" ],
"argumentName": "ARTUSX_NAME",
"required": true
}
// {
// /**
// * (Required) Determines the type of custom parameter.
Expand Down Expand Up @@ -419,14 +427,6 @@
// "description": "Use the strawberry flavor"
// }
// ]
// }
{
"parameterKind": "string",
"longName": "--name",
"description": "name for artusx cli",
"associatedCommands": [ "artusx" ],
"argumentName": "ARTUSX_NAME",
"required": true
}
// }
]
}
2 changes: 1 addition & 1 deletion common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@
"tags": ["tools"]
},
{
"packageName": "@artusx/cli",
"projectFolder": "toolchains/cli",
"packageName": "@artusx/init",
"projectFolder": "toolchains/artusx-init",
"tags": ["tools"]
},
// plugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@artusx/cli",
"name": "@artusx/init",
"version": "1.0.1-dev.1",
"description": "command line interface for artusx",
"description": "artusx generator for artusx",
"keywords": [
"artus.js"
],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 205ef26

Please sign in to comment.