-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0306c23
Showing
12 changed files
with
508 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[Makefile] | ||
indent_style = tab |
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 @@ | ||
node_modules |
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,6 @@ | ||
build: | ||
yarn rollup -c | ||
yarn terser --compress -- dist/index.js -o dist/index.js -b "beautify=false,preamble='//@ts-ignore'" | ||
|
||
tests: | ||
deno index.test.js |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
export { default } from './dist/index.js' |
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,9 @@ | ||
import { test, assertEqual } from 'https://deno.land/x/testing/testing.ts' | ||
import minimatch from './index.js' | ||
|
||
test({ | ||
name: 'minimatch', | ||
fn () { | ||
assertEqual(minimatch('bar.foo', '*.foo'), true) | ||
} | ||
}) |
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,15 @@ | ||
{ | ||
"private": true, | ||
"engines": { | ||
"node": ">=11", | ||
"yarn": ">=1.12" | ||
}, | ||
"devDependencies": { | ||
"minimatch": "^3.0.4", | ||
"rollup": "^0.68.1", | ||
"rollup-plugin-alias": "^1.5.1", | ||
"rollup-plugin-commonjs": "^9.2.0", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"terser": "^3.13.1" | ||
} | ||
} |
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,24 @@ | ||
# deno-minimatch | ||
|
||
> A [deno](https://github.com/denoland/deno) port of [minimatch](https://github.com/isaacs/minimatch) | ||
# Use | ||
|
||
See [minimatch docs](https://github.com/isaacs/minimatch#usage) for full usage info | ||
|
||
```js | ||
import minimatch from 'https://raw.githubusercontent.com/chrisdothtml/deno-minimatch/master/index.js' | ||
|
||
minimatch('bar.foo', '*.foo') | ||
//> true | ||
``` | ||
|
||
# Contributing | ||
|
||
```sh | ||
# build dist file | ||
make build | ||
|
||
# run tests | ||
make tests | ||
``` |
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,25 @@ | ||
import alias from 'rollup-plugin-alias' | ||
import cjs from 'rollup-plugin-commonjs' | ||
import path from 'path' | ||
import resolve from 'rollup-plugin-node-resolve' | ||
|
||
export default { | ||
input: 'src/index.js', | ||
output: { | ||
dir: 'dist', | ||
file: 'index.js', | ||
format: 'esm' | ||
}, | ||
external: [ | ||
'https://deno.land/x/path/index.ts' | ||
], | ||
plugins: [ | ||
resolve({ | ||
preferBuiltins: false | ||
}), | ||
cjs(), | ||
alias({ | ||
path: path.resolve(__dirname, 'src/path.js') | ||
}), | ||
] | ||
} |
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 @@ | ||
export { default } from 'minimatch' |
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,2 @@ | ||
import * as path from 'https://deno.land/x/path/index.ts' | ||
export default path |
Oops, something went wrong.