Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sseppo committed Dec 12, 2024
0 parents commit 2aea6cd
Show file tree
Hide file tree
Showing 10 changed files with 4,271 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_STORE
node_modules
45 changes: 45 additions & 0 deletions builder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
const esbuild = require("esbuild");

esbuild
.context({
logLevel: "info",
entryPoints: ["index.ts"],
bundle: true,
sourcemap: true,
minify: true,
outdir: "dist",
})
.then((r) => {
console.log("✨ Build succeeded.");

r.watch();
console.log("watching...");
})
.catch(() => process.exit(1));

/*
publicPath: 'assets',
loader: {
'.png': 'file',
'.svg': 'file',
'.jpeg': 'file',
'.jpg': 'file',
},
*/

/* ei toiminut toi watch osa enää
require("esbuild")
.build({
entryPoints: ["index.ts"],
bundle: true,
minify: false,
sourcemap: true,
outfile: "dist/index.js",
})
.catch(() => process.exit(1));
*/
9 changes: 9 additions & 0 deletions builderuusi.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as esbuild from "esbuild";

await esbuild.build({
entryPoints: ["index.ts"],
bundle: true,
minify: false,
sourcemap: true,
outfile: "dist/index.js",
});
Loading

0 comments on commit 2aea6cd

Please sign in to comment.