Skip to content
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
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

bunx commitlint --edit "$1"
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

bun run format:write && bun run lint
11 changes: 4 additions & 7 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
{
"$schema": "https://biomejs.dev/schemas/1.2.2/schema.json",
"organizeImports": {
"enabled": true,
"ignore": ["dist", "*.bs.js", "lib"]
},
"$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true
},
"ignore": ["dist", "*.bs.js", "lib"]
"includes": ["**", "!**/dist", "!**/*.bs.js", "!**/lib"]
},
"formatter": {
"enabled": true,
"ignore": ["dist", "*.bs.js", "lib"]
"includes": ["**", "!**/dist", "!**/*.bs.js", "!**/lib"]
}
}
Binary file modified bun.lockb
Binary file not shown.
123 changes: 61 additions & 62 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,62 @@
{
"name": "rspack-rescript-react",
"private": true,
"version": "1.0.0",
"scripts": {
"dev": "concurrently \"bun run res:dev\" \"rspack serve\"",
"build": "cross-env NODE_ENV=production rspack build",
"res:build": "rescript build",
"res:dev": "rescript watch",
"res:clean": "rescript clean",
"tokens:build": "style-dictionary build",
"tokens:build:light": "style-dictionary build --config config.light.json",
"tokens:build:dark": "style-dictionary build --config config.dark.json",
"tokens:watch": "style-dictionary build --watch",
"prepare": "husky install",
"commit": "git-cz",
"format:check": "biome check .",
"format:write": "biome format . --write",
"lint:check": "biome lint .",
"lint": "biome lint --apply .",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@emotion/css": "^11.11.2",
"@emotion/server": "^11.11.0",
"@rescript/core": "1.6.1",
"@rescript/react": "0.14.2",
"react": "^19.2.5",
"react-dom": "^19.2.5",
"rescript": "12.2.0"
},
"devDependencies": {
"@biomejs/biome": "1.2.2",
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"@commitlint/cz-commitlint": "^17.7.2",
"@rspack/cli": "1.7.11",
"@rspack/core": "^1.7.11",
"@rspack/plugin-react-refresh": "1.6.2",
"@svgr/webpack": "^8.1.0",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"commitizen": "^4.3.0",
"concurrently": "^8.2.1",
"cross-env": "^7.0.3",
"husky": "^8.0.3",
"inquirer": "^9.2.11",
"jsdom": "^29.0.2",
"style-dictionary": "^5.0.4",
"typescript": "^5.0.4",
"vitest": "^4.1.4",
"webpack-bundle-analyzer": "^4.9.1"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
}
}
"name": "rspack-rescript-react",
"private": true,
"version": "1.0.0",
"scripts": {
"dev": "concurrently \"bun run res:dev\" \"rspack serve\"",
"build": "cross-env NODE_ENV=production rspack build",
"res:build": "rescript build",
"res:dev": "rescript watch",
"res:clean": "rescript clean",
"tokens:build": "style-dictionary build",
"tokens:build:light": "style-dictionary build --config config.light.json",
"tokens:build:dark": "style-dictionary build --config config.dark.json",
"tokens:watch": "style-dictionary build --watch",
"prepare": "husky",
"commit": "git-cz",
"format:check": "biome check .",
"format:write": "biome format . --write",
"lint:check": "biome lint .",
"lint": "biome lint --write .",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@emotion/css": "^11.13.5",
"@emotion/server": "^11.11.0",
"@rescript/core": "1.6.1",
"@rescript/react": "0.14.2",
"react": "^19.2.5",
"react-dom": "^19.2.5",
"rescript": "12.2.0"
},
"devDependencies": {
"@biomejs/biome": "^2.4.11",
"@commitlint/cli": "^20.5.0",
"@commitlint/config-conventional": "^20.5.0",
"@commitlint/cz-commitlint": "^20.5.1",
"@rspack/cli": "1.7.11",
"@rspack/core": "^1.7.11",
"@rspack/plugin-react-refresh": "1.6.2",
"@svgr/webpack": "^8.1.0",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"commitizen": "^4.3.1",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"husky": "^9.1.7",
"inquirer": "^13.4.1",
"jsdom": "^29.0.2",
"style-dictionary": "^5.4.0",
"typescript": "^6.0.2",
"vitest": "^4.1.4"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
}
}
3 changes: 0 additions & 3 deletions rspack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const BundleAnalyzerPlugin =
require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
const rspack = require("@rspack/core");
const ReactRefreshPlugin = require("@rspack/plugin-react-refresh");
const isProduction = process.env.NODE_ENV === "production";
Expand All @@ -9,7 +7,6 @@ const isProduction = process.env.NODE_ENV === "production";
*/
module.exports = {
plugins: [
// new BundleAnalyzerPlugin(),
new rspack.HtmlRspackPlugin({ template: "./index.html" }),
new rspack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify(
Expand Down