更新 .gitignore 文件以排除不必要的文件,并删除 rollup.config.js 配置文件。

This commit is contained in:
wood chen 2025-03-21 20:24:15 +08:00
parent 6e7d189e60
commit 797574042e
3 changed files with 2001 additions and 21 deletions

17
.gitignore vendored
View File

@ -1,15 +1,22 @@
# 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.
main.js
# ignore
# Exclude sourcemaps
*.map
# obsidian
data.json
workspace.code-workspace
# Exclude macOS Finder (System Explorer) View States
.DS_Store

1989
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,16 +0,0 @@
import typescript from "@rollup/plugin-typescript";
import { nodeResolve } from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
export default {
input: "src/main.ts",
output: {
dir: ".",
sourcemap: "inline",
format: "cjs",
exports: "default",
},
external: ["obsidian", "electron"],
plugins: [typescript(), nodeResolve({ browser: false }), commonjs(), json()],
};