Skip to content

Commit

Permalink
update packages and modify upload2notion
Browse files Browse the repository at this point in the history
  • Loading branch information
jxpeng98 committed Aug 29, 2023
1 parent fb7294d commit 722ca7b
Show file tree
Hide file tree
Showing 11 changed files with 719 additions and 699 deletions.
230 changes: 0 additions & 230 deletions Upload2Notion.ts

This file was deleted.

12 changes: 8 additions & 4 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ if you want to view the source, please visit the github repository of this plugi

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

esbuild.build({
const ctx = await esbuild.context({
banner: {
js: banner,
},
entryPoints: ['main.ts'],
entryPoints: ['src/main.ts'],
bundle: true,
external: [
'obsidian',
Expand Down Expand Up @@ -43,10 +43,14 @@ esbuild.build({
'@codemirror/view',
...builtins],
format: 'cjs',
watch: !prod,
target: 'es2016',
logLevel: "info",
sourcemap: prod ? false : 'inline',
treeShaking: true,
outfile: 'main.js',
}).catch(() => process.exit(1));
})

await ctx.watch();

// await ctx.dispose();

8 changes: 4 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "share-to-notionnext",
"name": "Share to NotionNext",
"version": "0.0.9",
"version": "0.1.0",
"minAppVersion": "0.0.1",
"description": "This is a plugin for Obsidian. This plugin shares obsidian md file to notion with notion api for NotionNext web deploy.",
"author": "jxpeng98",
"description": "Shares obsidian md file to notion with notion api for NotionNext web deploy, motivated by EasyChris/obsidian-to-notion.",
"author": "EasyChris, jxpeng98",
"authorUrl": "https://github.com/jxpeng98/obsidian-to-NotionNext",
"isDesktopOnly": false
}
}
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "share-to-notionnext",
"version": "0.0.9",
"version": "0.1.0",
"type": "module",
"description": "This is a plugin for Obsidian. This plugin share obsidian md file to notion with notion api for NotionNext web deploy.",
"description": "Shares obsidian md file to notion with notion api for NotionNext web deploy, motivated by EasyChris/obsidian-to-notion.",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
Expand All @@ -13,20 +13,21 @@
"author": "",
"license": "GNU GPLv3",
"devDependencies": {
"@types/node": "^17.0.35",
"@types/node": "^20.5.7",
"@types/yaml-front-matter": "^4.1.0",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"builtin-modules": "^3.2.0",
"esbuild": "0.13.12",
"esbuild": "0.19.2",
"obsidian": "latest",
"tslib": "2.3.1",
"typescript": "4.4.4"
"tslib": "2.6.2",
"typescript": "5.2.2"
},
"dependencies": {
"@tryfabric/martian": "^1.2.0",
"https-proxy-agent": "^5.0.1",
"https-proxy-agent": "^7.0.1",
"process": "^0.11.10",
"yaml": "^2.2.2",
"yaml-front-matter": "^4.1.1"
}
}
}
File renamed without changes.
Loading

0 comments on commit 722ca7b

Please sign in to comment.