From f6737d2aa74d19c1d3346c1bc2d67ecd76c5dfa4 Mon Sep 17 00:00:00 2001 From: linbudu599 Date: Wed, 16 Mar 2022 09:58:21 +0800 Subject: [PATCH] feat: update README --- README.md | 23 +++++++++++++++++++++-- package.json | 1 + 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 604ea19..fc3a07e 100644 --- a/README.md +++ b/README.md @@ -86,8 +86,11 @@ In fact, all we need to do is to choose some of these projects according to our ``` Projects that are not selected will be removed from the workspace packages dir `/packages` -and a backup will be kept in `node_modules/.LinbuduLab`, you can run `pnpm cli reset` to recover these packages, -or use command `pnpm cli copy` to add removed packages back: +and a backup will be kept in `node_modules/.LinbuduLab`. + +- You can run `pnpm cli reset` to recover these packages back to `packages` dir. +- You can use command `pnpm cli copy` to add specified packages back. +- You can execute `pnpm cli cache` to cache workspace packages manually. ```bash ✔ Choose starters you want to copy into workspace · esbuild-plugin-starter, esbuild-react-app @@ -145,6 +148,22 @@ Command: `pnpm cli fork [workspace name] `. This command will create a fork of the current workspace at specified directory. If destination directory is not specified, it will use `../tmp/forked` as default. +## Upgrade + +Command: `pnpm cli upgrade [projectBlurKeyword]` + +This command executes deps version checking and upgrading for specified packages. You can use just keyword or complete project name like: + +```bash +# input 'vite' has no '-' signal, so it will work for all projects which has 'vite' in its name +pnpm cli u vite + +# work for 'vite-react-starter' only +pnpm cli u vite-react-starter +``` + +Also, if you execute this command with no project name (or no exist project name), it will ask you for working targets. + ### Release > WIP diff --git a/package.json b/package.json index 0af54a2..324d2a1 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "version": "1.0.0", "scripts": { "cli": "ts-node -P scripts/tsconfig.script.json scripts/cli.ts", + "cli-dev": "ts-node-dev --respawn --transpile-only -P scripts/tsconfig.script.json scripts/cli.ts", "cs:add": "changeset add", "cs:version": "changeset version", "cs:publish": "changeset publish",