Skip to content

Commit

Permalink
Merge pull request #62 from farm-fe/feat-react-components
Browse files Browse the repository at this point in the history
feat(react-components): suport filename
  • Loading branch information
CCherry07 authored Jul 24, 2024
2 parents 0e84227 + 4611250 commit 840c5a4
Show file tree
Hide file tree
Showing 28 changed files with 5,915 additions and 60 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-clouds-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farmfe/plugin-react-components": patch
---

feat: suport filename
66 changes: 33 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ members = [
"packages/*",
]
resolver = "2"
[workspace.dependencies]
farmfe_core = { version = "0.6.2" }
farmfe_utils = { version = "0.1.5" }
farmfe_toolkit_plugin_types = { version = "0.0.18" }
farmfe_macro_plugin = { version = "0.0.4" }
farmfe_toolkit = "0.0.11"
11 changes: 6 additions & 5 deletions packages/react-components/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ license = "MIT"
crate-type = ["cdylib", "rlib"]

[dependencies]
farmfe_core = { version = "0.6.2" }
farmfe_utils = { version = "0.1.5" }
farmfe_toolkit_plugin_types = { version = "0.0.18" }
farmfe_macro_plugin = { version = "0.0.4" }
farmfe_core = { workspace = true }
farmfe_utils = { workspace = true }
farmfe_toolkit_plugin_types = { workspace = true }
farmfe_macro_plugin = { workspace = true }
farmfe_toolkit = { workspace = true }

serde = { version = "1.0.197", features = ["derive"] }
farmfe_toolkit = "0.0.11"
glob = "0.3.1"
walkdir = "2.5.0"
5 changes: 4 additions & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@farmfe/plugin-react-components",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"main": "scripts/index.js",
"types": "scripts/index.d.ts",
Expand Down Expand Up @@ -55,6 +55,9 @@
"build": "farm-plugin-tools build --platform --cargo-name farmfe_plugin_react_components -p farmfe_plugin_react_components --release",
"prepublishOnly": "farm-plugin-tools prepublish"
},
"devDependencies": {
"@farmfe/plugin-tools": "latest"
},
"files": [
"scripts"
]
Expand Down
37 changes: 37 additions & 0 deletions packages/react-components/playground/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Farm + React

This template should help you start developing using React and TypeScript in Farm.

## Setup

Install the dependencies:

```bash
pnpm install
```

## Get Started

Start the dev server:

```bash
pnpm start
```

Build the app for production:

```bash
pnpm build
```

Preview the Production build product:

```bash
pnpm preview
```

Clear persistent cache local files

```bash
pnpm clean
```
Loading

0 comments on commit 840c5a4

Please sign in to comment.