Skip to content
Permalink
Tree: d4cae6e719
Commits on Nov 26, 2019
  1. Pug (#465)

    vilarfg authored and fkling committed Nov 26, 2019
    * feat(parsers): Pug support
    
    * bug(pug): fixed `getNodeName` logic
    
    * Fix eslint issues
  2. feature: add regjsparser (#439)

    JLHwung authored and fkling committed Nov 26, 2019
    * feat: add regjsparser
    
    * docs: add link to regjsparser
    
    * revert try catch
Commits on Nov 14, 2019
  1. Update GitHub commit link

    fkling committed Nov 14, 2019
    This will show the history view up that commit, instead of the commit itself,
    which is probably more useful.
  2. Fix staging pipeline

    fkling committed Nov 14, 2019
Commits on Nov 13, 2019
  1. Split parser related code into separate bundle

    fkling committed Nov 13, 2019
    The parsers themselves are already lazy loaded, but the parser adapters
    are currently bundled with the app. The app doesn't change as often as
    parser adapters do, so it makes sense to split them out.
    
    Of course that still means that the whole file changes if a single
    parser is updated, but that situation cannot really be improved until
    parsers are build and bundled in isolation.
  2. Link to commit on GitHub

    fkling committed Nov 13, 2019
    This allows people to see which changes are in the version of the site
    they are seeing.
  3. Add additional build stage

    fkling committed Nov 13, 2019
    To prevent any issues that could happen with the production build, I'm
    adding an additional stage to the build pipeline. A development build of
    master is now automatically deployed to https://master.astexplorer.net.
    
    A production build is deployed manually first to
    https://staging.astexplorer.net where it can be reviewed. If all is OK
    it can be manually deployed to production.
Commits on Nov 10, 2019
  1. feat: Go support (#459)

    DanSnow authored and fkling committed Nov 10, 2019
  2. Add Tenko to the hall of fame (#458)

    pvdz authored and fkling committed Nov 10, 2019
Commits on Nov 9, 2019
  1. [dev] Fix webpack config

    fkling committed Nov 9, 2019
    Looks like `splitChunks.name == false` prevents the chunks from being
    built/emitted *shrug*.
Commits on Nov 8, 2019
  1. [dev|typescript-eslint] Fix build by removing legacy parser

    fkling committed Nov 8, 2019
    Build is broken because the parser tries to load a file from inside
    `eslint/` which doesn't exist anymore.
    
    This wouldn't be a problem if parsers were built in isolation.
  2. [dev] Fix build

    fkling committed Nov 8, 2019
    Removing the `packages/` folder broke the webpack build. I didn't notice
    this locally because the folder still existed but was empty.
    
    While doing that I also inspected the generated bundles and noticed that
    there where modules imported into the main bundle which should be lazy
    loaded instead.
  3. [dev] Fix eslint issues

    fkling committed Nov 8, 2019
  4. [dev] Upgrade eslint dev dependency

    fkling committed Nov 8, 2019
    Yarn seems to have problems installing eslint4 and eslint since both
    refer to the same package. The result is that there is no
    `node_modules/eslint` folder and plugins fail.
    
    Of course just upgrading to the latest version is not a long term
    solution since we would run into the same issue if we add a `eslint6`
    package. The real solution is decoupling parser/transformer bundles from
    the website.
  5. [p:traceur] Fix line endings

    fkling committed Nov 8, 2019
  6. [parsers] Upgrade typescript and @typescript-eslint/parser

    fkling committed Nov 8, 2019
    I needed to remove the rule-tester file from the blacklist, otherwiser
    @typescript-eslint/parser would throw an error.
  7. [typescript] Blacklist file property

    fkling committed Nov 8, 2019
    This property contains a circular dependency which causes astexplorer to
    crash (infinite recursion in `hasChildrenInRange`).
Commits on Nov 6, 2019
  1. Update `yaml` parser to `^1.7.2` (from `^1.0.3`) (#452)

    G-Rath authored and fkling committed Nov 6, 2019
Commits on Oct 31, 2019
  1. Bump cache breaker

    fkling committed Oct 31, 2019
  2. Update ember-template-recast to v3.2.8. (#449)

    rwjblue authored and fkling committed Oct 31, 2019
  3. Disable retainLines in babel7 output (#447)

    jridgewell authored and fkling committed Oct 31, 2019
    Using retain lines causes some really ugly printing when the transform replaces nodes. The [https://astexplorer.net/#/gist/cfe3629169c8b47714064648e372c265/cc5b0e00d9dee45a53fc55f280be0cb36d53028b](example) I have on hand has the `you` variable adding several newlines to keep the same sourceline location. The `_template` function which is injected is also really ugly to look at.
    
    Compare that with the output when `retainLines` is set to false (look for the commented out `pre()` block). Babel uses a rudimentary pretty-printer by default.
  4. Start using GitLab CI

    fkling committed Oct 30, 2019
    I recently started using GitLab, mostly for work, and I really started
    to like the features it offers. While I cannot migrate the astexplorer
    repo just yet, I'm going to mirror it to take advantage of those
    features.
    
    I expect most contributions to still be coming GitHub for now.
Commits on Sep 24, 2019
  1. Fix eslint issues

    fkling committed Sep 24, 2019
  2. Fix scroll into view with multiple items

    fkling committed Sep 12, 2019
    See the comment in `focusNodes` for more information.
  3. Refactor autofocus and highlight logic

    fkling committed Apr 28, 2019
    To further eliminate the need to pass the parser object to visualization
    components, the "focus" path is now computed on the fly.
    
    That means that every node computes for itself whether it should be open and
    whether it should be highlighted. This is possible because the tree
    adapter can answer the question whether a node contains children in
    cursor range or not.
    
    This commit also changes the behavior for nodes that have been opened
    via focus: If nodes loose focus, they used to stay open. Now, they will
    close as long as they haven't been explicitly opened.
Commits on Sep 22, 2019
  1. Add typescript as a parser for recast (#441)

    dangreenisrael authored and fkling committed Sep 22, 2019
Commits on Sep 20, 2019
  1. Fix typescript issues

    fkling committed Sep 20, 2019
  2. flow v0.108.0 (#443)

    mvitousek authored and fkling committed Sep 20, 2019
  3. Add Hyntax HTML Parser (#291)

    mykolaharmash authored and fkling committed Sep 20, 2019
Commits on Sep 6, 2019
  1. [web core] Add dummy __filename global

    fkling committed Sep 6, 2019
    Resolves #420
  2. [web ui] Prevent AST render errors from breaking site

    fkling committed Sep 6, 2019
    Resolves #436
    
    astexplorer is not perfect, strange errors when rendering the AST might
    occur. Since React v16 we have error boundaries
    (https://reactjs.org/docs/error-boundaries.html) which prevent the React
    app from breaking completely if an error occurs during render.
    
    This was now used to catch AST render error, as e.g. happens when trying
    to open the JSON view with a JavaScript AST containing a BigInt.
  3. [JS parsers] Don't error when serializing bigints

    fkling committed Sep 6, 2019
    Resolves #436
    
    BigInt is a new proposal for JavaScript.
    
    Most JavaScript parser, when encountering a literal such as a string,
    number or boolean, also provide the equivalent runtime value in the AST.
    Recent browser versions already support bigint, so that value will be a
    true bigint value (no idea what happens in browsers who don't support
    bigint).
    
    BigInts cannot be converted to JSON, so they have to be handled
    separately. It also doesn't look like `window.isNaN` can handle bigints,
    but `Number.isNaN` can.
Older
You can’t perform that action at this time.