mirror of
https://github.com/unarray/file-tree-generator.git
synced 2026-07-22 08:40:29 +00:00
Init project
This commit is contained in:
parent
37a9799841
commit
a60f2a8b5e
5 changed files with 89 additions and 0 deletions
23
.gitignore
vendored
Normal file
23
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# vscode
|
||||
.vscode
|
||||
|
||||
# Intellij
|
||||
*.iml
|
||||
.idea
|
||||
|
||||
# npm
|
||||
node_modules
|
||||
pnpm-lock.yaml
|
||||
|
||||
# Don't include the compiled main.js file in the repo.
|
||||
# They should be uploaded to GitHub releases instead.
|
||||
main.js
|
||||
|
||||
# Exclude sourcemaps
|
||||
*.map
|
||||
|
||||
# obsidian
|
||||
data.json
|
||||
|
||||
# Exclude macOS Finder (System Explorer) View States
|
||||
.DS_Store
|
||||
1
README.md
Normal file
1
README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
# File Tree Generator
|
||||
39
package.json
Normal file
39
package.json
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"name": "file-tree-generator",
|
||||
"displayName": "📁 File Tree Generator",
|
||||
"version": "1.0.0",
|
||||
"description": "Generate a file tree using Obsidian callouts!",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"dev": "tsup-node --watch ./src",
|
||||
"build": "tsup-node",
|
||||
"version": "node version-bump.mjs && git add manifest.json versions.json"
|
||||
},
|
||||
"keywords": [
|
||||
"file",
|
||||
"tree",
|
||||
"file-tree",
|
||||
"generator",
|
||||
"file-tree-generator",
|
||||
"plugin",
|
||||
"obsidian",
|
||||
"obsidian-plugin"
|
||||
],
|
||||
"author": "Unarray",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@bluzzi/eslint-config": "^1.1.0",
|
||||
"@electron/remote": "^2.0.10",
|
||||
"@types/node": "^16.11.6",
|
||||
"eslint": "^8.47.0",
|
||||
"obsidian": "latest",
|
||||
"tsconfig-paths": "^4.2.0",
|
||||
"tsup": "^7.2.0",
|
||||
"typescript": "4.7.4"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"@bluzzi"
|
||||
]
|
||||
}
|
||||
}
|
||||
16
tsconfig.json
Normal file
16
tsconfig.json
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "commonjs",
|
||||
|
||||
"strict": true,
|
||||
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"#/*": ["./src/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
10
tsup.config.ts
Normal file
10
tsup.config.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { defineConfig } from "tsup";
|
||||
|
||||
export default defineConfig((options) => ({
|
||||
entry: {
|
||||
"main": "src/FileTreeGenerator.ts"
|
||||
},
|
||||
minify: !options.watch,
|
||||
format: "cjs",
|
||||
outDir: "./"
|
||||
}));
|
||||
Loading…
Reference in a new issue