Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Module upload format + custom build commands + durable object support #1677

Merged
merged 5 commits into from
Feb 25, 2021

Commits on Feb 25, 2021

  1. rename build_dir to package_dir

    reasoning: package_dir is where package.json is, I'm not sure why to
    call it build_dir when it's not the directory where we output build artifacts.
    we may want to use build_dir in the future, such as for custom build config
    xortive committed Feb 25, 2021
    Configuration menu
    Copy the full SHA
    98466c7 View commit details
    Browse the repository at this point in the history
  2. Squashed commit of the following:

    commit e648284
    Author: [email protected] <[email protected]>
    Date:   Tue Dec 15 10:56:36 2020 -0600
    
        better build logging
    
    commit a271ffc
    Author: [email protected] <[email protected]>
    Date:   Mon Dec 14 11:45:41 2020 -0600
    
        add script-format field, remove Option<T> from builder config
    
    commit 193ba02
    Author: [email protected] <[email protected]>
    Date:   Fri Dec 11 13:53:30 2020 -0600
    
        coalesce bundler TargetType under javascript, using config to distinguish
    
    commit db9c356
    Author: [email protected] <[email protected]>
    Date:   Fri Dec 11 15:09:39 2020 -0600
    
        rename bundle_config to builder_config, and related names
    
    commit e5780a0
    Author: [email protected] <[email protected]>
    Date:   Fri Dec 11 13:22:14 2020 -0600
    
        remove check linter
    
    commit 1c3b588
    Merge: 2a3b5b3 cbbed17
    Author: [email protected] <[email protected]>
    Date:   Fri Dec 11 13:02:33 2020 -0600
    
        Merge remote-tracking branch 'caass/master' into malonso/modules-do
    
    commit cbbed17
    Author: Cassandra Fridkin <[email protected]>
    Date:   Tue Nov 3 00:47:05 2020 -0500
    
        Rewrite gzip buffer-building strategy to maybe be friendlier to rayon
    
    commit eeb38cf
    Author: Cassandra Fridkin <[email protected]>
    Date:   Tue Nov 3 00:20:53 2020 -0500
    
        forgot to run clippy again lol
    
    commit 6cba17b
    Merge: b000958 04584e5
    Author: Cassandra Fridkin <[email protected]>
    Date:   Tue Nov 3 00:10:03 2020 -0500
    
        Merge branch 'cloudflare' into master
    
    commit b000958
    Author: Cassandra Fridkin <[email protected]>
    Date:   Tue Nov 3 00:07:17 2020 -0500
    
        Apply suggestions from code review
    
        - Check total bundle size, not individual files
        - Replace hyphens with underscores in wrangler.toml
        - Rename MAX_FILE_SIZE to MAX_BUNDLE_SIZE
        - Duplicate comment about swc_common::SourceMap vs sourcemap::SourceMap
        - rename entry & entry_file to module & module_path
    
    commit 000a79c
    Author: Cassandra Fridkin <[email protected]>
    Date:   Thu Oct 29 13:42:40 2020 -0400
    
        Fix clippy warnings
    
    commit d84f01b
    Author: Cassandra Fridkin <[email protected]>
    Date:   Thu Oct 29 13:19:39 2020 -0400
    
        Add some documentation
    
    commit 90c3489
    Merge: 448cf1e 11fe7c1
    Author: Cassandra Fridkin <[email protected]>
    Date:   Thu Oct 29 12:45:07 2020 -0400
    
        Merge branch 'cloudflare' into master
    
    commit 448cf1e
    Author: Cassandra Fridkin <[email protected]>
    Date:   Thu Oct 29 12:39:34 2020 -0400
    
        Rewrite our validation strategy one last time
    
        Everything compiles now, which is nice. We just need to actually
        implement Lintable for JavaScript and we should have version one ready
        to go.
    
    commit ea1880e
    Author: Cassandra Fridkin <[email protected]>
    Date:   Sat Oct 17 22:52:11 2020 -0400
    
        Things might be broken-er in this commit
    
        But we're going for the restructure. again. round four. this time,
        with macros. because i'm sick of defining Lintable for all of these
        structs
    
    commit 031329c
    Author: Cassandra Fridkin <[email protected]>
    Date:   Sun Oct 4 00:00:10 2020 -0400
    
        Add another monstrosity of a switch statement for expressions
    
        I guess...now I just have to...implement Lintable for all these
        different types of expressions...yippee...
    
    commit b3bfde3
    Author: Cassandra Fridkin <[email protected]>
    Date:   Sat Oct 3 16:09:59 2020 -0400
    
        Clean up some TODOs because we did them
    
    commit 0ace2ac
    Author: Cassandra Fridkin <[email protected]>
    Date:   Sat Oct 3 11:23:45 2020 -0400
    
        Define Lintable, Parseable, and Validate traits
    
        I keep making tons of changes without committing but I think that it
        seems bigger than it actually is -- mostly what I've done here is
        define a few traits
    
        Lintable: a struct is able to lint itself with a given argument to check against
        Parseable: a struct is able to create Self from a given input
        Validate: a struct satisfies both Lintable and Parseable
    
        The JS boilerplate is mostly done -- since we actually want to lint expressions,
        and not statements, the bulk of the code at the moment is just about
        getting to the expressions in each statement. Essentially a glorifed
        switch case with a little recursion mixed in.
    
        The webassembly is all todo!(), i just wanted to get typechecking working.
    
        Basically, this is just yet another commit before we actually parse any
        AST. But I did write some documentation, which is cool.
    
    commit 2ba95fb
    Author: Cassandra Fridkin <[email protected]>
    Date:   Wed Sep 30 23:13:10 2020 -0400
    
        Add some tests
    
        Looks like we will have to wait until the next commit to parse any AST
    
    commit 409063e
    Merge: 9da3a2e d6068cc
    Author: Cassandra Fridkin <[email protected]>
    Date:   Wed Sep 30 20:53:06 2020 -0400
    
        Merge branch 'cloudflare' into master
    
    commit 9da3a2e
    Author: Cassandra Fridkin <[email protected]>
    Date:   Wed Sep 30 20:47:08 2020 -0400
    
        Load the AST & restructure BundlerOutput for the last time
    
        This restructuring is because I think it makes more sense to
        have each FileType run its own checks. This also cleanly bridges
        between the functions in `js.rs` and `wasm.rs` and the BundlerOutput
        struct in `mod.rs`.
    
    commit e23f88d
    Author: Cassandra Fridkin <[email protected]>
    Date:   Tue Sep 29 16:36:23 2020 -0400
    
        Restructure a little bit and mess things up with async
    
        I think it makes sense to actually create a `Bundler` struct because
        like...eventually in my head it makes sense to have one `Bundler`
        instance that you could like pass around in `wrangler dev` or
        whatever.
    
        I think most of the codebase is more functional-y but i'm sure someone
        will tell me if this is not the preferred style to do this in.
    
        How many more commits can I make before I have to actually parse any
        javascript? Let's find out, shall we?
    
    commit 0fec4d4
    Author: Cassandra Fridkin <[email protected]>
    Date:   Mon Sep 28 00:21:24 2020 -0400
    
        Add a few tests I suppose, and comment out constants we're not using yet
    
    commit e5b4049
    Author: Cassandra Fridkin <[email protected]>
    Date:   Sun Sep 27 23:18:51 2020 -0400
    
        Add "None"s for bundle config so rustc stops complaining
    
    commit 7dafd73
    Author: Cassandra Fridkin <[email protected]>
    Date:   Sun Sep 27 23:17:06 2020 -0400
    
        Preliminary "file exists" checks
    
        Also, use the nice AsRef<Path> idiom that works so well
    
    commit 67bfc70
    Author: Cassandra Fridkin <[email protected]>
    Date:   Thu Sep 24 20:07:24 2020 -0400
    
        Add bundle as a target
    
        I think...at least...that that's what this commit does. Def starting
        to get into "oh god i hope i don't break anything" territory.
    
    commit 5f41321
    Author: Cassandra Fridkin <[email protected]>
    Date:   Thu Sep 24 15:36:56 2020 -0400
    
        Add "bundle" type
    
        Not sure *exactly* what this does but i basically just copied the
        parts i thought were relevant from the site code. We have a src dir,
        which is what needs to be watched, and an output dir, which is what
        needs to be analyzed, and a build command, which is what needs to be
        run when we wanna run the build.
    
    commit efd3a44
    Author: Cassandra Fridkin <[email protected]>
    Date:   Tue Sep 22 22:10:26 2020 -0400
    
        trivial commit so i can PR
    
        literally does nothing except break things :blushing:
    xortive committed Feb 25, 2021
    Configuration menu
    Copy the full SHA
    cdba3a4 View commit details
    Browse the repository at this point in the history
  3. cleanup: separate out service-worker form building logic

    move service_worker specific metadata to service_worker.rs
    xortive committed Feb 25, 2021
    Configuration menu
    Copy the full SHA
    c28e9fe View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    525eb02 View commit details
    Browse the repository at this point in the history
  5. use toml-edit for modifying provided wrangler.toml for wrangler gener…

    …ate so format is preserved (#1745)
    xortive committed Feb 25, 2021
    Configuration menu
    Copy the full SHA
    9265785 View commit details
    Browse the repository at this point in the history