-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: Support task scripts (as an alternative to commands). (#1530)
* Add script field. * Add builder tests. * Test tokens. * Fix cache. * Fix lints. * Fix tests. * Add tests. * Add tests. * Update tests.
- Loading branch information
Showing
63 changed files
with
839 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
crates/cli/tests/snapshots/run_bun_test__bun__runs_script_task.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
source: crates/cli/tests/run_bun_test.rs | ||
expression: assert.output() | ||
--- | ||
▪▪▪▪ bun:viaScript | ||
bun platform | ||
1.1.3 | ||
▪▪▪▪ bun:viaScript (100ms) | ||
|
||
Tasks: 1 completed | ||
Time: 100ms |
13 changes: 13 additions & 0 deletions
13
crates/cli/tests/snapshots/run_deno_test__deno__runs_script_task.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
source: crates/cli/tests/run_deno_test.rs | ||
expression: assert.output() | ||
--- | ||
▪▪▪▪ deno:viaScript | ||
deno platform | ||
deno 1.40.0 (release, aarch64-apple-darwin) | ||
v8 12.1.285.6 | ||
typescript 5.3.3 | ||
▪▪▪▪ deno:viaScript (100ms) | ||
|
||
Tasks: 1 completed | ||
Time: 100ms |
12 changes: 12 additions & 0 deletions
12
crates/cli/tests/snapshots/run_node_test__bun__runs_script_task.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
source: crates/cli/tests/run_node_test.rs | ||
expression: assert.output() | ||
--- | ||
▪▪▪▪ bun:viaScript | ||
node+bun platform | ||
v18.0.0 | ||
1.1.19 | ||
▪▪▪▪ bun:viaScript (100ms) | ||
|
||
Tasks: 1 completed | ||
Time: 100ms |
12 changes: 12 additions & 0 deletions
12
crates/cli/tests/snapshots/run_node_test__npm__runs_script_task.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
source: crates/cli/tests/run_node_test.rs | ||
expression: assert.output() | ||
--- | ||
▪▪▪▪ npm:viaScript | ||
node+npm platform | ||
v18.0.0 | ||
8.0.0 | ||
▪▪▪▪ npm:viaScript (100ms) | ||
|
||
Tasks: 1 completed | ||
Time: 100ms |
12 changes: 12 additions & 0 deletions
12
crates/cli/tests/snapshots/run_node_test__pnpm__runs_script_task.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
source: crates/cli/tests/run_node_test.rs | ||
expression: assert.output() | ||
--- | ||
▪▪▪▪ pnpm:viaScript | ||
node+pnpm platform | ||
v18.0.0 | ||
7.5.0 | ||
▪▪▪▪ pnpm:viaScript (100ms) | ||
|
||
Tasks: 1 completed | ||
Time: 100ms |
11 changes: 11 additions & 0 deletions
11
crates/cli/tests/snapshots/run_node_test__runs_script_task.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
source: crates/cli/tests/run_node_test.rs | ||
expression: assert.output() | ||
--- | ||
▪▪▪▪ node:viaScript | ||
node platform | ||
v18.0.0 | ||
▪▪▪▪ node:viaScript (100ms) | ||
|
||
Tasks: 1 completed | ||
Time: 100ms |
12 changes: 12 additions & 0 deletions
12
crates/cli/tests/snapshots/run_node_test__yarn1__runs_script_task.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
source: crates/cli/tests/run_node_test.rs | ||
expression: assert.output() | ||
--- | ||
▪▪▪▪ yarn1:viaScript | ||
node+yarn1 platform | ||
v18.0.0 | ||
1.22.0 | ||
▪▪▪▪ yarn1:viaScript (100ms) | ||
|
||
Tasks: 1 completed | ||
Time: 100ms |
Oops, something went wrong.