Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 2892f0b

Browse files
committed
rolup depracation for esbuild
1 parent c49df71 commit 2892f0b

File tree

21 files changed

+5031
-3057
lines changed

21 files changed

+5031
-3057
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
id: build
2323
run: |
2424
npm install
25-
npm run build -- --environment BUILD:production
25+
npm run release
2626
# Create the release on github
2727
- name: Create Release
2828
id: create_release

esbuild.config.mjs

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import esbuild from "esbuild";
2+
import process from "process";
3+
import builtins from "builtin-modules";
4+
5+
const banner =
6+
`/*
7+
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
8+
if you want to view the source, please visit the github repository of this plugin
9+
*/
10+
`;
11+
12+
const prod = (process.argv[2] === "production");
13+
14+
const context = await esbuild.context({
15+
banner: {
16+
js: banner,
17+
},
18+
entryPoints: ["src/main.ts"],
19+
bundle: true,
20+
external: [
21+
"obsidian",
22+
"electron",
23+
"@codemirror/autocomplete",
24+
"@codemirror/closebrackets",
25+
"@codemirror/collab",
26+
"@codemirror/commands",
27+
"@codemirror/comment",
28+
"@codemirror/fold",
29+
"@codemirror/gutter",
30+
"@codemirror/highlight",
31+
"@codemirror/history",
32+
"@codemirror/language",
33+
"@codemirror/lint",
34+
"@codemirror/matchbrackets",
35+
"@codemirror/panel",
36+
"@codemirror/rangeset",
37+
"@codemirror/rectangular-selection",
38+
"@codemirror/search",
39+
"@codemirror/state",
40+
"@codemirror/stream-parser",
41+
"@codemirror/text",
42+
"@codemirror/tooltip",
43+
"@codemirror/view",
44+
"@codemirror/basic-setup",
45+
"@lezer/common",
46+
"@lezer/highlight",
47+
"@lezer/lr",
48+
...builtins,
49+
],
50+
format: "cjs",
51+
target: "ES6",
52+
logLevel: "info",
53+
sourcemap: prod ? false : "inline",
54+
minify: prod ? true : false,
55+
treeShaking: true,
56+
outfile: "dist/main.js",
57+
loader: {
58+
".ttf": "file",
59+
},
60+
});
61+
62+
if (prod) {
63+
await context.rebuild();
64+
process.exit(0);
65+
} else {
66+
await context.watch();
67+
}

manifest-beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "3.5.0",
4+
"version": "3.5.1",
55
"minAppVersion": "1.1.1",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "3.5.0",
4+
"version": "3.5.1`",
55
"minAppVersion": "1.1.1",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

0 commit comments

Comments
 (0)