Skip to content
Merged
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
2 changes: 1 addition & 1 deletion packages/cli/snap-tests-global/cli-helper-message/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Usage: vp [COMMAND]

Start:
create Create a new project from a template
migrate Migrate an existing project to Vite+<repeat>
migrate Migrate an existing project to Vite+
config Configure hooks and agent integration
staged Run linters on staged files
install, i Install all dependencies, or add packages if package names are provided
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ devDependencies:
+ testnpm2 ^1.0.1

Packages: +<variable>
+<repeat>
+
Done in <variable>ms using pnpm v<semver>
{
"name": "command-add-pnpm10-with-workspace",
Expand Down Expand Up @@ -38,7 +38,7 @@ Done in <variable>ms using pnpm v<semver>

> vp add testnpm2 test-vite-plus-install@1.0.0 --filter app && cat package.json packages/app/package.json packages/utils/package.json # should add packages to packages/app
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
. | +1 +<repeat>
. | +1 +
Done in <variable>ms using pnpm v<semver>
{
"name": "command-add-pnpm10-with-workspace",
Expand Down Expand Up @@ -125,7 +125,7 @@ Done in <variable>ms using pnpm v<semver>
}

> vp install test-vite-plus-package@1.0.0 --filter "*" --workspace-root --save-catalog && cat package.json packages/app/package.json packages/utils/package.json pnpm-workspace.yaml # should install packages alias for add command
. | +1 +<repeat>
. | +1 +
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
Done in <variable>ms using pnpm v<semver>
{
Expand Down Expand Up @@ -167,7 +167,7 @@ catalog:

> vp add --filter app test-vite-plus-package-optional --save-catalog-name v1 && cat packages/app/package.json pnpm-workspace.yaml # should add with save-catalog-name
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
. | +1 +<repeat>
. | +1 +
Done in <variable>ms using pnpm v<semver>
{
"name": "app",
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/snap-tests-global/command-add-pnpm10/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ For more information, try '--help'.

> vp add testnpm2 -D -- --loglevel=verbose --verbose && cat package.json # should add package as dev dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

devDependencies:
Expand All @@ -54,7 +54,7 @@ Done in <variable>ms using pnpm v<semver>

> vp add testnpm2 test-vite-plus-install --allow-build=test-vite-plus-install && cat package.json # should add packages to dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

dependencies:
Expand All @@ -75,7 +75,7 @@ Done in <variable>ms using pnpm v<semver>

> vp install test-vite-plus-package@1.0.0 --save-peer && cat package.json # should install package alias for add
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

peerDependencies:
Expand Down Expand Up @@ -103,7 +103,7 @@ Done in <variable>ms using pnpm v<semver>

> vp add test-vite-plus-package-optional -O && cat package.json # should add package as optional dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

optionalDependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ devDependencies:
+ testnpm2 ^1.0.1

Packages: +<variable>
+<repeat>
+
Done in <variable>ms using pnpm v<semver>
{
"name": "command-add-pnpm11-with-workspace",
Expand Down Expand Up @@ -38,7 +38,7 @@ Done in <variable>ms using pnpm v<semver>

> vp add testnpm2 test-vite-plus-install@1.0.0 --filter app && cat package.json packages/app/package.json packages/utils/package.json # should add packages to packages/app
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
. | +1 +<repeat>
. | +1 +
Done in <variable>ms using pnpm v<semver>
{
"name": "command-add-pnpm11-with-workspace",
Expand Down Expand Up @@ -126,7 +126,7 @@ Done in <variable>ms using pnpm v<semver>
}

> vp install test-vite-plus-package@1.0.0 --filter "*" --workspace-root --save-catalog && cat package.json packages/app/package.json packages/utils/package.json pnpm-workspace.yaml # should install packages alias for add command
. | +1 +<repeat>
. | +1 +
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
Done in <variable>ms using pnpm v<semver>
{
Expand Down Expand Up @@ -168,7 +168,7 @@ catalog:

> vp add --filter app test-vite-plus-package-optional --save-catalog-name v1 && cat packages/app/package.json pnpm-workspace.yaml # should add with save-catalog-name
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
. | +1 +<repeat>
. | +1 +
Done in <variable>ms using pnpm v<semver>
{
"name": "app",
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/snap-tests-global/command-add-pnpm11/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ For more information, try '--help'.

> vp add testnpm2 -D -- --loglevel=verbose --verbose && cat package.json # should add package as dev dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

devDependencies:
Expand All @@ -54,7 +54,7 @@ Done in <variable>ms using pnpm v<semver>

> vp add testnpm2 test-vite-plus-install --allow-build=test-vite-plus-install && cat package.json # should add packages to dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

dependencies:
Expand All @@ -75,7 +75,7 @@ Done in <variable>ms using pnpm v<semver>

> vp install test-vite-plus-package@1.0.0 --save-peer && cat package.json # should install package alias for add
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

peerDependencies:
Expand Down Expand Up @@ -103,7 +103,7 @@ Done in <variable>ms using pnpm v<semver>

> vp add test-vite-plus-package-optional -O && cat package.json # should add package as optional dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

optionalDependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ devDependencies:
+ testnpm2 ^1.0.1

Packages: +<variable>
+<repeat>
+
Done in <variable>ms using pnpm v<semver>
{
"name": "command-add-pnpm9-with-workspace",
Expand All @@ -22,7 +22,7 @@ Done in <variable>ms using pnpm v<semver>
> vp add testnpm2 test-vite-plus-install@1.0.0 --filter app && cat package.json packages/app/package.json packages/utils/package.json # should add packages to packages/app
. |  WARN  `node_modules` is present. Lockfile only installation will make it out-of-date
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
. | +1 +<repeat>
. | +1 +
Done in <variable>ms using pnpm v<semver>
{
"name": "command-add-pnpm9-with-workspace",
Expand Down Expand Up @@ -101,7 +101,7 @@ Done in <variable>ms using pnpm v<semver>
}

> vp install test-vite-plus-package@1.0.0 --filter "*" --workspace-root && cat package.json packages/app/package.json packages/utils/package.json pnpm-workspace.yaml # should install packages alias for add command
. | +1 +<repeat>
. | +1 +
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
Done in <variable>ms using pnpm v<semver>
{
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/snap-tests-global/command-add-pnpm9/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Documentation: https://viteplus.dev/guide/install

> vp add testnpm2 -D && cat package.json # should add package as dev dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

devDependencies:
Expand All @@ -46,7 +46,7 @@ Done in <variable>ms using pnpm v<semver>

> vp add testnpm2 test-vite-plus-install && cat package.json # should add packages to dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

dependencies:
Expand All @@ -71,7 +71,7 @@ For help, run: pnpm help add

> vp install test-vite-plus-package@1.0.0 --save-peer && cat package.json # should install package alias for add
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

peerDependencies:
Expand Down Expand Up @@ -99,7 +99,7 @@ Done in <variable>ms using pnpm v<semver>

> vp add test-vite-plus-package-optional -O && cat package.json # should add package as optional dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

optionalDependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ no package.json
}
> vp add testnpm2 -D && cat package.json # should add package to auto-created package.json
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

devDependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Documentation: https://viteplus.dev/guide/install

> vp install # install initial dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Documentation: https://viteplus.dev/guide/install

> vp install # install initial dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

dependencies:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
> vp add testnpm2 -D -w --filter=* && vp add test-vite-plus-install -w --filter=* && vp add test-vite-plus-package-optional -O --filter=* && cat package.json packages/app/package.json packages/utils/package.json # prepare packages
. | +1 +<repeat>
. | +1 +
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
Done in <variable>ms using pnpm v<semver>
. | +1 +<repeat>
. | +1 +
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
Done in <variable>ms using pnpm v<semver>
. | +1 +<repeat>
. | +1 +
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
Done in <variable>ms using pnpm v<semver>
{
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/snap-tests-global/command-remove-pnpm10/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ For more information, try '--help'.

> vp add testnpm2 && vp add -D test-vite-plus-install && vp add -O test-vite-plus-package-optional && cat package.json # should add packages to dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

dependencies:
+ testnpm2 <semver>

Done in <variable>ms using pnpm v<semver>
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

devDependencies:
+ test-vite-plus-install <semver>

Done in <variable>ms using pnpm v<semver>
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

optionalDependencies:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
> vp add testnpm2 -D -w --filter=* && vp add test-vite-plus-install -w --filter=* && vp add test-vite-plus-package-optional -O --filter=* && cat package.json packages/app/package.json packages/utils/package.json # prepare packages
. | +1 +<repeat>
. | +1 +
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
Done in <variable>ms using pnpm v<semver>
. | +1 +<repeat>
. | +1 +
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
Done in <variable>ms using pnpm v<semver>
. | +1 +<repeat>
. | +1 +
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
Done in <variable>ms using pnpm v<semver>
{
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/snap-tests-global/command-remove-pnpm11/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ For more information, try '--help'.

> vp add testnpm2 && vp add -D test-vite-plus-install && vp add -O test-vite-plus-package-optional && cat package.json # should add packages to dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

dependencies:
+ testnpm2 <semver>

Done in <variable>ms using pnpm v<semver>
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

devDependencies:
+ test-vite-plus-install <semver>

Done in <variable>ms using pnpm v<semver>
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

optionalDependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

Packages: +<variable>
+<repeat>
+
Done in <variable>ms using pnpm v<semver>
{
"name": "command-update-pnpm10-with-workspace",
Expand All @@ -16,7 +16,7 @@ Done in <variable>ms using pnpm v<semver>
> vp update testnpm2 --latest --filter app && cat packages/app/package.json # should update in specific package
. |  WARN  `node_modules` is present. Lockfile only installation will make it out-of-date
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
. | +2 +<repeat>
. | +2 +
Done in <variable>ms using pnpm v<semver>
{
"name": "app",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Done in <variable>ms using pnpm v<semver>
> vp rm testnpm2 # should remove package from dependencies for the next test
> vp add testnpm2@1.0.0 -O && vp update --no-optional --latest && cat package.json # should skip optional dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

optionalDependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

Packages: +<variable>
+<repeat>
+
Done in <variable>ms using pnpm v<semver>
{
"name": "command-update-pnpm11-with-workspace",
Expand All @@ -15,7 +15,7 @@ Done in <variable>ms using pnpm v<semver>

> vp update testnpm2 --latest --filter app && cat packages/app/package.json # should update in specific package
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done
. | +2 +<repeat>
. | +2 +
Done in <variable>ms using pnpm v<semver>
{
"name": "app",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Done in <variable>ms using pnpm v<semver>
> vp rm testnpm2 # should remove package from dependencies for the next test
> vp add testnpm2@1.0.0 -O && vp update --no-optional --latest && cat package.json # should skip optional dependencies
Packages: +<variable>
+<repeat>
+
Progress: resolved <variable>, reused <variable>, downloaded <variable>, added <variable>, done

optionalDependencies:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
> git init
> vp migrate --no-interactive # migration should add git hooks setup
◇ Migrated . to Vite+<repeat>
◇ Migrated . to Vite+
• Node <semver> pnpm <semver>
• 2 config updates applied
• Git hooks configured
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
> vp migrate --agent claude --no-interactive # migration with --agent claude should write CLAUDE.md
◇ Migrated . to Vite+<repeat>
◇ Migrated . to Vite+
• Node <semver> pnpm <semver>
• 2 config updates applied

Expand Down
Loading
Loading