Install Eleventy

This commit is contained in:
Helen Chong
2024-04-06 22:17:13 +08:00
parent 9c0bd3a18a
commit 7eacb558b6
5 changed files with 46 additions and 1 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
.DS_Store
**/blog/posts/2020-11-10-Post-Template.html
__Old
__Old
node_modules

BIN
bun.lockb Normal file

Binary file not shown.

1
index.ts Normal file
View File

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

16
package.json Normal file
View File

@@ -0,0 +1,16 @@
{
"name": "helenclx.github.io",
"module": "index.ts",
"scripts": {
"build": "bun run build"
},
"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
}
}