From 7c23042469b747c29d8c26a25af682b25b91639f Mon Sep 17 00:00:00 2001 From: PanSi21 Date: Sat, 4 Jan 2025 23:21:46 +0100 Subject: [PATCH] bun init --- .gitignore | 175 ++++++++++++++++++++++++++++++++++++++++++++++++++ bun.lockb | Bin 0 -> 3125 bytes index.js | 1 + jsconfig.json | 27 ++++++++ package.json | 11 ++++ 5 files changed, 214 insertions(+) create mode 100644 .gitignore create mode 100755 bun.lockb create mode 100644 index.js create mode 100644 jsconfig.json create mode 100644 package.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..ee1653107c4755ee60e0e5a7889d625e8f23b889 GIT binary patch literal 3125 zcmY#Z)GsYA(of3F(@)JSQ%EY!;{sycoc!eMw9K4T-L(9o+{6;yG6OCq1_p-4|K4-& z?J(7T&wf+ddFsJQdX*-Bt-T&xyr=6a6I>8=X(=~Q5fHFLC56*z16;?pxK=Vx8YoUhuTqurXC#0WBg0ssmH5D)=kGoZUb z=7BID5EBDn`h$Urt&#Mr5~CTY2Bv=zkZlFj4{`@Ed`Pzc1yGM8P(Le>mI7iBO$>n9 zuL<tpYMx%Y@vQ zCvT5YR9@GRgJdo!ykUT4!GBlK#w+&bU8xy~JtDL2lq@-9 zcA>c5Zgok9VxYlM#)*fE?fPeAnlRfE6E(^?1AkCr{&}034VTlvhs=&g@ zi{!%^M8YzR-yXF-WB>4LS;=bi6&n?w1x)ojtD?WRWkzHrYm9zJ&8A6;-yiPx7EOCq zwFJprcGXM4k9=Q!A3NUXz3ach<)OsQ zrv}Qx_l!k$b=3ZMxwSHVy;Jc1npt5WmR zbQDY!5_2-s^YYU`btDM<`wsyiHYgo_fEvgFt!}w&N{x-|fckKl0E#bA`2dP@P<{sG z5eul^5F*Whm9HRkK>9)Ez|8A_nqdd5$U%V1Cfdj>w$uXXD>Jy84AFfBsn=okv;bqA zsh)wJ0az4VX?q0oGQ4)%{G2hI)p2#^wwRu+{>s_Ge0c$w`WlZ&q%=ApK=+T0BjG+VS!xM0yB1dU)YHnF-k)CTs zNorAEVoq>LQD$Dcoq{1E5G>$HuJ!5k)=gbCWwFw;65F*r!Tkq3z|Jo*uF05kx>0a|XZX9O|_n#u+p F1puicMg9N) literal 0 HcmV?d00001 diff --git a/index.js b/index.js new file mode 100644 index 0000000..f67b2c6 --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +console.log("Hello via Bun!"); \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..238655f --- /dev/null +++ b/jsconfig.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 + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..3d599dd --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "bun-test", + "module": "index.js", + "type": "module", + "devDependencies": { + "@types/bun": "latest" + }, + "peerDependencies": { + "typescript": "^5.0.0" + } +} \ No newline at end of file