This commit is contained in:
Saahil dutta 2024-06-11 22:37:31 -04:00
parent 4f3d91762b
commit 6e2a3cd870
Signed by: neon
GPG key ID: 8A8B64515254CFC6
30 changed files with 2525 additions and 1530 deletions

8
scripts/build.ts Normal file
View 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
View 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
}
}