Skip to content

Commit 5c69132

Browse files
authored
chore: upgrade doc & ci (#17)
* feat: support typos.ci * chore: update dep
1 parent 0b28f57 commit 5c69132

File tree

8 files changed

+41
-12
lines changed

8 files changed

+41
-12
lines changed

.github/workflows/typos.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Spell Check
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- "main"
7+
jobs:
8+
typos:
9+
name: Spell Check with Typos
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Actions Repository
13+
uses: actions/checkout@v4
14+
- name: Check spelling
15+
uses: crate-ci/typos@master

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# unplugin-stylex · [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/eryue0220/unplugin-stylex/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/unplugin-stylex.svg?style=flat)](https://www.npmjs.com/package/unplugin-stylex)
22

3+
> [!WARNING]
4+
> This plugin is in early development and may not work as expected. Please report any issues you find.
5+
36
## Installation
47

58
Install the package from the following command
@@ -75,9 +78,9 @@ module.exports = {
7578

7679
## Options
7780

78-
### options.dev
81+
Current support argument, which may have change in the future
7982

80-
### options.stylex
83+
### options.dev
8184

8285
#### options.stylex.runtimeInjection
8386

@@ -91,6 +94,7 @@ module.exports = {
9194

9295
#### options.stylex.unstable_moduleResolution
9396

94-
## License
97+
# Acknowledgments
9598

96-
StyleX is [MIT licensed](./LICENSE)
99+
- [@stylexjs/rollup-plugin](https://github.com/facebook/stylex/tree/main/packages/rollup-plugin)
100+
- [vite-plugin-stylex](https://github.com/HorusGoul/vite-plugin-stylex)

examples/esbuild-example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@stylexjs/stylex": "^0.5.1",
1212
"react": "^18.2.0",
1313
"react-dom": "^18.2.0",
14-
"unplugin-stylex": "latest"
14+
"unplugin-stylex": "workspace:*"
1515
},
1616
"devDependencies": {
1717
"@types/react": "^18.2.56",

examples/rspack-example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@stylexjs/stylex": "^0.5.1",
1111
"react": "^18.2.0",
1212
"react-dom": "^18.2.0",
13-
"unplugin-stylex": "0.1.0"
13+
"unplugin-stylex": "workspace:*"
1414
},
1515
"devDependencies": {
1616
"@rspack/cli": "^0.5.4",

examples/vite-example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@types/react": "^18.2.56",
1717
"@types/react-dom": "^18.2.19",
1818
"@vitejs/plugin-react": "^4.2.1",
19-
"unplugin-stylex": "latest",
19+
"unplugin-stylex": "workspace:*",
2020
"vite": "^5.0.10"
2121
}
2222
}

examples/vue-example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@vitejs/plugin-vue": "^4.6.2",
1616
"@vitejs/plugin-vue-jsx": "^3.1.0",
1717
"typescript": "^5.3.3",
18-
"unplugin-stylex": "latest",
18+
"unplugin-stylex": "workspace:*",
1919
"vite": "^5.0.10",
2020
"vue-tsc": "^1.8.27"
2121
}

pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typos.toml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[files]
2+
extend-exclude = [
3+
"*.snap",
4+
"examples/*",
5+
]
6+
7+
[default.extend-words]
8+
# Ignore false-positives
9+
stylex = "stylex"
10+
unplugin = "unplugin"

0 commit comments

Comments
 (0)