mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2025-06-18 16:20:07 +00:00
Init v2
This commit is contained in:
parent
4f3d91762b
commit
6e2a3cd870
30 changed files with 2525 additions and 1530 deletions
8
scripts/build.ts
Normal file
8
scripts/build.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
const reactOutput = Bun.spawnSync({
|
||||
cmd: ['bun', 'build:react']
|
||||
})
|
||||
console.log(reactOutput.stdout.toString())
|
||||
console.log(`Built react app`)
|
||||
// fs.cpSync(path.join(__dirname, '../build'), path.join(__dirname, '../dist/php'), {recursive: true})
|
27
scripts/tsconfig.json
Normal file
27
scripts/tsconfig.json
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
// Enable latest features
|
||||
"lib": ["ESNext", "DOM"],
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleDetection": "force",
|
||||
"jsx": "react-jsx",
|
||||
"allowJs": true,
|
||||
|
||||
// Bundler mode
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"noEmit": true,
|
||||
|
||||
// Best practices
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
||||
// Some stricter flags (disabled by default)
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"noPropertyAccessFromIndexSignature": false
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue