aboutsummaryrefslogtreecommitdiff
path: root/src/cli/create_command.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-21upgrade zig to `v0.11.0-dev.3737+9eb008717` (#3374)Gravatar Dylan Conway 1-16/+16
* progress * finish `@memset/@memcpy` update * Update build.zig * change `@enumToInt` to `@intFromEnum` and friends * update zig versions * it was 1 * add link to issue * add `compileError` reminder * fix merge * format * upgrade to llvm 16 * Revert "upgrade to llvm 16" This reverts commit cc930ceb1c5b4db9614a7638596948f704544ab8. --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-10feat(fetch) add redirect: 'error' support (#2845)Gravatar Ciro Spaciari 1-4/+4
* add redirect: 'error' support * fix typo * fix typo * refactor FetchRedirect enum * fix FetchRedirect * updated
2023-04-22Make `Bun.build` more reliable (#2718)Gravatar Jarred Sumner 1-2/+2
* One possible implementation to make `Bun.build` work better * Pass allocator in * Make our temporary buffers a little safer * rename * Fix memory corruption in symbol table * Add support for deferred idle events in ThreadPool * Free more memory * Use a global allocator FS cache * more `inline` * Make duping keys optional in StringMap * Close file handles more often * Update router.zig * wip possibly delete this commit * Fix memory issues and reduce memory usage * > 0.8 * Switch to AsyncIO.Waker and fix memory leak in JSBundleCompletionTask * We don't need to clone this actually * Fix error * Format * Fixup * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-19Fix broken autocompleteGravatar Jarred Sumner 1-6/+6
2023-04-09Remove usages of `void{}` in favor of `{}`Gravatar Jarred Sumner 1-10/+10
See https://github.com/ziglang/zig/issues/15213
2023-04-07feat(tls.Server) basic support (cert, key, rejectUnauthorized, requestCert, ↵Gravatar Ciro Spaciari 1-4/+4
ca) #2412 (#2552) * cherry picked * add StringOrBuffer parameter * Format and adds types * update uws * fix tests * more types * fix typing * add timeouts, clean some stuff * move tests to describe * fixes SSL hostname when Host is provided * cleanup on tests * change 127.0.0.1 to 0.0.0.0 * try another listening parameter * test timings and update uws * remove unnecessary comment * move listening event around * always await Bun.connect * do not fail if the tests already passed when using Bun.connect * regenerate classes * undo generated classes * generate classes * fix merge --------- Co-authored-by: cirospaciari <cirospaciari@MiWiFi-RA82-srv.cirospaciari>
2023-03-01Revert "Update clap (#2238)"Gravatar Jarred Sumner 1-22/+22
This reverts commit 7b9a17f9d7106ffd8e553a5192aba60d14ea5e9c.
2023-02-28Update clap (#2238)Gravatar Justin Whear 1-22/+22
* remove vendored clap * Update to latest zig-clap Major changes: * Instead of vendoring zig-clap and adding changes, this uses Hejsil/zig-clap directly as a submodule * `cli.zig` and related files have been updated to use new API (no more `flag()` or `option()`) * A workaround for the Run and Auto commands has been implemented that allows us to use the official upstream Minor change: * `-i` now has the long option `--install-fallback`; I didn't spend much time thinking about this name, so suggestions weclome. * deinit jsBundleArgs
2023-02-24prefer `bun.copy()` over `std.mem.copy()` (#2152)Gravatar Alex Lam S.L 1-4/+4
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 1-8/+8
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-01-17feat(cli): Support `HTTPS_PROXY`, `HTTP_PROXY`, and `NO_PROXY` #1440 (#1814)Gravatar Ciro Spaciari 1-44/+17
* WIP: http_proxy implemented, first steps for https_proxy #1440 * add HTTP_PROXY support to upgrade_command and WIP: tunneling * WIP async handshake, stuck on WANT_READ, try to defer + check * create and upgrade with proxy working, TLS and non-TLS to proxy TLS working * bun install/upgrade/create working with http(s)_proxy #1440 * add NO_PROXY support #1440 * remove commented code and add TODO * fix getHttpProxy no_proxy * fix formatting * refactor catch and getHttpProxy, fix empty strngs in env for proxy * allow optimization for handleResponseBody
2023-01-13move more thingsGravatar Jarred SUmner 1-4/+4
2023-01-13Split some things into more files and use bun namespace instead of import moreGravatar Jarred SUmner 1-1/+1
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-12/+22
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-12-06Fix glibc symbol version issues preventing `bun install` from being used in ↵Gravatar Jarred Sumner 1-9/+3
older glibc versions (#1580) * Prevent integer overflow in connectError * Add missing deepEquals() type to Bun * fix missing glibc symbols * Fix missing symbol issues * Try this * Update glibc-versions-hack.cpp * Update glibc-versions-hack.cpp * Update glibc-versions-hack.cpp Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-04[internal] Make string comparisons fasterGravatar Jarred Sumner 1-1/+1
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-7/+7
2022-09-16Make new HTTP client more stableGravatar Jarred Sumner 1-8/+22
2022-09-11New HTTP client (#1231)Gravatar Jarred Sumner 1-5/+23
* wip * It mostly works! * Support `bun install` * Support `bun create` * Support chunked transfer encoding * Handle Keep Alive when redirecting to a different domain Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-13Improve event loop reliability on LinuxGravatar Jarred SUmner 1-1/+1
2022-08-04[bun create] Allow custom `start` commandsGravatar Jarred Sumner 1-3/+14
2022-07-27[misc] Replace reference to old repoGravatar Jarred Sumner 1-3/+3
2022-07-10Merge pull request #464 from dkarter/mainGravatar Michell Brito 1-1/+1
fix: remove unnecessary quotes in commit message
2022-07-10Remove unnecessary `Output.flush`s before `Global.exit` and `Global.crash` ↵Gravatar r00ster91 1-22/+0
(#535) * fix: add missing newline * refactor: std.process.exit -> Global.exit * fix: std.os.abort -> Global.exit I'm not sure about this one. Please verify. * cleanup: remove unnecessary `Output.flush`s
2022-07-09fix: update build files to latest Zig versionGravatar sno2 1-8/+5
2022-07-08fix: remove unnecessary quotes in commit messageGravatar Dorian Karter 1-1/+1
These quotes are not necessary and appear literally in the commit
2022-07-05[create] Don't print timestamp because it formats weirdGravatar Jarred Sumner 1-3/+0
2022-07-01update cli comment to match the create next app instructionsGravatar Koka Easwarendra 1-1/+1
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-1/+1
2022-05-05E.String gets a RopeGravatar Jarred Sumner 1-26/+26
2022-03-30Bump target next version to 12.1.3Gravatar Jarred Sumner 1-1/+1
2022-03-17query_string_map -> urlGravatar Jarred Sumner 1-1/+1
2022-03-14fix crash in `bun create`Gravatar Jarred Sumner 1-3/+4
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-18/+18
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-9/+8
2022-02-27WASMGravatar Jarred Sumner 1-2/+2
2022-02-27[JSON] Use UTF-8 JSON parser when it's not for JavaScriptGravatar Jarred Sumner 1-1/+1
2022-02-25bump target nextjs versionGravatar Jarred Sumner 1-1/+1
2022-02-25[bun install] Add metadata hashGravatar Jarred Sumner 1-0/+2
2022-02-11`std.os.`exit -> `Global.exit` so stderr is always flushedGravatar Jarred Sumner 1-20/+20
2022-01-28Update AST layout to store capacity for itemsGravatar Jarred Sumner 1-33/+32
We want to be able to push to the list
2022-01-05Fix crash that sometimes happens after 30 secondsGravatar Jarred Sumner 1-4/+4
2022-01-04Improve how we detect if terminal colors are supportedGravatar Jarred Sumner 1-1/+2
2022-01-02copy: replace Bun with bun (#99)Gravatar luke miles 1-4/+4
Most CLI tools have the style convention of referring to themselves in lowercase. It is, after all, the name that users type in when using the tool. This PR maintains that convention in bun. "Drop the uppercase B, it's cleaner"
2021-12-30[internal] Move network_thread into http packageGravatar Jarred Sumner 1-1/+1
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-24/+23
* Prepare to upgrade zig * zig fmt * AllocGate * Update data_url.zig * wip * few files * just headers now? * I think everything works? * Update mimalloc * Update hash_map.zig * Perf improvements to compensate for Allocgate * Bump * :camera: * Update bun.lockb * Less branching * [js parser] Slightly reduce memory usage * Update js_parser.zig * WIP remove unused * [JS parser] WIP support for `with` keyword * Remove more dead code * Fix all the build errors! * cleanup * Move `network_thread` up * Bump peechy * Update README.md
2021-12-28Update create_command.zigGravatar Jarred Sumner 1-2/+1
2021-12-28Fix edgecase in `bun create` tasksGravatar Jarred Sumner 1-6/+2
2021-12-27Prepare to run unit tests & remove some dead code (#92)Gravatar Jarred Sumner 1-1/+1
* Remove some dead code * :skull: code * Fix the zig tests * [JS Printer] Print integers faster & less scientific notation on decimals * :skull: dead code * skip * Run all the unit tests
2021-12-24Fix rare crash when new thread is created, possibly only on muslGravatar Jarred Sumner 1-2/+1