before rsbuild remove

This commit is contained in:
tymur999
2025-08-02 15:55:08 -05:00
parent c33e50a7a4
commit 3da9cf9f11
7 changed files with 2173 additions and 20 deletions

5
.gitignore vendored
View File

@@ -11,6 +11,7 @@ dist/
.rspack-profile-*/
# IDE
.vscode/*
!.vscode/extensions.json
.idea
# Env
.env*

View File

@@ -1,4 +0,0 @@
# Lock files
package-lock.json
pnpm-lock.yaml
yarn.lock

View File

@@ -1,3 +0,0 @@
{
"singleQuote": true
}

2100
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,21 +1,25 @@
{
"name": ".profile",
"name": "tymur999.com",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "rsbuild build",
"dev": "rsbuild dev --open",
"format": "prettier --write .",
"lint": "eslint .",
"preview": "rsbuild preview"
},
"browserslist": [
"last 2 versions",
"not dead",
"> 0.5%"
],
"devDependencies": {
"@eslint/js": "^9.30.0",
"@rsbuild/core": "^1.4.3",
"@rsbuild/plugin-react": "^1.3.4",
"eslint": "^9.30.0",
"globals": "^16.2.0",
"prettier": "^3.6.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.35.1"
}

View File

@@ -1,3 +1,56 @@
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
export default defineConfig({});
export default defineConfig({
// configure Rsbuild plugins
plugins: [
pluginReact({ fastRefresh: true, })
],
// options for build performance and runtime performance
performance: {
buildCache: true,
removeConsole: true
},
// options for build outputs
output: {
},
// options for local development
dev: {
liveReload: true,
hmr: true,
lazyCompilation: true,
},
// options for HTML generation
html: {
},
// options for the low-level tools
tools: {
},
// options for module resolution
resolve: {
},
// options for input source code
source: {
},
// options for the Rsbuild server,
// will take effect during local development and preview
server: {
open: false,
},
// options for Web security
security: {
},
// define different Rsbuild configurations for each environment
environments: {
},
});

View File

@@ -1,22 +1,24 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"lib": ["DOM", "ES2020"],
"lib": ["DOM", "ESNext"],
"target": "ES2020",
"noEmit": true,
"skipLibCheck": true,
"useDefineForClassFields": true,
"jsx": "react-jsx",
/* modules */
"module": "ESNext",
"moduleResolution": "bundler",
"verbatimModuleSyntax": true,
"resolveJsonModule": true,
"isolatedModules": true,
"allowImportingTsExtensions": true,
/* type checking */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["src"]
}
"include": ["src"],
}