obsidian-plugin-config 1.3.9 → 1.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/obsidian-inject.js +1 -1
- package/docs/LLM-GUIDE.md +111 -0
- package/package.json +3 -3
- package/scripts/build-npm.ts +17 -5
- package/scripts/help.ts +37 -32
- package/scripts/inject-core.ts +28 -40
- package/src/main.ts +105 -108
- package/src/modals/GenericConfirmModal.ts +48 -47
- package/src/tools/index.ts +3 -3
- package/src/utils/NoticeHelper.ts +70 -87
- package/src/utils/SettingsHelper.ts +158 -168
- package/templates/.editorconfig +5 -1
- package/templates/package-sass.json +5 -0
- package/templates/package.json +43 -0
- package/templates/scripts/esbuild.config.ts +1 -1
- package/templates/scripts/help.ts +6 -7
- package/templates/tsconfig.json +29 -40
- package/versions.json +4 -1
- package/templates/help-plugin.ts +0 -51
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"engines": {
|
|
4
|
+
"npm": "please-use-yarn",
|
|
5
|
+
"yarn": ">=1.22.0"
|
|
6
|
+
},
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start": "yarn install && yarn dev",
|
|
9
|
+
"dev": "tsx scripts/esbuild.config.ts",
|
|
10
|
+
"build": "tsc -noEmit -skipLibCheck && tsx scripts/esbuild.config.ts production",
|
|
11
|
+
"real": "tsx scripts/esbuild.config.ts production real",
|
|
12
|
+
"acp": "tsx scripts/acp.ts",
|
|
13
|
+
"bacp": "tsx scripts/acp.ts -b",
|
|
14
|
+
"update-version": "tsx scripts/update-version.ts",
|
|
15
|
+
"v": "tsx scripts/update-version.ts",
|
|
16
|
+
"release": "tsx scripts/release.ts",
|
|
17
|
+
"r": "tsx scripts/release.ts",
|
|
18
|
+
"help": "tsx scripts/help.ts",
|
|
19
|
+
"h": "tsx scripts/help.ts",
|
|
20
|
+
"lint": "eslint . --ext .ts",
|
|
21
|
+
"lint:fix": "eslint . --ext .ts --fix"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/eslint": "latest",
|
|
25
|
+
"@types/node": "^22.15.26",
|
|
26
|
+
"@types/semver": "^7.7.0",
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "latest",
|
|
28
|
+
"@typescript-eslint/parser": "latest",
|
|
29
|
+
"builtin-modules": "3.3.0",
|
|
30
|
+
"dedent": "^1.6.0",
|
|
31
|
+
"dotenv": "^16.4.5",
|
|
32
|
+
"esbuild": "latest",
|
|
33
|
+
"eslint": "latest",
|
|
34
|
+
"eslint-import-resolver-typescript": "latest",
|
|
35
|
+
"jiti": "latest",
|
|
36
|
+
"obsidian": "*",
|
|
37
|
+
"obsidian-typings": "latest",
|
|
38
|
+
"prettier": "^3.4.0",
|
|
39
|
+
"semver": "^7.7.2",
|
|
40
|
+
"tsx": "^4.19.4",
|
|
41
|
+
"typescript": "^5.8.2"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -173,7 +173,7 @@ async function createBuildContext(buildPath: string, isProd: boolean, entryPoint
|
|
|
173
173
|
...(hasSass ? [
|
|
174
174
|
await (async () => {
|
|
175
175
|
try {
|
|
176
|
-
// @ts-
|
|
176
|
+
// @ts-expect-error - esbuild-sass-plugin is installed during injection
|
|
177
177
|
const { sassPlugin } = await import('esbuild-sass-plugin');
|
|
178
178
|
return sassPlugin({
|
|
179
179
|
syntax: 'scss',
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env tsx
|
|
2
2
|
|
|
3
3
|
console.log(`
|
|
4
|
-
🎯 Obsidian Plugin
|
|
5
|
-
Available commands in this autonomous plugin
|
|
4
|
+
🎯 Obsidian Plugin Commands
|
|
6
5
|
|
|
7
6
|
═══════════════════════════════════════════════════════════════════
|
|
8
7
|
|
|
@@ -13,7 +12,7 @@ DEVELOPMENT:
|
|
|
13
12
|
yarn dev # Build dev mode with hot reload
|
|
14
13
|
yarn build # Build production
|
|
15
14
|
yarn real # Build + install in real vault
|
|
16
|
-
yarn lint, lint:fix # ESLint
|
|
15
|
+
yarn lint, lint:fix # ESLint check/fix
|
|
17
16
|
|
|
18
17
|
VERSION & RELEASE:
|
|
19
18
|
yarn v, update-version # Update version (package.json + manifest.json)
|
|
@@ -39,13 +38,13 @@ GIT OPERATIONS:
|
|
|
39
38
|
⚙️ CONFIGURATION
|
|
40
39
|
|
|
41
40
|
ENVIRONMENT:
|
|
42
|
-
- Edit .env to
|
|
43
|
-
-
|
|
41
|
+
- Edit .env to set TEST_VAULT and REAL_VAULT
|
|
42
|
+
- Standalone scripts (no external dependencies)
|
|
44
43
|
- Automatic Git sync verification before push
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
STANDALONE PLUGIN:
|
|
47
46
|
✅ Independent local scripts
|
|
48
|
-
✅
|
|
47
|
+
✅ Built-in TypeScript and ESLint configuration
|
|
49
48
|
✅ GitHub Actions workflows with Yarn
|
|
50
49
|
✅ No dependency on obsidian-plugin-config
|
|
51
50
|
`);
|
package/templates/tsconfig.json
CHANGED
|
@@ -1,41 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"include": [
|
|
34
|
-
"./src/**/*.ts",
|
|
35
|
-
"./scripts/**/*.ts"
|
|
36
|
-
],
|
|
37
|
-
"exclude": [
|
|
38
|
-
"node_modules",
|
|
39
|
-
"eslint.config.ts"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"types": ["obsidian-typings"],
|
|
4
|
+
"paths": {
|
|
5
|
+
"obsidian-typings/implementations": [
|
|
6
|
+
"./node_modules/obsidian-typings/dist/cjs/implementations.d.cts",
|
|
7
|
+
"./node_modules/obsidian-typings/dist/esm/implementations.mjs"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"module": "NodeNext",
|
|
11
|
+
"moduleResolution": "NodeNext",
|
|
12
|
+
"target": "ES2021",
|
|
13
|
+
"inlineSourceMap": true,
|
|
14
|
+
"inlineSources": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
"noImplicitAny": true,
|
|
17
|
+
"importHelpers": true,
|
|
18
|
+
"isolatedModules": true,
|
|
19
|
+
"allowImportingTsExtensions": true,
|
|
20
|
+
"noEmit": true,
|
|
21
|
+
"allowSyntheticDefaultImports": true,
|
|
22
|
+
"verbatimModuleSyntax": true,
|
|
23
|
+
"forceConsistentCasingInFileNames": true,
|
|
24
|
+
"strictNullChecks": true,
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
"lib": ["DOM", "ES2021"]
|
|
27
|
+
},
|
|
28
|
+
"include": ["./src/**/*.ts", "./scripts/**/*.ts"],
|
|
29
|
+
"exclude": ["node_modules", "eslint.config.ts"]
|
|
30
|
+
}
|
package/versions.json
CHANGED
package/templates/help-plugin.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env tsx
|
|
2
|
-
|
|
3
|
-
console.log(`
|
|
4
|
-
🎯 Obsidian Plugin - Quick Help
|
|
5
|
-
Available commands in this standalone plugin
|
|
6
|
-
|
|
7
|
-
═══════════════════════════════════════════════════════════════════
|
|
8
|
-
|
|
9
|
-
📋 MAIN COMMANDS
|
|
10
|
-
|
|
11
|
-
DEVELOPMENT:
|
|
12
|
-
yarn start # Install dependencies + start dev
|
|
13
|
-
yarn dev # Build dev mode with hot reload
|
|
14
|
-
yarn build # Build production
|
|
15
|
-
yarn real # Build + install in real vault
|
|
16
|
-
yarn lint, lint:fix # ESLint check/fix
|
|
17
|
-
|
|
18
|
-
VERSION & RELEASE:
|
|
19
|
-
yarn v, update-version # Update version (package.json + manifest.json)
|
|
20
|
-
yarn release, r # Create GitHub release with tag
|
|
21
|
-
|
|
22
|
-
GIT OPERATIONS:
|
|
23
|
-
yarn acp # Add, commit, push (with Git sync)
|
|
24
|
-
yarn bacp # Build + add, commit, push
|
|
25
|
-
yarn run help, h # This help
|
|
26
|
-
|
|
27
|
-
═══════════════════════════════════════════════════════════════════
|
|
28
|
-
|
|
29
|
-
🚀 TYPICAL WORKFLOW
|
|
30
|
-
|
|
31
|
-
1. yarn start # Initial setup
|
|
32
|
-
2. yarn dev # Daily development
|
|
33
|
-
3. yarn build # Test production build
|
|
34
|
-
4. yarn v # Update version
|
|
35
|
-
5. yarn release # Publish GitHub release
|
|
36
|
-
|
|
37
|
-
═══════════════════════════════════════════════════════════════════
|
|
38
|
-
|
|
39
|
-
⚙️ CONFIGURATION
|
|
40
|
-
|
|
41
|
-
ENVIRONMENT:
|
|
42
|
-
- Edit .env to set TEST_VAULT and REAL_VAULT
|
|
43
|
-
- Standalone scripts (no external dependencies)
|
|
44
|
-
- Automatic Git sync verification before push
|
|
45
|
-
|
|
46
|
-
STANDALONE PLUGIN:
|
|
47
|
-
✅ Independent local scripts
|
|
48
|
-
✅ Built-in TypeScript and ESLint configuration
|
|
49
|
-
✅ GitHub Actions workflows with Yarn
|
|
50
|
-
✅ No dependency on obsidian-plugin-config
|
|
51
|
-
`);
|