Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/muness/obsidian-ics
Browse files Browse the repository at this point in the history
  • Loading branch information
muness committed Nov 4, 2023
2 parents 14a05e9 + 2aa8786 commit e18c6a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if you want to view the source, please visit the github repository of this plugi
`;

const prod = (process.argv[2] === "production");
const devBuild = (process.argv[2] === "dev-build");

const context = await esbuild.context({
banner: {
Expand Down Expand Up @@ -37,11 +38,11 @@ const context = await esbuild.context({
logLevel: "info",
sourcemap: prod ? false : "inline",
minify: prod ? true : false,
treeShaking: true,
outfile: "dist/main.js",
treeShaking: prod ? true : false,
outfile: prod ? "dist/main.js" : "dist/main-debug.js",
});

if (prod) {
if (prod || devBuild) {
await context.rebuild();
process.exit(0);
} else {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"dev-build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs dev-build",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
Expand Down

0 comments on commit e18c6a1

Please sign in to comment.