move bridge plugin to package
This commit is contained in:
parent
fe11f30c01
commit
4a65f142bc
18 changed files with 25 additions and 14 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -2,6 +2,7 @@ node_modules/
|
|||
dist/
|
||||
investigation/
|
||||
vaults/
|
||||
plugin/main.js
|
||||
packages/*/dist/
|
||||
packages/bridge-plugin/main.js
|
||||
server/plugins/*/plugin/main.js
|
||||
demo-vaults/
|
||||
|
|
|
|||
13
build.js
13
build.js
|
|
@ -8,17 +8,8 @@ Promise.all([
|
|||
// Build ignis-ui.js (delegated to packages/ui)
|
||||
require("./packages/ui/build.js"),
|
||||
|
||||
// Build ignis-bridge plugin
|
||||
esbuild.build({
|
||||
entryPoints: [path.join(__dirname, "plugin", "src", "main.js")],
|
||||
bundle: true,
|
||||
outfile: path.join(__dirname, "plugin", "main.js"),
|
||||
format: "cjs",
|
||||
platform: "browser",
|
||||
target: ["chrome90"],
|
||||
external: ["obsidian", "fs"],
|
||||
logLevel: "info",
|
||||
}),
|
||||
// Build ignis-bridge plugin (delegated to packages/bridge-plugin)
|
||||
require("./packages/bridge-plugin/build.js"),
|
||||
|
||||
// Build headless-sync bundled plugin
|
||||
esbuild.build({
|
||||
|
|
|
|||
13
packages/bridge-plugin/build.js
Normal file
13
packages/bridge-plugin/build.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
const esbuild = require("esbuild");
|
||||
const path = require("path");
|
||||
|
||||
module.exports = esbuild.build({
|
||||
entryPoints: [path.join(__dirname, "src", "main.js")],
|
||||
bundle: true,
|
||||
outfile: path.join(__dirname, "main.js"),
|
||||
format: "cjs",
|
||||
platform: "browser",
|
||||
target: ["chrome90"],
|
||||
external: ["obsidian", "fs"],
|
||||
logLevel: "info",
|
||||
});
|
||||
|
|
@ -1,5 +1,11 @@
|
|||
{
|
||||
"name": "@ignis/bridge-plugin",
|
||||
"version": "0.0.0-internal",
|
||||
"private": true
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "node build.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"esbuild": "^0.20.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ const {
|
|||
} = require("./plugin-system/obsidian-plugin");
|
||||
|
||||
const BRIDGE_PLUGIN_ID = "ignis-bridge";
|
||||
const BRIDGE_PLUGIN_DIR = path.join(__dirname, "..", "plugin");
|
||||
const BRIDGE_PLUGIN_DIR = path.join(__dirname, "..", "packages", "bridge-plugin");
|
||||
|
||||
// .ignis metadata helpers
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue