mirror of
https://github.com/d0zingcat/obsidian-send-to-ghost.git
synced 2026-06-04 15:11:16 +00:00
Line breaks are now LF
This commit is contained in:
42
.eslintrc
42
.eslintrc
@@ -1,23 +1,21 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"env": { "node": true },
|
"env": { "node": true },
|
||||||
"plugins": [
|
"plugins": ["@typescript-eslint"],
|
||||||
"@typescript-eslint"
|
"extends": [
|
||||||
],
|
"eslint:recommended",
|
||||||
"extends": [
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
"eslint:recommended",
|
"plugin:@typescript-eslint/recommended"
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
],
|
||||||
"plugin:@typescript-eslint/recommended"
|
"parserOptions": {
|
||||||
],
|
"sourceType": "module"
|
||||||
"parserOptions": {
|
},
|
||||||
"sourceType": "module"
|
"rules": {
|
||||||
},
|
"no-unused-vars": "off",
|
||||||
"rules": {
|
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
|
||||||
"no-unused-vars": "off",
|
"@typescript-eslint/ban-ts-comment": "off",
|
||||||
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
|
"no-prototype-builtins": "off",
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
"@typescript-eslint/no-empty-function": "off"
|
||||||
"no-prototype-builtins": "off",
|
}
|
||||||
"@typescript-eslint/no-empty-function": "off"
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -43,4 +43,4 @@ This plugin uses PNPM for dependency management.
|
|||||||
|
|
||||||
### Issues & Support
|
### Issues & Support
|
||||||
|
|
||||||
If you find a bug in the plugin, please submit an [issue](https://github.com/Southpaw1496/obsidian-send-to-ghost). Otherwise, please contact me via [my website](https://southpaw1496.me).
|
If you find a bug, please submit an [issue](https://github.com/Southpaw1496/obsidian-send-to-ghost). Otherwise, please contact me via [my website](https://southpaw1496.me).
|
||||||
|
|||||||
@@ -1,52 +1,54 @@
|
|||||||
import esbuild from "esbuild";
|
import esbuild from "esbuild";
|
||||||
import process from "process";
|
import process from "process";
|
||||||
import builtins from 'builtin-modules'
|
import builtins from "builtin-modules";
|
||||||
|
|
||||||
const banner =
|
const banner = `/*
|
||||||
`/*
|
|
||||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||||
if you want to view the source, please visit the github repository of this plugin
|
if you want to view the source, please visit the github repository of this plugin
|
||||||
*/
|
*/
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const prod = (process.argv[2] === 'production');
|
const prod = process.argv[2] === "production";
|
||||||
|
|
||||||
esbuild.build({
|
esbuild
|
||||||
banner: {
|
.build({
|
||||||
js: banner,
|
banner: {
|
||||||
},
|
js: banner,
|
||||||
entryPoints: ['src/main.ts'],
|
},
|
||||||
bundle: true,
|
entryPoints: ["src/main.ts"],
|
||||||
external: [
|
bundle: true,
|
||||||
'obsidian',
|
external: [
|
||||||
'electron',
|
"obsidian",
|
||||||
'@codemirror/autocomplete',
|
"electron",
|
||||||
'@codemirror/closebrackets',
|
"@codemirror/autocomplete",
|
||||||
'@codemirror/collab',
|
"@codemirror/closebrackets",
|
||||||
'@codemirror/commands',
|
"@codemirror/collab",
|
||||||
'@codemirror/comment',
|
"@codemirror/commands",
|
||||||
'@codemirror/fold',
|
"@codemirror/comment",
|
||||||
'@codemirror/gutter',
|
"@codemirror/fold",
|
||||||
'@codemirror/highlight',
|
"@codemirror/gutter",
|
||||||
'@codemirror/history',
|
"@codemirror/highlight",
|
||||||
'@codemirror/language',
|
"@codemirror/history",
|
||||||
'@codemirror/lint',
|
"@codemirror/language",
|
||||||
'@codemirror/matchbrackets',
|
"@codemirror/lint",
|
||||||
'@codemirror/panel',
|
"@codemirror/matchbrackets",
|
||||||
'@codemirror/rangeset',
|
"@codemirror/panel",
|
||||||
'@codemirror/rectangular-selection',
|
"@codemirror/rangeset",
|
||||||
'@codemirror/search',
|
"@codemirror/rectangular-selection",
|
||||||
'@codemirror/state',
|
"@codemirror/search",
|
||||||
'@codemirror/stream-parser',
|
"@codemirror/state",
|
||||||
'@codemirror/text',
|
"@codemirror/stream-parser",
|
||||||
'@codemirror/tooltip',
|
"@codemirror/text",
|
||||||
'@codemirror/view',
|
"@codemirror/tooltip",
|
||||||
...builtins],
|
"@codemirror/view",
|
||||||
format: 'cjs',
|
...builtins,
|
||||||
watch: !prod,
|
],
|
||||||
target: 'es2016',
|
format: "cjs",
|
||||||
logLevel: "info",
|
watch: !prod,
|
||||||
sourcemap: prod ? false : 'inline',
|
target: "es2016",
|
||||||
treeShaking: true,
|
logLevel: "info",
|
||||||
outfile: 'main.js',
|
sourcemap: prod ? false : "inline",
|
||||||
}).catch(() => process.exit(1));
|
treeShaking: true,
|
||||||
|
outfile: "main.js",
|
||||||
|
})
|
||||||
|
.catch(() => process.exit(1));
|
||||||
|
|||||||
3406
pnpm-lock.yaml
generated
3406
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user