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

Refactor utils modules and minify configuration #342

Merged
merged 1 commit into from
Jun 16, 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
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,9 @@ dist
.yarn/install-state.gz
.pnp.*
*storybook.log
storybook-static
storybook-static

# End of https://www.toptal.com/developers/gitignore/api/react
# Ignore all .env files in the root of a repository
# This is useful for multiple .env files for different environments
.env*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
strict-peer-dependencies=false
enable-pre-post-scripts=true
public-hoist-pattern[]=*@radix-ui/react-*
6 changes: 1 addition & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"unifiedjs.vscode-mdx",
"bradlc.vscode-tailwindcss"
]
"recommendations": ["dbaeumer.vscode-eslint", "bradlc.vscode-tailwindcss"]
}
23 changes: 1 addition & 22 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@
{
"eslint.experimental.useFlatConfig": true,
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml"
],
"files.associations": {
"*.css": "tailwindcss"
},
"tailwindCSS.experimental.classRegex": ["cva`(.*?)`", "cva\\('(.*?)'\\)", "cva\\(\\s*('(.*?)'|\"(.*?)\")\\s*\\)"],
"editor.quickSuggestions": {
"strings": true
},
"cSpell.files": ["../pnpm-lock.yaml"],
"cSpell.words": [
"changelogithub",
"corepack",
"openlabs",
"openui",
"tailwindcss"
]
}
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ To contribute to Open UI, follow these steps:
2. Clone your forked repository to your local machine:

```
git clone https://github.com/OpenLabs-dev/openui.git
git clone https://github.com/OpenLabs-dev/ui.git
```

3. Create a new branch for your changes:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Open Labs
Copyright (c) 2024 OpenLabs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Visit [https://openlabs.online/docs/ui](<[https://openlabs.online/docs](https://

Contributions are always welcome!

See [CONTRIBUTING.md](https://github.com/OpenLabs-dev/openui/blob/main/CONTRIBUTING.md) for ways to get started.
See [CONTRIBUTING.md](https://github.com/OpenLabs-dev/ui/blob/main/CONTRIBUTING.md) for ways to get started.

Please adhere to this project's [CODE_OF_CONDUCT](https://github.com/OpenLabs-dev/openui/blob/main/CODE_OF_CONDUCT.md).
Please adhere to this project's [CODE_OF_CONDUCT](https://github.com/OpenLabs-dev/ui/blob/main/CODE_OF_CONDUCT.md).

## License

Expand Down
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ import eslint from '@antfu/eslint-config'
export default eslint({
formatters: true,
typescript: true,
markdown: true,
})
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"clean": "pnpx rimraf dist pnpm-lock.yaml node_modules",
"compile": "tsup --dts --watch",
"build": "tsup --dts",
"prepare": "esno ./scripts/prepare.ts && pnpm build"
"prepare": "npx simple-git-hooks && pnpm build"
},
"peerDependencies": {
"react": ">=18",
Expand Down Expand Up @@ -87,8 +87,6 @@
"@types/react-dom": "18.2.22",
"eslint": "8.57.0",
"eslint-plugin-format": "0.1.0",
"esno": "4.7.0",
"execa": "9.1.0",
"lint-staged": "15.2.2",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand All @@ -110,7 +108,7 @@
"target": "es2019"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
"pre-commit": "pnpx lint-staged"
},
"lint-staged": {
"*": "eslint . --fix"
Expand Down
Loading
Loading