This PR extends the build pipeline of the www service to support locale-prefixed static builds (EN/RU) with build-time SSG output injection, while also refactoring UI typography to a tokenized Tailwind v4 @theme-driven approach. Changes: - Add build-time SSG plugin to @ermnvldmr/rsbuild-config and wire multi-locale builds (/en/, /ru/) into services/www. - Introduce new @ermnvldmr/i18n package (locale constants, path helpers, keysets, pluralization) and apply it to www navigation/text. - Refactor ui typography to a shared getTypographyClassNames utility + Tailwind token definitions, with stl/cn updated for correct Tailwind-merge behavior.
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "@ermnvldmr/i18n",
|
|
"version": "1.0.0",
|
|
"description": "Internationalization utilities for ermnvldmr projects",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./dev": {
|
|
"import": "./dist/dev.js",
|
|
"types": "./dist/dev.d.ts",
|
|
"default": "./src/dev.ts"
|
|
},
|
|
"./testing": {
|
|
"import": "./dist/testing.js",
|
|
"types": "./dist/testing.d.ts",
|
|
"default": "./src/testing.ts"
|
|
}
|
|
},
|
|
"files": ["dist"],
|
|
"scripts": {
|
|
"build": "rsbuild build",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"lint": "eslint src --max-warnings 0",
|
|
"typecheck": "tsc --noEmit",
|
|
"clean": "rm -rf dist coverage"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^19.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@ermnvldmr/eslint-config": "workspace:*",
|
|
"@ermnvldmr/rsbuild-config": "workspace:*",
|
|
"@rsbuild/core": "^1.2.11",
|
|
"@types/react": "^19.1.2",
|
|
"@vitest/coverage-v8": "^4.0.18",
|
|
"react": "^19.1.0",
|
|
"typescript": "^5.8.3",
|
|
"vitest": "^4.0.18"
|
|
}
|
|
}
|