Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Add support for <template> tags #1

Merged
merged 6 commits into from
Jan 26, 2019
Merged

Add support for <template> tags #1

merged 6 commits into from
Jan 26, 2019

Commits on Dec 10, 2018

  1. Fix Test

    Set the Jest test environment to `node` to avoid a JSDom error.
    jarrodldavis committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    f2dc09f View commit details
    Browse the repository at this point in the history
  2. Add tests for template tags

    Add failing tests for extracting selectors from HTML tags under
    `<template>` tags.
    jarrodldavis committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    e90bce1 View commit details
    Browse the repository at this point in the history
  3. Organize existing tests

    Organize the existing tests for normal HTML documents into a sub-group.
    jarrodldavis committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    3661998 View commit details
    Browse the repository at this point in the history
  4. Implement fix for template tags

    If a node type is `root`, gather selectors from children.
    jarrodldavis committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    42abc77 View commit details
    Browse the repository at this point in the history
  5. Don't early-exit when encountering root nodes

    Add to the existing `selectors` return array when gathering selectors
    from a `root` type node instead of immediately returning.
    jarrodldavis committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    b7b5213 View commit details
    Browse the repository at this point in the history
  6. Fix root node array spread.

    Actually use the spread operator when gathering selectors from `root`
    type nodes.
    jarrodldavis committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    0f47fee View commit details
    Browse the repository at this point in the history