Skip to content
Draft
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
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ jobs:
# Pin Rust tooling paths to avoid $HOME mismatch issues.
CARGO_HOME: /root/.cargo
RUSTUP_HOME: /root/.rustup
# `-crt-static`: vite-task's `fspy_preload_unix` cdylib (unconditional
# build-dep since voidzero-dev/vite-task#344) can't link against a
# static musl libc. vite+ ships as a NAPI module that links musl libc
# dynamically anyway, so matching here is correct.
# Must mirror `.cargo/config.toml` rustflags — RUSTFLAGS env overrides
# both [build] and [target.*] levels.
RUSTFLAGS: --cfg tokio_unstable -C link-args=-Wl,--warn-unresolved-symbols -C target-feature=-crt-static
steps:
- name: Install Alpine dependencies
shell: sh {0}
Expand Down
77 changes: 39 additions & 38 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ dunce = "1.0.5"
fast-glob = "1.0.0"
flate2 = { version = "=1.1.9", features = ["zlib-rs"] }
form_urlencoded = "1.2.1"
fspy = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "954cd3bead71be4ddc1e3183110d713bbe26286b" }
fspy = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "26021ca154c9de676b3a37ff415f7a9a821e03a9" }
futures = "0.3.31"
futures-util = "0.3.31"
glob = "0.3.2"
Expand Down Expand Up @@ -194,16 +194,16 @@ vfs = "0.13.0"
vite_command = { path = "crates/vite_command" }
vite_error = { path = "crates/vite_error" }
vite_js_runtime = { path = "crates/vite_js_runtime" }
vite_glob = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "954cd3bead71be4ddc1e3183110d713bbe26286b" }
vite_glob = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "26021ca154c9de676b3a37ff415f7a9a821e03a9" }
vite_install = { path = "crates/vite_install" }
vite_migration = { path = "crates/vite_migration" }
vite_setup = { path = "crates/vite_setup" }
vite_shared = { path = "crates/vite_shared" }
vite_static_config = { path = "crates/vite_static_config" }
vite_path = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "954cd3bead71be4ddc1e3183110d713bbe26286b" }
vite_str = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "954cd3bead71be4ddc1e3183110d713bbe26286b" }
vite_task = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "954cd3bead71be4ddc1e3183110d713bbe26286b" }
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "954cd3bead71be4ddc1e3183110d713bbe26286b" }
vite_path = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "26021ca154c9de676b3a37ff415f7a9a821e03a9" }
vite_str = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "26021ca154c9de676b3a37ff415f7a9a821e03a9" }
vite_task = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "26021ca154c9de676b3a37ff415f7a9a821e03a9" }
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "26021ca154c9de676b3a37ff415f7a9a821e03a9" }
walkdir = "2.5.0"
wax = "0.6.0"
which = "8.0.0"
Expand Down
21 changes: 17 additions & 4 deletions packages/cli/snap-tests/npm-install-with-options/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,28 @@ Run "npm help install" for more info
> vp run install # https://docs.npmjs.com/cli/v10/commands/npm-install
$ vp install --production --silent

---
vp run: npm-install-with-options#install not cached because it modified its input. (Run `vp run --last-details` for full details)

> ls node_modules
@oxlint
tslib

> vp run install # install again hit cache
$ vp install --production --silent
$ vp install --production --silent ◉ cache hit, replaying

---
vp run: npm-install-with-options#install not cached because it modified its input. (Run `vp run --last-details` for full details)
vp run: cache hit, <variable>ms saved.

> vp run --last-details

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total

Task Details:
────────────────────────────────────────────────
[1] npm-install-with-options#install: $ vp install --production --silent ✓
→ Cache hit - output replayed - <variable>ms saved
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
3 changes: 2 additions & 1 deletion packages/cli/snap-tests/npm-install-with-options/steps.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"vp install --help # print help message",
"vp run install # https://docs.npmjs.com/cli/v10/commands/npm-install",
"ls node_modules",
"vp run install # install again hit cache"
"vp run install # install again hit cache",
"vp run --last-details"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default {
tasks: {
install: {
command: 'vp install --production --silent',
input: [{ auto: true }, '!node_modules/**', '!package-lock.json'],
},
},
},
Expand Down
Loading