summaryrefslogtreecommitdiff
path: root/cli/main.rs
AgeCommit message (Collapse)Author
2020-01-05Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600)Ry Dahl
2019-09-16Move integration tests to //cli/tests/ (#2964)Ryan Dahl
This ensures the deno executable is properly created before running the integration tests. Also allows deno_cli to be used as a lib. Docs are now properly generated: https://docs.rs/deno_cli/0.18.4/deno_cli/ Towards #2933 Prep for #2955
2019-09-15Make deno_cli installable via crates.io (#2946)Ryan Dahl
- Fixes cargo publish on deno_typescript, deno_cli_snapshots, and deno_cli. - Combines cli_snapshots and js into one directory. - Extracts TS version at compile time rather than runtime - Bumps version awkwardly - it was necessary to test end-to-end publishing. Sorry. - Adds git submodule deno_typescript/typescript
2019-09-15Rename ansi.rs to colors.rs (#2956)Tomohito Nakayama
2019-09-10feat: Make integration tests rust unit tests (#2884)Bartek Iwańczuk
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2019-09-10fix: replace bad rid panics with errors (#2870)Bartek Iwańczuk
2019-09-03Handle typescript version in rust (#2855)Yoshiya Hinosawa
2019-09-02Refactor snapshot build (#2825)Ryan Dahl
Instead of using core/snapshot_creator.rs, instead two crates are introduced which allow building the snapshot during build.rs. Rollup is removed and replaced with our own bundler. This removes the Node build dependency. Modules in //js now use Deno-style imports with file extensions, rather than Node style extensionless imports. This improves incremental build time when changes are made to //js files by about 40 seconds.
2019-09-01Remove DenoSubcommand::Install (#2846)Nayeem Rahman
2019-08-30Remove ts_library_builder, maintain lib.deno_runtime.d.ts by hand (#2827)Ryan Dahl
2019-08-26bring back json ops (#2815)Bartek Iwańczuk
2019-08-24Revert json ops (#2814)Ryan Dahl
* Revert "port more ops to JSON (#2809)" This reverts commit 137f33733d365026903d40e7cde6e34ac6c36dcf. * Revert "port ops to JSON: compiler, errors, fetch, files (#2804)" This reverts commit 79f82cf10ed1dbf91346994250d7311a4d74377a. * Revert "Port rest of os ops to JSON (#2802)" This reverts commit 5b2baa5c990fbeae747e952c5dcd7a5369e950b1.
2019-08-24port ops to JSON: compiler, errors, fetch, files (#2804)Bartek Iwańczuk
2019-08-22introduce JSON serialization for ops (#2799)Ryan Dahl
Converts env(), exit(), execPath(), utime() and utimeSync() to use JSON instead of flatbuffers.
2019-08-21Organize dispatch a bit (#2796)Ryan Dahl
Just some clean up reorganization around flatbuffer/minimal dispatch code. This is prep for adding a JSON dispatcher.
2019-08-16Revert "Remove dead code: legacy read/write ops"Ryan Dahl
This is causing a segfault for unknown reasons - see #2787. This reverts commit 498f6ad431478f655b136782093e19e29248b24d.
2019-08-15Fix import map panics, use import map's location as its base URL (#2770)Nayeem Rahman
2019-08-14Remove dead code: legacy read/write ops (#2776)Ryan Dahl
readSync and writeSync use dispatch_minimal now.
2019-08-11feat: print cache location when no arg in deno info (#2752)Bartek Iwańczuk
2019-08-05Provide option to delete Deno namespace in worker (#2717)Kevin (Kun) "Kassimo" Qian
2019-07-31Use system rustfmt instead of fixed binary (#2701)Ryan Dahl
2019-07-31refactor: cleanup compiler pipeline (#2686)Bartek Iwańczuk
* remove fetch_source_file_and_maybe_compile_async and replace it with State.fetch_compiled_module * remove SourceFile.js_source() * introduce CompiledModule which is basically the same as deno::SourceInfo and represents arbitrary file that has been compiled to JS module * introduce //cli/compilers module containing all compilers * introduce JsCompiler which is a no-op compiler - output is the same as input, no compilation takes place - it is used for MediaType::JavaScript and MediaType::Unknown * introduce JsonCompiler that wraps JSON in default export * support JS-to-JS compilation using checkJs
2019-07-31Add --current-thread flag (#2702)Bartek Iwańczuk
2019-07-31factor out FileFetcher to separate module (#2683)Bartek Iwańczuk
* merge SourceFileFetcher trait and FileFetcher struct * move logic related to source file fetching to //cli/file_fetcher.rs * use Result when creating new ThreadSafeState
2019-07-17Refactor DenoDir (#2636)Bartek Iwańczuk
* rename `ModuleMetaData` to `SourceFile` and remove TS specific functionality * add `TsCompiler` struct encapsulating processing of TypeScript files * move `SourceMapGetter` trait implementation to `//cli/compiler.rs` * add low-level `DiskCache` API for general purpose caches and use it in `DenoDir` and `TsCompiler` for filesystem access * don't use hash-like filenames for compiled modules, instead use metadata file for storing compilation hash * add `SourceFileCache` for in-process caching of loaded files for fast subsequent access * define `SourceFileFetcher` trait encapsulating loading of local and remote files and implement it for `DenoDir` * define `use_cache` and `no_fetch` flags on `DenoDir` instead of using in fetch methods
2019-07-16Support window.onload (#2643)Yoshiya Hinosawa
2019-07-11Refactor error to use dynamic dispatch and traitsBert Belder
This is in preperation for dynamic import (#1789), which is more easily implemented when errors are dynamic.
2019-06-26feat: deno completions command (#2577)Bartek Iwańczuk
2019-06-25Port code from Cargo and use for progressRyan Dahl
A lot of its functionality is unused still, but the goal it to slowly migrate logging functionality to it. There is also a useful progress bar which can be ported over later - it depends on this module. https://github.com/rust-lang/cargo/blob/4c1fa54d10f58d69ac9ff55be68e1b1c25ecb816/src/cargo/util/progress.rs
2019-06-24refactor: use Path/PathBuf in deno dir (#2559)Bartek Iwańczuk
2019-06-22feat: log permission access (#2518)Bartek Iwańczuk
Replaces -D/--log-debug flag with --log-level=debug --log-level=info displays permission access
2019-06-19Combine CLI Errors (#2487)Kitson Kelly
2019-06-14feat: add deno install command (#2522)Bartek Iwańczuk
2019-06-12Move ModuleSpecifier to //core (#2509)Bartek Iwańczuk
2019-06-12Refactor module resolving (#2493)Bartek Iwańczuk
Adds ModuleSpecifier, which wraps a URL. This is now passed around instead of specifier and resolver strings.
2019-06-11Move Modules to ThreadSafeState (#2498)Ryan Dahl
2019-06-09feat: Import maps (#2360)Bartek Iwańczuk
2019-06-08Add 'bundle' subcommand. (#2467)Kitson Kelly
2019-06-08Remove tokio_util::block_on dep in compile_async and other cleanupgurv-s
2019-06-08Make print_file_info asyncgurv-s
2019-06-05RecursiveLoad shouldn't own the Isolate (#2453)Ryan Dahl
This patch makes it so that RecursiveLoad doesn't own the Isolate, so Worker::execute_mod_async does not consume itself. Previously Worker implemented Loader, but now ThreadSafeState does. This is necessary preparation work for dynamic import (#1789) and import maps (#1921)
2019-06-04Handle compiler diagnostics in Rust (#2445)Kitson Kelly
2019-05-25add module and line no for Rust logger (#2409)Bartek Iwańczuk
2019-05-17Add crypto.getRandomValues() (#2327)chiefbiiko
2019-05-17Don't print new line if progress bar was not used (#2374)Bartek Iwańczuk
2019-05-11Add progress bar (#2309)Ryan Dahl
2019-05-03fix: deno version panic (#2286)Bartek Iwańczuk
2019-05-03add "deno run" subcommand (#2215)Bartek Iwańczuk
2019-05-03feat(cli cmd): deno xeval (#2260)Kevin (Kun) "Kassimo" Qian
2019-05-03Fix: deno --v8-options does not print v8 options (#2277)Bartek Iwańczuk