obsidian-plugin-config 1.0.2 → 1.0.3

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.
Files changed (3) hide show
  1. package/README.md +50 -14
  2. package/package.json +87 -87
  3. package/versions.json +2 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Obsidian Plugin Config
2
2
 
3
- Système d'injection pour plugins Obsidian autonomes.
3
+ 🎯 Système d'injection pour plugins Obsidian autonomes.
4
4
 
5
5
  ## Installation Globale
6
6
 
@@ -10,7 +10,7 @@ npm install -g obsidian-plugin-config
10
10
 
11
11
  ## Utilisation
12
12
 
13
- ### Injection dans un plugin existant
13
+ ### Injection dans le répertoire courant
14
14
 
15
15
  ```bash
16
16
  cd votre-plugin-obsidian
@@ -20,26 +20,62 @@ obsidian-inject
20
20
  ### Injection par chemin
21
21
 
22
22
  ```bash
23
- obsidian-inject /chemin/vers/plugin
23
+ obsidian-inject ../mon-plugin
24
+ obsidian-inject "C:\chemin\vers\plugin"
25
+ ```
26
+
27
+ ### Aide
28
+
29
+ ```bash
30
+ obsidian-inject --help
24
31
  ```
25
32
 
26
33
  ## Ce qui est injecté
27
34
 
28
- - **Scripts locaux** : esbuild.config.ts, acp.ts, update-version.ts, utils.ts
29
- - **Configuration package.json** : scripts, dépendances, protection yarn
30
- - **Dossiers requis** : .github/workflows
31
- - **Installation automatique** des dépendances
35
+ - **Scripts locaux autonomes** : `esbuild.config.ts`, `acp.ts`, `update-version.ts`, `utils.ts`, `help.ts`, `release.ts`
36
+ - **Configuration package.json** : scripts, dépendances, protection yarn obligatoire
37
+ - **Template tsconfig.json** : configuration TypeScript optimisée
38
+ - **Installation automatique** des dépendances avec yarn
39
+ - ✅ **Analyse des imports centralisés** avec avertissements
32
40
 
33
- ## Commandes disponibles
41
+ ## Commandes disponibles après injection
34
42
 
35
43
  ```bash
36
- yarn inject-path <chemin> # Injection par chemin
37
- yarn inject <chemin> # Alias
38
- yarn migrate <chemin> # Migration de plugins (développement)
39
- yarn acp # Add-commit-push
40
- yarn h # Aide
44
+ yarn build # Build production
45
+ yarn dev # Build développement + watch
46
+ yarn start # Alias pour dev
47
+ yarn real # Build vers vault réel (nécessite REAL_VAULT)
48
+ yarn acp # Add-commit-push
49
+ yarn bacp # Build + add-commit-push
50
+ yarn update-version # Mise à jour version + commit + push
51
+ yarn v # Alias pour update-version
52
+ yarn release # Release GitHub
53
+ yarn r # Alias pour release
54
+ yarn help # Aide complète
55
+ yarn h # Alias pour help
41
56
  ```
42
57
 
43
58
  ## Architecture
44
59
 
45
- Système d'injection qui transforme n'importe quel plugin en version autonome avec scripts locaux intégrés.
60
+ Le plugin devient **100% AUTONOME** après injection :
61
+
62
+ - ❌ **Aucune dépendance externe** requise
63
+ - ✅ **Scripts intégrés localement**
64
+ - ✅ **Mise à jour possible** via re-injection
65
+ - ✅ **Protection yarn** maintenue
66
+ - ✅ **Compatible avec tous les plugins Obsidian**
67
+
68
+ ## Développement Local (pour contributeurs)
69
+
70
+ ```bash
71
+ git clone https://github.com/3C0D/obsidian-plugin-config
72
+ cd obsidian-plugin-config
73
+ yarn install
74
+
75
+ # Test injection locale
76
+ yarn inject ../mon-plugin --yes
77
+ yarn inject-prompt "../mon-plugin"
78
+
79
+ # Build package NPM
80
+ yarn build-npm
81
+ ```
package/package.json CHANGED
@@ -1,88 +1,88 @@
1
1
  {
2
- "name": "obsidian-plugin-config",
3
- "version": "1.0.2",
4
- "description": "Système d'injection pour plugins Obsidian autonomes",
5
- "type": "module",
6
- "main": "src/index.ts",
7
- "bin": {
8
- "obsidian-inject": "./bin/obsidian-inject.js"
9
- },
10
- "license": "MIT",
11
- "keywords": [
12
- "obsidian",
13
- "obsidian-plugin",
14
- "typescript",
15
- "injection",
16
- "autonomous",
17
- "cli",
18
- "development-tools",
19
- "plugin-utilities"
20
- ],
21
- "scripts": {
22
- "start": "yarn install && yarn run update-exports",
23
- "update-exports": "node scripts/update-exports.js",
24
- "acp": "tsx scripts/acp.ts",
25
- "update-version": "tsx scripts/update-version-config.ts",
26
- "v": "tsx scripts/update-version-config.ts",
27
- "inject-path": "tsx scripts/inject-path.ts",
28
- "inject": "tsx scripts/inject-path.ts",
29
- "inject-prompt": "tsx scripts/inject-prompt.ts",
30
- "build-npm": "tsx scripts/build-npm.ts",
31
- "publish-npm": "tsx scripts/build-npm.ts",
32
- "help": "tsx scripts/help.ts",
33
- "h": "tsx scripts/help.ts",
34
- "dev": "tsx scripts/esbuild.config.ts",
35
- "build": "tsc -noEmit -skipLibCheck && tsx scripts/esbuild.config.ts production",
36
- "real": "tsx scripts/esbuild.config.ts production real",
37
- "bacp": "tsx scripts/acp.ts -b",
38
- "release": "tsx scripts/release.ts",
39
- "r": "tsx scripts/release.ts"
40
- },
41
- "exports": {
42
- ".": "./src/index.ts",
43
- "./scripts/*": "./scripts/*",
44
- "./modals": "./src/modals/index.ts",
45
- "./tools": "./src/tools/index.ts",
46
- "./utils": "./src/utils/index.ts"
47
- },
48
- "devDependencies": {
49
- "@types/node": "^22.15.26",
50
- "@types/semver": "^7.7.0",
51
- "builtin-modules": "3.3.0",
52
- "dedent": "^1.6.0",
53
- "dotenv": "^16.4.5",
54
- "esbuild": "latest",
55
- "fs-extra": "^11.2.0",
56
- "obsidian": "*",
57
- "obsidian-typings": "^3.9.5",
58
- "semver": "^7.7.2",
59
- "tsx": "^4.19.4",
60
- "typescript": "^5.8.2"
61
- },
62
- "dependencies": {
63
- "@types/lodash": "^4.17.17",
64
- "@types/node": "^22.15.26",
65
- "@types/semver": "^7.7.0",
66
- "builtin-modules": "3.3.0",
67
- "dedent": "^1.6.0",
68
- "dotenv": "^16.4.5",
69
- "esbuild": "latest",
70
- "fs-extra": "^11.2.0",
71
- "lodash": "^4.17.21",
72
- "obsidian": "*",
73
- "obsidian-typings": "^3.9.5",
74
- "semver": "^7.7.2",
75
- "tsx": "^4.19.4",
76
- "typescript": "^5.8.2"
77
- },
78
- "engines": {
79
- "npm": "please-use-yarn",
80
- "yarn": ">=1.22.0",
81
- "node": ">=16.0.0"
82
- },
83
- "repository": {
84
- "type": "git",
85
- "url": "https://github.com/3C0D/obsidian-plugin-config.git"
86
- },
87
- "author": "3C0D"
88
- }
2
+ "name": "obsidian-plugin-config",
3
+ "version": "1.0.3",
4
+ "description": "Système d'injection pour plugins Obsidian autonomes",
5
+ "type": "module",
6
+ "main": "src/index.ts",
7
+ "bin": {
8
+ "obsidian-inject": "./bin/obsidian-inject.js"
9
+ },
10
+ "license": "MIT",
11
+ "keywords": [
12
+ "obsidian",
13
+ "obsidian-plugin",
14
+ "typescript",
15
+ "injection",
16
+ "autonomous",
17
+ "cli",
18
+ "development-tools",
19
+ "plugin-utilities"
20
+ ],
21
+ "scripts": {
22
+ "start": "yarn install && yarn run update-exports",
23
+ "update-exports": "node scripts/update-exports.js",
24
+ "acp": "tsx scripts/acp.ts",
25
+ "update-version": "tsx scripts/update-version-config.ts",
26
+ "v": "tsx scripts/update-version-config.ts",
27
+ "inject-path": "tsx scripts/inject-path.ts",
28
+ "inject": "tsx scripts/inject-path.ts",
29
+ "inject-prompt": "tsx scripts/inject-prompt.ts",
30
+ "build-npm": "tsx scripts/build-npm.ts",
31
+ "publish-npm": "tsx scripts/build-npm.ts",
32
+ "help": "tsx scripts/help.ts",
33
+ "h": "tsx scripts/help.ts",
34
+ "dev": "tsx scripts/esbuild.config.ts",
35
+ "build": "tsc -noEmit -skipLibCheck && tsx scripts/esbuild.config.ts production",
36
+ "real": "tsx scripts/esbuild.config.ts production real",
37
+ "bacp": "tsx scripts/acp.ts -b",
38
+ "release": "tsx scripts/release.ts",
39
+ "r": "tsx scripts/release.ts"
40
+ },
41
+ "exports": {
42
+ ".": "./src/index.ts",
43
+ "./scripts/*": "./scripts/*",
44
+ "./modals": "./src/modals/index.ts",
45
+ "./tools": "./src/tools/index.ts",
46
+ "./utils": "./src/utils/index.ts"
47
+ },
48
+ "devDependencies": {
49
+ "@types/node": "^22.15.26",
50
+ "@types/semver": "^7.7.0",
51
+ "builtin-modules": "3.3.0",
52
+ "dedent": "^1.6.0",
53
+ "dotenv": "^16.4.5",
54
+ "esbuild": "latest",
55
+ "fs-extra": "^11.2.0",
56
+ "obsidian": "*",
57
+ "obsidian-typings": "^3.9.5",
58
+ "semver": "^7.7.2",
59
+ "tsx": "^4.19.4",
60
+ "typescript": "^5.8.2"
61
+ },
62
+ "dependencies": {
63
+ "@types/lodash": "^4.17.17",
64
+ "@types/node": "^22.15.26",
65
+ "@types/semver": "^7.7.0",
66
+ "builtin-modules": "3.3.0",
67
+ "dedent": "^1.6.0",
68
+ "dotenv": "^16.4.5",
69
+ "esbuild": "latest",
70
+ "fs-extra": "^11.2.0",
71
+ "lodash": "^4.17.21",
72
+ "obsidian": "*",
73
+ "obsidian-typings": "^3.9.5",
74
+ "semver": "^7.7.2",
75
+ "tsx": "^4.19.4",
76
+ "typescript": "^5.8.2"
77
+ },
78
+ "engines": {
79
+ "npm": "please-use-yarn",
80
+ "yarn": ">=1.22.0",
81
+ "node": ">=16.0.0"
82
+ },
83
+ "repository": {
84
+ "type": "git",
85
+ "url": "https://github.com/3C0D/obsidian-plugin-config.git"
86
+ },
87
+ "author": "3C0D"
88
+ }
package/versions.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "1.0.0": "1.8.9",
3
3
  "1.0.1": "1.8.9",
4
- "1.0.2": "1.8.9"
4
+ "1.0.2": "1.8.9",
5
+ "1.0.3": "1.8.9"
5
6
  }