Install Eleventy

This commit is contained in:
Helen Chong 2024-04-06 11:57:28 +08:00
parent a16f4c2464
commit 298c96754b
5 changed files with 56 additions and 0 deletions

15
README.md Normal file
View File

@ -0,0 +1,15 @@
# neocities-leilukin
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run index.ts
```
This project was created using `bun init` in bun v1.1.0. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.

BIN
bun.lockb Normal file

Binary file not shown.

1
index.ts Normal file
View File

@ -0,0 +1 @@
console.log("Hello via Bun!");

13
package.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "neocities-leilukin",
"module": "index.ts",
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@11ty/eleventy": "^2.0.1"
}
}

27
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
}
}