Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement expandGlob() #617

Merged
merged 20 commits into from
Oct 2, 2019
Merged

Implement expandGlob() #617

merged 20 commits into from
Oct 2, 2019

Commits on Sep 28, 2019

  1. prettier: Refactor to use expandGlob()

    Regression. The prettier tests will fail until expandGlob() is fixed
    since they try to match absolute paths outside of CWD.
    nayeemrmn committed Sep 28, 2019
    Configuration menu
    Copy the full SHA
    ff97903 View commit details
    Browse the repository at this point in the history
  2. testing: Refactor to resemble prettier

    Should help later when extracting common functionality to expandGlob(),
    like exclusion. Makes findTestModules() an async generator.
    nayeemrmn committed Sep 28, 2019
    Configuration menu
    Copy the full SHA
    4729107 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b6af0a7 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2019

  1. Move exclude handling inside of expandGlob()

    Adds an exclude field to ExpandGlopOptions. This should be the final
    API.
    nayeemrmn committed Sep 29, 2019
    Configuration menu
    Copy the full SHA
    17adf62 View commit details
    Browse the repository at this point in the history
  2. fs/walk.ts: Don't traverse directories matching a skip pattern

    In other words, support path prefixes when specifying excludes. This
    aligns with the file matchers of the test runner and prettier. It's less
    redundant since this cannot be achieved efficiently on the client-end.
    nayeemrmn committed Sep 29, 2019
    Configuration menu
    Copy the full SHA
    eda4eb3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a71b0a3 View commit details
    Browse the repository at this point in the history
  4. fs/walk.ts: Add includeFiles to WalkOptions

    It will help with expanding **
    nayeemrmn committed Sep 29, 2019
    Configuration menu
    Copy the full SHA
    f2c329a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f071a40 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0dcde6a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a783ffc View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2019

  1. Configuration menu
    Copy the full SHA
    634b753 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f2dbd3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9d46b1a View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2019

  1. Configuration menu
    Copy the full SHA
    ceca937 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8532c4e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2d74b3b View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2019

  1. Configuration menu
    Copy the full SHA
    5b72711 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7af9a0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3b1b189 View commit details
    Browse the repository at this point in the history
  4. Implement expandGlob() and expandGlobSync()

    fs/glob.ts:
    - Improve prototypes for expandGlob() and expandGlobSync() from denoland#604.
    - Rename glob() to globToRegExp().
    - Add normalizeGlob() and joinGlobs().
    - Extract GlobToRegExpOptions from GlobOptions, remove the strict
      and filepath options.
    
    fs/globrex.ts:
    - Add GlobrexOptions.
    
    fs/path/constants.ts:
    - Add SEP_PATTERN.
    
    fs/walk.ts:
    - Add WalkOptions::includeFiles
    - Default WalkOptions::includeDirs to true.
    - Don't traverse directories matching a skip pattern.
    - Remove walkSync()'s default root value.
    
    prettier:
    - Refactor to use expandGlob().
    
    testing:
    - Make findTestModules() an async generator.
    nayeemrmn committed Oct 2, 2019
    Configuration menu
    Copy the full SHA
    eb666fd View commit details
    Browse the repository at this point in the history