forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli):
deno init --lib
(denoland#22499)
Closes denoland#22287 Co-authored-by: Asher Gomez <[email protected]> Co-authored-by: David Sherret <[email protected]>
- Loading branch information
1 parent
9776a13
commit ff5163a
Showing
9 changed files
with
232 additions
and
68 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"tempDir": true, | ||
"steps": [{ | ||
"args": "init --lib project", | ||
"output": "init.out" | ||
}, { | ||
"cwd": "project", | ||
"args": "test", | ||
"output": "test.out" | ||
}, { | ||
"cwd": "project", | ||
"args": "publish --dry-run", | ||
"output": "dry_publish.out", | ||
"exitCode": 1 | ||
}] | ||
} |
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,7 @@ | ||
Check file:https:///[WILDLINE]/mod.ts | ||
Checking for slow types in the public API... | ||
Check file:https:///[WILDLINE]/mod.ts | ||
error: Failed preparing 'project'. | ||
|
||
Caused by: | ||
Invalid package name, use '@<scope_name>/<package_name> format |
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,14 @@ | ||
✅ Project initialized | ||
|
||
Run these commands to get started | ||
|
||
cd project | ||
|
||
# Run the tests | ||
deno test | ||
|
||
# Run the tests and watch for file changes | ||
deno task dev | ||
|
||
# Publish to JSR (dry run) | ||
deno publish --dry-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,14 @@ | ||
Download https://127.0.0.1:4250/@std/assert/meta.json | ||
Download https://127.0.0.1:4250/@std/assert/0.220.1_meta.json | ||
[UNORDERED_START] | ||
Download https://127.0.0.1:4250/@std/assert/0.220.1/mod.ts | ||
Download https://127.0.0.1:4250/@std/assert/0.220.1/assert_equals.ts | ||
Download https://127.0.0.1:4250/@std/assert/0.220.1/assert.ts | ||
Download https://127.0.0.1:4250/@std/assert/0.220.1/fail.ts | ||
[UNORDERED_END] | ||
Check file:https:///[WILDLINE]/mod_test.ts | ||
running 1 test from ./mod_test.ts | ||
addTest ... ok ([WILDLINE]) | ||
|
||
ok | 1 passed | 0 failed ([WILDLINE]) | ||
|