Skip to content

Commit

Permalink
Merge pull request #37 from anicholson/tightening
Browse files Browse the repository at this point in the history
v1.4.4: Cleanup
  • Loading branch information
anicholson authored May 3, 2024
2 parents 971873e + d48221b commit 77278be
Show file tree
Hide file tree
Showing 13 changed files with 388 additions and 206 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ data.json
.DS_Store
.cred.json
.token.json
meta.json
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 21.5.0
6 changes: 5 additions & 1 deletion esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import esbuild from "esbuild";
import process from "process";
import builtins from 'builtin-modules'
import fs from 'node:fs'

const banner =
`/*
Expand All @@ -11,12 +12,13 @@ if you want to view the source, please visit the github repository of this plugi

const prod = (process.argv[2] === 'production');

esbuild.build({
let result = await esbuild.build({
banner: {
js: banner,
},
entryPoints: ['src/main.ts'],
bundle: true,
metafile: prod,
external: [
'obsidian',
'electron',
Expand All @@ -40,3 +42,5 @@ esbuild.build({
treeShaking: true,
outfile: 'main.js',
}).catch(() => process.exit(1));

fs.writeFileSync('meta.json', JSON.stringify(result.metafile, null, 2))
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "obsidian-google-mail",
"name": "Google Mail",
"version": "1.4.3",
"version": "1.4.4",
"minAppVersion": "0.15.0",
"description": "It fetches Google Mail as md notes. For note taking on newletters and idea collections.",
"author": "Lite C",
"authorUrl": "https://github.com/thingnotok",
"author": "Lite C & Andy Nicholson",
"authorUrl": "https://github.com/anicholson",
"isDesktopOnly": false
}
Loading

0 comments on commit 77278be

Please sign in to comment.