Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade doc & ci #17

Merged
merged 4 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Spell Check
on:
pull_request:
push:
branches:
- "main"
jobs:
typos:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@master
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 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)

> [!WARNING]
> This plugin is in early development and may not work as expected. Please report any issues you find.

## Installation

Install the package from the following command
Expand Down Expand Up @@ -75,9 +78,9 @@ module.exports = {

## Options

### options.dev
Current support argument, which may have change in the future

### options.stylex
### options.dev

#### options.stylex.runtimeInjection

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

#### options.stylex.unstable_moduleResolution

## License
# Acknowledgments

StyleX is [MIT licensed](./LICENSE)
- [@stylexjs/rollup-plugin](https://github.com/facebook/stylex/tree/main/packages/rollup-plugin)
- [vite-plugin-stylex](https://github.com/HorusGoul/vite-plugin-stylex)
2 changes: 1 addition & 1 deletion examples/esbuild-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@stylexjs/stylex": "^0.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"unplugin-stylex": "latest"
"unplugin-stylex": "workspace:*"
},
"devDependencies": {
"@types/react": "^18.2.56",
Expand Down
2 changes: 1 addition & 1 deletion examples/rspack-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@stylexjs/stylex": "^0.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"unplugin-stylex": "0.1.0"
"unplugin-stylex": "workspace:*"
},
"devDependencies": {
"@rspack/cli": "^0.5.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"unplugin-stylex": "latest",
"unplugin-stylex": "workspace:*",
"vite": "^5.0.10"
}
}
2 changes: 1 addition & 1 deletion examples/vue-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@vitejs/plugin-vue": "^4.6.2",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"typescript": "^5.3.3",
"unplugin-stylex": "latest",
"unplugin-stylex": "workspace:*",
"vite": "^5.0.10",
"vue-tsc": "^1.8.27"
}
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

10 changes: 10 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[files]
extend-exclude = [
"*.snap",
"examples/*",
]

[default.extend-words]
# Ignore false-positives
stylex = "stylex"
unplugin = "unplugin"
Loading