-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
5 changed files
with
41 additions
and
4 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 @@ | ||
# farm-plugin-dsv |
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,5 +1,5 @@ | ||
# farm-plugin-react-components | ||
|
||
## rustup toolchain install nightly-2023-12-28 | ||
<!-- ## rustup toolchain install nightly-2023-12-28 --> | ||
|
||
## rustup override set nightly-2023-12-28 | ||
<!-- ## rustup override set nightly-2023-12-28 --> |
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,36 @@ | ||
# farm-plugin-yaml | ||
|
||
Inspired By [@rollup/plugin-yaml](https://www.npmjs.com/package/@rollup/plugin-yaml) | ||
|
||
🍣 A Farm plugin which Converts YAML files to ES6 modules. | ||
|
||
## install | ||
|
||
```bash | ||
pnpm add farm-plugin-yaml --save-dev | ||
``` | ||
|
||
## Usage | ||
|
||
farm.config.ts | ||
|
||
```typescript | ||
import { defineConfig } from '@farmfe/core'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
[ | ||
'farm-plugin-yaml', | ||
{ | ||
documentMode: 'single' | 'multi', // default single | ||
include: Regex, // default None, | ||
exclude: Regex, // default None | ||
}, | ||
], | ||
], | ||
}); | ||
``` | ||
|
||
notice: | ||
|
||
include or exclude is Regex not glob For example `**/01.yaml` is not illegal。What is right is like `".*\\/01.yaml"` |
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