1
Fork 0

Add a test project

This commit is contained in:
Jake Howard 2024-09-15 20:53:55 +01:00
parent c4c4afeb8b
commit 626d214fbe
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View file

@ -130,3 +130,4 @@ dist
.yarn/install-state.gz
.pnp.*
/build

5
build.js Normal file
View file

@ -0,0 +1,5 @@
await Bun.build({
entrypoints: ['./src/js/index.js'],
outdir: './build',
minify: true
});

BIN
bun.lockb Executable file

Binary file not shown.

8
package.json Normal file
View file

@ -0,0 +1,8 @@
{
"name": "bun-playground",
"module": "index.ts",
"type": "module",
"dependencies": {
"esbuild": "^0.23.1"
}
}

5
src/js/index.js Normal file
View file

@ -0,0 +1,5 @@
export function test() {
for (const i of [1, 2, 3]) {
console.log(i);
}
}