forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(task): run
npm run
commands with Deno more often (denoland#23794)
Closes denoland#23036
- Loading branch information
Showing
7 changed files
with
143 additions
and
37 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
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,17 @@ | ||
{ | ||
"tests": { | ||
"uses_deno_no_flags": { | ||
"args": "task test", | ||
"output": "task_test.out" | ||
}, | ||
"uses_npm_flags": { | ||
"args": "task test_using_npm", | ||
"output": "task_test_using_npm.out", | ||
"exitCode": 1 | ||
}, | ||
"npm_run": { | ||
"args": "task npm_run", | ||
"output": "task_npm_run.out" | ||
} | ||
} | ||
} |
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 @@ | ||
{ | ||
"tasks": { | ||
"echo": "echo 'Hello, World!'", | ||
// should use the task from package.json and not the one above | ||
"test": "npm run echo hi there", | ||
// currently this will execute using the actual `npm run` because we | ||
// haven't implemented the flags for `npm run` yet | ||
"test_using_npm": "npm run non_existent -- --ignore-scripts", | ||
"npm_run": "npm run" | ||
} | ||
} |
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,5 @@ | ||
{ | ||
"scripts": { | ||
"echo": "echo" | ||
} | ||
} |
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,2 @@ | ||
Task npm_run npm run | ||
Scripts available [WILDCARD] |
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,3 @@ | ||
Task test npm run echo hi there | ||
Task echo echo "hi" "there" | ||
hi there |
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,3 @@ | ||
Task test_using_npm npm run non_existent -- --ignore-scripts | ||
npm [WILDLINE] Missing script: "non_existent" | ||
[WILDCARD] |