From 7b8c47d88da981fb47c4eeb8b48ccd54fbcb53be Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Wed, 7 May 2025 15:28:47 +0200 Subject: [PATCH] feat: bun project setup --- .gitignore | 175 ++++++++++++++++++++++++++++++++++++++++++++++++++ bun.lockb | Bin 0 -> 3121 bytes package.json | 15 +++++ src/index.ts | 1 + tsconfig.json | 27 ++++++++ 5 files changed, 218 insertions(+) create mode 100644 .gitignore create mode 100755 bun.lockb create mode 100644 package.json create mode 100644 src/index.ts create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b1ee42 --- /dev/null +++ b/.gitignore @@ -0,0 +1,175 @@ +# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore + +# Logs + +logs +_.log +npm-debug.log_ +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Caches + +.cache + +# Diagnostic reports (https://nodejs.org/api/report.html) + +report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json + +# Runtime data + +pids +_.pid +_.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover + +lib-cov + +# Coverage directory used by tools like istanbul + +coverage +*.lcov + +# nyc test coverage + +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) + +.grunt + +# Bower dependency directory (https://bower.io/) + +bower_components + +# node-waf configuration + +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) + +build/Release + +# Dependency directories + +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) + +web_modules/ + +# TypeScript cache + +*.tsbuildinfo + +# Optional npm cache directory + +.npm + +# Optional eslint cache + +.eslintcache + +# Optional stylelint cache + +.stylelintcache + +# Microbundle cache + +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history + +.node_repl_history + +# Output of 'npm pack' + +*.tgz + +# Yarn Integrity file + +.yarn-integrity + +# dotenv environment variable files + +.env +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) + +.parcel-cache + +# Next.js build output + +.next +out + +# Nuxt.js build / generate output + +.nuxt +dist + +# Gatsby files + +# Comment in the public line in if your project uses Gatsby and not Next.js + +# https://nextjs.org/blog/next-9-1#public-directory-support + +# public + +# vuepress build output + +.vuepress/dist + +# vuepress v2.x temp and cache directory + +.temp + +# Docusaurus cache and generated files + +.docusaurus + +# Serverless directories + +.serverless/ + +# FuseBox cache + +.fusebox/ + +# DynamoDB Local files + +.dynamodb/ + +# TernJS port file + +.tern-port + +# Stores VSCode versions used for testing VSCode extensions + +.vscode-test + +# yarn v2 + +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +# IntelliJ based IDEs +.idea + +# Finder (MacOS) folder config +.DS_Store diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000000000000000000000000000000000000..e22b888147340d7a416e644173ff611dd43e2875 GIT binary patch literal 3121 zcmY#Z)GsYA(of3F(@)JSQ%EY!;{sycoc!eMw9K4T-L(9o+{6;yG6OCq1_p*3<{MI7 z^bfIi_51%RjWpc+&FIOpN$xxNCn-P3*SJ}|X(2aI5fHFLClJN%?YHR18Jb44LXbr3_L&@s1_`r*Q9d&uu2ZrTR_!*$$!CN)z>?deyetT5{&w9D5ZwYxjKB1|99z)FhxW6ai2ufPg6w zTL9g|45V3s7(^2TVES``ip_xfLGA&G0sTf4fazZYRBcUx{!c*tRzUq?K$;(j`GA-h z0JGl$=x|4%em0;cQDQVg)xh+(0`=Pf^@G9=luC#VKaepXwJ`M{8We^sP#R<&h!1iX z2*79%n>>C0`2T?nq$U8G$H)LN7ujeQNA9R&Rm`dnRQNueicorVp!JC#OX9(XBMush z!Plx*`#w7P(tf>2;{QyiI|bGDr^Wnpoc`;1@}BnB5n?-2G`k(iTv#}RoXs+||Cpoc zVX0H9{$C!+?_GKA_NIU*d2ZW7-^TFyyf|!iU(ZJjitM-n;Qg=GG5;D^X}4F$Bx~poTqX6$|<{*5lH5O;tvK`SoX%9dVf9Ypqt-? zYnH9t4&D};vRY-=jxL{@ z*>u*rPtLzVmqkW7*P_klWbTdQCH@!xsv?<-oUT}whbKiZd8L2p%e&&jy}~^2gn16P zTgJSyzovHj;Q|h+l!ooMRegNJoB6z=Udi8ja&C`?Eo!j2g~*Hb5)ABT$;lrno3sFEg*WBrzvP4_4#q zg%qWx+9?O!W-(3>X+-Edf}~&cT$ESdv;?g2)rFx}SqF&REY>&zON>G0;X( zs{z&uU}7}XGtx6OVqk!^BVg?UCPpo=`xqEtEelvnfr+usOwY&==!6WYA6CHqf*fJR zskvpTMS89kC8 z^UHJ#OM$_qTa;Q{np09-Qdy8%oLrPyP~re)>I0j3AV-+^k}~{GxQYGJRb*Qx_cQdL`*qc=RDG1L_2|EFlpB(gosyoq|U@Tn$t= zSUr*%P~-FRQ&RDmf}{#)4oI=C5inVp>KU4V98#K>l9`-I&@ITyfW{zmbs;GR>??4@ dLLw87lMvAXGz!7dHPy4wGX|LhO`U^|0sz|+O%4D6 literal 0 HcmV?d00001 diff --git a/package.json b/package.json new file mode 100644 index 0000000..254e614 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "wov-quest-results", + "module": "src/index.ts", + "type": "module", + "scripts": { + "format": "prettier --write --cache ." + }, + "devDependencies": { + "@types/bun": "latest", + "prettier": "^3.5.3" + }, + "peerDependencies": { + "typescript": "^5.0.0" + } +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..2a5e4b8 --- /dev/null +++ b/src/index.ts @@ -0,0 +1 @@ +console.log("Hello via Bun!"); diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..238655f --- /dev/null +++ b/tsconfig.json @@ -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 + } +}