Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions packages/tools/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# tools for internal development use

- json-edit: A CLI tool to edit JSON files such as package.json in e2e tests
- json-sort: A CLI tool to sort JSON keys in a file
## Bins

- json-edit: A CLI tool to edit JSON files such as package.json, used by the release workflow to stamp build versions

## `tool` subcommands

Run with `tool <name>`:

- sync-remote: Sync upstream dependency sources and catalog versions from `.upstream-versions.json`
- install-global-cli: Install the locally built `vp` global CLI into `~/.vite-plus`
- brand-vite: Apply Vite+ branding patches to the synced vite source (also runs at the end of sync-remote)
- local-npm-registry: Serve locally packed checkout packages behind a real registry HTTP interface for snapshot tests, ecosystem e2e, and local `vp migrate`/`vp create` iteration
18 changes: 0 additions & 18 deletions packages/tools/snap-tests/json-sort/array.json

This file was deleted.

59 changes: 0 additions & 59 deletions packages/tools/snap-tests/json-sort/snap.txt

This file was deleted.

9 changes: 0 additions & 9 deletions packages/tools/snap-tests/json-sort/steps.json

This file was deleted.

14 changes: 0 additions & 14 deletions packages/tools/snap-tests/replace-file-content/foo/example.toml

This file was deleted.

31 changes: 0 additions & 31 deletions packages/tools/snap-tests/replace-file-content/snap.txt

This file was deleted.

7 changes: 0 additions & 7 deletions packages/tools/snap-tests/replace-file-content/steps.json

This file was deleted.

10 changes: 1 addition & 9 deletions packages/tools/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
const subcommand = process.argv[2];

switch (subcommand) {
case 'replace-file-content':
const { replaceFileContent } = await import('./replace-file-content.ts');
replaceFileContent();
break;
case 'sync-remote':
const { syncRemote } = await import('./sync-remote-deps.ts');
await syncRemote();
break;
case 'json-sort':
const { jsonSort } = await import('./json-sort.ts');
jsonSort();
break;
case 'install-global-cli':
const { installGlobalCli } = await import('./install-global-cli.ts');
installGlobalCli();
Expand All @@ -37,7 +29,7 @@ switch (subcommand) {
default:
console.error(`Unknown subcommand: ${subcommand}`);
console.error(
'Available subcommands: replace-file-content, sync-remote, json-sort, install-global-cli, brand-vite, local-npm-registry',
'Available subcommands: sync-remote, install-global-cli, brand-vite, local-npm-registry',
);
process.exit(1);
}
Expand Down
40 changes: 0 additions & 40 deletions packages/tools/src/json-sort.ts

This file was deleted.

27 changes: 0 additions & 27 deletions packages/tools/src/replace-file-content.ts

This file was deleted.

Loading