-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dist regexp in windows os (umijs#5462)
* fix: windows bug in ignored watch files * fix: windows bug in ignored watch files« * chore: windows ci * chore: windows ci * chore: sep * chore: test * chore: console.log * chore: windows * chore: use anymatch in webpack * chore: format * chore: test * chore: anymatch Co-authored-by: pr <pr>
- Loading branch information
Showing
9 changed files
with
70 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
export default { | ||
outputPath: 'bar', | ||
} |
16 changes: 16 additions & 0 deletions
16
packages/bundler-webpack/src/fixtures/outputPath/expect.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as path from 'path'; | ||
import anymatch from 'anymatch'; | ||
import { IExpectOpts } from '../types'; | ||
|
||
export default ({ ignored }: IExpectOpts) => { | ||
expect( | ||
anymatch(ignored as any)(path.join(__dirname, 'bar', 'index.js')) | ||
).toBeTruthy(); | ||
expect( | ||
anymatch(ignored as any)(path.join(__dirname, 'bar')) | ||
).toBeFalsy(); | ||
// issue: https://github.com/umijs/umi/issues/5416 | ||
expect(anymatch(ignored as any)(path.join(__dirname, 'distributor', 'index.tsx'))).toBeFalsy(); | ||
expect(anymatch(ignored as any)(path.join(__dirname, 'distributor'))).toBeFalsy(); | ||
expect(anymatch(ignored as any)(path.join(__dirname, 'node_modules'))).toBeTruthy(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('outputPath'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
|
||
import * as webpack from 'webpack'; | ||
|
||
export interface IExpectOpts { | ||
files: string[]; | ||
indexJS: string; | ||
indexCSS: string; | ||
cwd: string; | ||
ignored: webpack.Options.WatchOptions['ignored'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4263,20 +4263,20 @@ any-promise@^1.0.0: | |
version "1.3.0" | ||
resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f" | ||
|
||
[email protected], anymatch@^3.0.3, anymatch@~3.1.1: | ||
version "3.1.1" | ||
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" | ||
dependencies: | ||
normalize-path "^3.0.0" | ||
picomatch "^2.0.4" | ||
|
||
anymatch@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" | ||
dependencies: | ||
micromatch "^3.1.4" | ||
normalize-path "^2.1.1" | ||
|
||
anymatch@^3.0.3, anymatch@~3.1.1: | ||
version "3.1.1" | ||
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" | ||
dependencies: | ||
normalize-path "^3.0.0" | ||
picomatch "^2.0.4" | ||
|
||
append-buffer@^1.0.2: | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/append-buffer/-/append-buffer-1.0.2.tgz#d8220cf466081525efea50614f3de6514dfa58f1" | ||
|