Skip to content

Commit f0da9ce

Browse files
committed
chore: new scripts + t2k
1 parent eb7aa30 commit f0da9ce

20 files changed

+98
-58
lines changed

.editorconfig

100755100644
File mode changed.

.gitignore

100755100644
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ package-lock.json
77
.DS_Store
88
.idea
99
.vscode
10+
11+
# vscode localhistory
12+
.history

.npmignore

100755100644
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ test
66
__tests__
77
src
88
build
9+
docs
910
gulpfile.js
1011

1112
.editorconfig
@@ -16,3 +17,7 @@ LICENSE.txt
1617
Rakefile
1718
express.js
1819
.vscode
20+
21+
22+
# vscode localhistory
23+
.history

.npmrc

100755100644
File mode changed.

.prettierrc

100755100644
File mode changed.

Gemfile

100755100644
File mode changed.

LICENSE.txt

100755100644
File mode changed.

README.md

100755100644
Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# next-replace-in-file
22
> File content replace for next.
33
4+
[![version][version-image]][version-url]
5+
[![license][license-image]][license-url]
6+
[![size][size-image]][size-url]
7+
[![download][download-image]][download-url]
8+
49
## installation
510
```bash
611
npm install -S @feizheng/next-replace-in-file
@@ -41,28 +46,43 @@ npm install -S @feizheng/next-replace-in-file
4146
## options
4247
> Not fully, because `fast-glob` does not implement all options of `node-glob`. See table below.
4348
44-
| node-glob(😂) | fast-glob(😎) |
45-
| :-----------: | :---------------------------------------------------------: |
46-
| `cwd` | [`cwd`](#cwd) |
47-
| `root` ||
48-
| `dot` | [`dot`](#dot) |
49-
| `nomount` ||
50-
| `mark` | [`markDirectories`](#markdirectories) |
51-
| `nosort` ||
52-
| `nounique` | [`unique`](#unique) |
53-
| `nobrace` | [`nobrace`](#nobrace) or [`brace`](#brace) |
54-
| `noglobstar` | [`noglobstar`](#noglobstar) or [`globstar`](#globstar) |
55-
| `noext` | [`noext`](#noext) or [`extension`](#extension) |
56-
| `nocase` | [`nocase`](#nocase) or [`case`](#case) |
57-
| `matchBase` | [`matchbase`](#matchbase) |
58-
| `nodir` | [`onlyFiles`](#onlyfiles) |
59-
| `ignore` | [`ignore`](#ignore) |
60-
| `follow` | [`followSymlinkedDirectories`](#followsymlinkeddirectories) |
61-
| `realpath` ||
62-
| `absolute` | [`absolute`](#absolute) |
49+
| node-glob(😂) | fast-glob(😎) |
50+
| :----------: | :---------------------------------------------------------: |
51+
| `cwd` | [`cwd`](#cwd) |
52+
| `root` ||
53+
| `dot` | [`dot`](#dot) |
54+
| `nomount` ||
55+
| `mark` | [`markDirectories`](#markdirectories) |
56+
| `nosort` ||
57+
| `nounique` | [`unique`](#unique) |
58+
| `nobrace` | [`nobrace`](#nobrace) or [`brace`](#brace) |
59+
| `noglobstar` | [`noglobstar`](#noglobstar) or [`globstar`](#globstar) |
60+
| `noext` | [`noext`](#noext) or [`extension`](#extension) |
61+
| `nocase` | [`nocase`](#nocase) or [`case`](#case) |
62+
| `matchBase` | [`matchbase`](#matchbase) |
63+
| `nodir` | [`onlyFiles`](#onlyfiles) |
64+
| `ignore` | [`ignore`](#ignore) |
65+
| `follow` | [`followSymlinkedDirectories`](#followsymlinkeddirectories) |
66+
| `realpath` ||
67+
| `absolute` | [`absolute`](#absolute) |
6368

6469

6570
## resources
6671
- https://github.com/afeiship/next-array-replace
6772
- https://github.com/sindresorhus/globby
6873
- https://github.com/mrmlnc/fast-glob#options-1
74+
75+
## license
76+
Code released under [the MIT license](https://github.com/afeiship/next-replace-in-file/blob/master/LICENSE.txt).
77+
78+
[version-image]: https://img.shields.io/npm/v/@feizheng/next-replace-in-file
79+
[version-url]: https://npmjs.org/package/@feizheng/next-replace-in-file
80+
81+
[license-image]: https://img.shields.io/npm/l/@feizheng/next-replace-in-file
82+
[license-url]: https://github.com/afeiship/next-replace-in-file/blob/master/LICENSE.txt
83+
84+
[size-image]: https://img.shields.io/bundlephobia/minzip/@feizheng/next-replace-in-file
85+
[size-url]: https://github.com/afeiship/next-replace-in-file/blob/master/dist/next-replace-in-file.min.js
86+
87+
[download-image]: https://img.shields.io/npm/dm/@feizheng/next-replace-in-file
88+
[download-url]: https://www.npmjs.com/package/@feizheng/next-replace-in-file

Rakefile

100755100644
File mode changed.

__tests__/api.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('api.basic test', () => {
66
nx.replaceInFile(
77
'__tests__/**',
88
[
9-
[/_VERSION_/gi, '__VERSION__'],
9+
[/____VERSION____/gi, '_____VERSION_____'],
1010
[/FILE/g, 'FILE'],
1111
[/DESC/g, 'DESC']
1212
],

0 commit comments

Comments
 (0)