Add a test project
This commit is contained in:
parent
c4c4afeb8b
commit
626d214fbe
5 changed files with 19 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -130,3 +130,4 @@ dist
|
|||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
/build
|
||||
|
|
5
build.js
Normal file
5
build.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
await Bun.build({
|
||||
entrypoints: ['./src/js/index.js'],
|
||||
outdir: './build',
|
||||
minify: true
|
||||
});
|
BIN
bun.lockb
Executable file
BIN
bun.lockb
Executable file
Binary file not shown.
8
package.json
Normal file
8
package.json
Normal 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
5
src/js/index.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
export function test() {
|
||||
for (const i of [1, 2, 3]) {
|
||||
console.log(i);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue