Skip to content

Commit

Permalink
chore: modify packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Maidang1 committed Jun 26, 2024
1 parent cbb3780 commit 52a4e3b
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/farm-plugin-dsv/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# farm-plugin-dsv
4 changes: 2 additions & 2 deletions packages/farm-plugin-react-components/README.md
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 -->
2 changes: 1 addition & 1 deletion packages/farm-plugin-virtual/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A rust plugin for farm to easily use virtual module
## install

```bash
pnpm add -D farm-plugin-virtual
pnpm add farm-plugin-virtual --save-dev
```

## Usage
Expand Down
36 changes: 36 additions & 0 deletions packages/farm-plugin-yaml/readmd.md
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"`
2 changes: 1 addition & 1 deletion packages/farm-pulgin-strip/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Farm-plugin-strip
# farm-plugin-strip

🍣 A Farm rust plugin to remove `debugger` statements and functions like `assert.equal` and `console.log` from your code.

Expand Down

0 comments on commit 52a4e3b

Please sign in to comment.