0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00
denoland-deno/cli/tests/integration
Leo Kettmeir 1ffbd56164
feat: add "deno init" subcommand (#15469)
This adds an init subcommand to that creates a project starter similar to cargo init.

```
$ deno init my_project
Project initialized
Run these commands to get started:
  cd my_project
  deno run main.ts
  deno run main_test.ts
$ deno run main.ts
Add 2 + 3 5
$ cat main.ts
export function add(a: number, b: number): number {
  return a + b;
}
if (import.meta.main) {
  console.log("Add 2 + 3", add(2, 3));
}
$ cat main_test.ts
import { assertEquals } from "https://deno.land/std@0.151.0/testing/asserts.ts";
import { add } from "./main.ts";
Deno.test(function addTest() {
    assertEquals(add(2, 3), 5);
});
```

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-08-20 01:37:05 +02:00
..
bench_tests.rs feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
bundle_tests.rs chore(test_util): add new string assertion macros (#14928) 2022-06-21 15:25:07 -04:00
cache_tests.rs feat: no type-check by default (#14691) 2022-06-13 23:13:16 +02:00
check_tests.rs perf: use emit from swc instead of tsc (#15118) 2022-07-12 18:58:39 -04:00
compat_tests.rs chore: temporarily disable op_require_read_file (#15433) 2022-08-09 17:28:13 -04:00
compile_tests.rs feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
coverage_tests.rs fix(coverage): ensure coverage is only collected in certain situations (#15467) 2022-08-12 15:21:17 -04:00
doc_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
eval_tests.rs feat: no type-check by default (#14691) 2022-06-13 23:13:16 +02:00
fmt_tests.rs fix(fmt): ignore node_modules directory (#14943) 2022-06-23 01:17:49 +02:00
info_tests.rs feat: emit files on demand and fix racy emit (#15220) 2022-07-19 11:58:18 -04:00
init_tests.rs feat: add "deno init" subcommand (#15469) 2022-08-20 01:37:05 +02:00
inspector_tests.rs feat: no type-check by default (#14691) 2022-06-13 23:13:16 +02:00
install_tests.rs chore(test_util): add new string assertion macros (#14928) 2022-06-21 15:25:07 -04:00
lint_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
lsp_tests.rs docs: add category tag for built-in APIs (#15480) 2022-08-17 13:12:24 +10:00
mod.rs feat: add "deno init" subcommand (#15469) 2022-08-20 01:37:05 +02:00
repl_tests.rs chore: fix pty_complete_imports test on linux/mac (#15191) 2022-07-13 10:49:14 -04:00
run_tests.rs fix(cli): allow configurations files to also be json modules (#15444) 2022-08-11 07:33:42 +10:00
task_tests.rs fix(task): resolve deno configuration file first from specified --cwd arg (#15257) 2022-07-20 10:36:14 -04:00
test_tests.rs fix(test): output parallel test results independently (#15399) 2022-08-04 12:38:40 -04:00
upgrade_tests.rs chore(tests): use custom temp dir creation for the tests (#14153) 2022-04-01 11:15:37 -04:00
vendor_tests.rs chore: use Rust 1.62.0 (#15028) 2022-07-01 15:28:06 +02:00
watcher_tests.rs fix(cli): Improve error message in watch mode (#15184) 2022-07-13 22:01:09 +02:00
worker_tests.rs refactor: Remove PrettyJsError and js_error_create_fn (#14378) 2022-04-27 01:06:10 +02:00