Skip to content

Commit

Permalink
Move breadcrumbs-2 changes over to breadcrumbs v4 branch instead
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Jan 13, 2024
1 parent 06d2fb7 commit 2a257ab
Show file tree
Hide file tree
Showing 132 changed files with 6,296 additions and 42,659 deletions.
5 changes: 0 additions & 5 deletions .autorc

This file was deleted.

10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = tab
indent_size = 4
tab_width = 4
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/

main.js
23 changes: 23 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": { "node": true },
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"@typescript-eslint/ban-ts-comment": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-empty-function": "off"
}
}
13 changes: 0 additions & 13 deletions .eslintrc.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

82 changes: 0 additions & 82 deletions .github/workflows/release.yml

This file was deleted.

20 changes: 12 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# vscode
.vscode

# Intellij
*.iml
.idea

# npm
node_modules
package-lock.json

# build
*.js.map
# Don't include the compiled main.js file in the repo.
# They should be uploaded to GitHub releases instead.
# TODO: Untrack main.js (I didn't originally ignore it)
main.js

# Exclude sourcemaps
*.map

# obsidian
data.json

# Tests

*.received.*
test/*.js
src/**/*.js
# Exclude macOS Finder (System Explorer) View States
.DS_Store
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tag-version-prefix=""
22 changes: 0 additions & 22 deletions .vscode/launch.json

This file was deleted.

34 changes: 0 additions & 34 deletions .vscode/settings.json

This file was deleted.

85 changes: 42 additions & 43 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import builtins from "builtin-modules";
import esbuild from "esbuild";
import esbuildSvelte from "esbuild-svelte";
import process from "process";
import builtins from "builtin-modules";
import sveltePlugin from "esbuild-svelte";
import sveltePreprocess from "svelte-preprocess";

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

const prod = process.argv[2] === "production";

const context = await esbuild
.context({
banner: {
js: banner,
},
entryPoints: ["src/main.ts"],
mainFields: ["svelte", "browser", "module", "main"],
bundle: true,
external: [
"obsidian",
"electron",
"@codemirror/autocomplete",
"@codemirror/collab",
"@codemirror/commands",
"@codemirror/language",
"@codemirror/lint",
"@codemirror/search",
"@codemirror/state",
"@codemirror/view",
"@lezer/common",
"@lezer/highlight",
"@lezer/lr",
...builtins,
],
format: "cjs",
plugins: [
sveltePlugin({
compilerOptions: { css: true },
preprocess: sveltePreprocess(),
}),
],
target: "es2018",
logLevel: "info",
sourcemap: prod ? false : "inline",
treeShaking: true,
outfile: "main.js",
})
const context = await esbuild.context({
banner: {
js: banner,
},
// TODO: Update this entryPoint after moving main.ts to src/main.ts
entryPoints: ["main.ts"],
bundle: true,
external: [
"obsidian",
"electron",
"@codemirror/autocomplete",
"@codemirror/collab",
"@codemirror/commands",
"@codemirror/language",
"@codemirror/lint",
"@codemirror/search",
"@codemirror/state",
"@codemirror/view",
"@lezer/common",
"@lezer/highlight",
"@lezer/lr",
...builtins,
],
format: "cjs",
target: "es2018",
logLevel: "info",
sourcemap: prod ? false : "inline",
treeShaking: true,
outfile: "main.js",
plugins: [
esbuildSvelte({
compilerOptions: { css: true },
preprocess: sveltePreprocess(),
}),
],
});

if (prod) {
await context.rebuild();
process.exit(0);
await context.rebuild();
process.exit(0);
} else {
await context.watch();
}
await context.watch();
}
Loading

0 comments on commit 2a257ab

Please sign in to comment.