@ggdna/dna-vscode 0.5.0 → 0.6.0

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/README.md CHANGED
@@ -13,9 +13,15 @@ extensions.
13
13
 
14
14
  ## Guides
15
15
 
16
- - `dna/doc/guides/vscode-guide.md` — what is configured, how to add a
16
+ - `dna/doc/en/guides/vscode-guide.md` — what is configured, how to add a
17
17
  setting or extension, and how a consumer overrides one
18
18
 
19
+ Every file of `dna/doc/en/` also ships in German and Farsi, with the
20
+ same name:
21
+
22
+ - `dna/doc/de/guides/`
23
+ - `dna/doc/fa/guides/`
24
+
19
25
  ## Skills
20
26
 
21
27
  - `/vscode` — compares installed extensions against the recommendations
@@ -29,7 +35,7 @@ extensions.
29
35
 
30
36
  ## Publishing
31
37
 
32
- `dna/dot-pubignore` keeps `/doc/guides/` out of the package `dart pub publish`
38
+ `dna/dot-pubignore` keeps `/doc/*/guides/` out of the package `dart pub publish`
33
39
  uploads. helix joins it with the ignore files of the other layers into the
34
40
  project's `.pubignore`.
35
41
 
package/dna/_dna.json CHANGED
@@ -3,6 +3,10 @@
3
3
  // last layer of its own instantiation.
4
4
  "version": 2,
5
5
 
6
+ // Published as a DNA layer: helix requires a tag on every section of
7
+ // dna/ markdown, so the layers above can override each one.
8
+ "isLayer": true,
9
+
6
10
  // No parent DNA. This layer is orthogonal: it carries only its own topic
7
11
  // and is combined with other layers by the consumer.
8
12
  "layers": [],
@@ -5,7 +5,7 @@
5
5
  "name": "base",
6
6
  "package": "helix",
7
7
  "ecosystem": null,
8
- "resolvedVersion": "1.15.2",
8
+ "resolvedVersion": "1.18.0",
9
9
  "via": null,
10
10
  "hash": "0x6883da335b415f9d"
11
11
  },
@@ -15,23 +15,26 @@
15
15
  "ecosystem": null,
16
16
  "resolvedVersion": null,
17
17
  "via": null,
18
- "hash": "0x26ea2d7f71382005"
18
+ "hash": "0x46884c4501b1446f"
19
19
  }
20
20
  ],
21
21
  "claude": {
22
22
  "claudeMdInclude": null,
23
- "claudeMdFromDna": false
23
+ "claudeMdFromDna": false,
24
+ "blockHash": null
24
25
  },
25
- "baseVersion": "1.15.2",
26
+ "baseVersion": "1.18.0",
26
27
  "baseHash": "0x6883da335b415f9d",
28
+ "configHash": "0xe70628005df0298b",
29
+ "gitignoreHash": "0x1b0ee74d5e941279",
27
30
  "instances": [
28
31
  {
29
32
  "path": ".claude/skills/vscode/SKILL.md",
30
- "hash": "0xa331cf3abdbd1c7b"
33
+ "hash": "0x4bfd5794be24b99a"
31
34
  },
32
35
  {
33
36
  "path": ".prettierignore",
34
- "hash": "0x455407a39e11b3db"
37
+ "hash": "0x81844d6b0caa5b76"
35
38
  },
36
39
  {
37
40
  "path": ".prettierrc",
@@ -39,7 +42,7 @@
39
42
  },
40
43
  {
41
44
  "path": ".pubignore",
42
- "hash": "0xce6f0c039020bc23"
45
+ "hash": "0x0beb06fb042be82c"
43
46
  },
44
47
  {
45
48
  "path": ".vscode/extensions.json",
@@ -50,8 +53,16 @@
50
53
  "hash": "0x56f3eedd72c6218f"
51
54
  },
52
55
  {
53
- "path": "doc/guides/vscode-guide.md",
56
+ "path": "doc/de/guides/vscode-guide.md",
57
+ "hash": "0x90af03be17b5cbad"
58
+ },
59
+ {
60
+ "path": "doc/en/guides/vscode-guide.md",
54
61
  "hash": "0x6776b27c7cbedb98"
62
+ },
63
+ {
64
+ "path": "doc/fa/guides/vscode-guide.md",
65
+ "hash": "0xf0136f9c27d0d7ba"
55
66
  }
56
67
  ]
57
68
  }
@@ -0,0 +1,47 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) dnaCopyrightHolder
4
+
5
+ Use of this source code is governed by terms that can be
6
+ found in the LICENSE file in the root of this package.
7
+ -->
8
+
9
+ # VS-Code-Leitfaden
10
+
11
+ Die gemeinsamen Editor-Einstellungen und empfohlenen Erweiterungen, mit
12
+ denen sich jedes Repo öffnet.
13
+
14
+ ## @configured Was konfiguriert ist <a id="what-is-configured"></a>
15
+
16
+ - Formatieren beim Speichern über Prettier, fest an die Workspace-Konfiguration
17
+ gebunden, damit es nie auf mitgelieferte Standardwerte zurückfällt
18
+ - Lineale bei 80 Zeichen, keine Leerzeichen am Zeilenende, ein
19
+ abschließender Zeilenumbruch
20
+ - Coverage Gutters und das Test-Panel
21
+ - Eine Vorlage für den Lizenz-Header für jede Sprache, die diese Familie
22
+ schreibt, mit `dnaCompany` und `dnaCopyrightHolder`
23
+ - `dna/_dna.json` ist mit `jsonc` verknüpft, damit seine Kommentare nicht
24
+ als Fehler erscheinen
25
+
26
+ ## @setting Eine Einstellung hinzufügen <a id="add-a-setting"></a>
27
+
28
+ - Lege sie in `dna/dot-vscode/settings.json` unter dem Abschnittskommentar
29
+ ab, zu dem sie gehört — füge einen neuen Abschnitt
30
+ `// ####… \n// Name \n// ####…` hinzu, wenn keiner passt
31
+ - Begründe sie in einem Kommentar, wenn die Einstellung nicht
32
+ selbsterklärend ist
33
+
34
+ ## @recommended Eine empfohlene Erweiterung hinzufügen <a id="add-a-recommended-extension"></a>
35
+
36
+ - Füge ihre ID zu `dna/dot-vscode/extensions.json` hinzu
37
+ - Gib ihr bei Bedarf eine passende Einstellung in `settings.json`, z. B.
38
+ ein auf `[language]` begrenztes `editor.defaultFormatter`
39
+
40
+ ## @override In einem nutzenden Repo überschreiben <a id="override-in-a-consuming-repo"></a>
41
+
42
+ - Eine `dna/dot-vscode/settings.json` mit gleichem Pfad in einer späteren
43
+ Schicht ersetzt diese vollständig
44
+ - Eine `dna/dot-vscode/settings.overrides.json` führt stattdessen zusammen:
45
+ Objekte werden tief zusammengeführt, `"key!"` ersetzt ohne
46
+ Zusammenführen, `"key+"` hängt an ein Array an — die vollständige Syntax
47
+ steht in der README von helix
@@ -11,7 +11,7 @@ found in the LICENSE file in the root of this package.
11
11
  The shared editor settings and recommended extensions every repo opens
12
12
  with.
13
13
 
14
- ## What is configured
14
+ ## @configured What is configured
15
15
 
16
16
  - Format on save through Prettier, pinned to the workspace config so it
17
17
  never falls back to bundled defaults
@@ -22,20 +22,20 @@ with.
22
22
  - `dna/_dna.json` is associated with `jsonc`, so its comments do not show
23
23
  as errors
24
24
 
25
- ## Add a setting
25
+ ## @setting Add a setting
26
26
 
27
27
  - Put it in `dna/dot-vscode/settings.json`, under the section comment it
28
28
  belongs to — add a new `// ####… \n// Name \n// ####…` section if none
29
29
  fits
30
30
  - State why in a comment when the setting is not self-explanatory
31
31
 
32
- ## Add a recommended extension
32
+ ## @recommended Add a recommended extension
33
33
 
34
34
  - Add its id to `dna/dot-vscode/extensions.json`
35
35
  - Give it a matching setting in `settings.json` if it needs one, e.g. a
36
36
  `[language]`-scoped `editor.defaultFormatter`
37
37
 
38
- ## Override in a consuming repo
38
+ ## @override Override in a consuming repo
39
39
 
40
40
  - A same-path `dna/dot-vscode/settings.json` in a later layer replaces
41
41
  this one whole
@@ -0,0 +1,43 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) dnaCopyrightHolder
4
+
5
+ Use of this source code is governed by terms that can be
6
+ found in the LICENSE file in the root of this package.
7
+ -->
8
+
9
+ # راهنمای VS Code
10
+
11
+ تنظیمات مشترک ویرایشگر و افزونه‌های پیشنهادی که هر مخزن با آن‌ها باز می‌شود.
12
+
13
+ ## @configured چه چیزی پیکربندی شده است <a id="what-is-configured"></a>
14
+
15
+ - قالب‌بندی هنگام ذخیره با Prettier، وابسته به پیکربندی فضای کاری
16
+ (workspace) تا هرگز به پیش‌فرض‌های همراه برنگردد
17
+ - خط‌کش در ۸۰ نویسه، بدون فاصله‌ی انتهای خط، یک خط جدید پایانی
18
+ - Coverage Gutters و پنل آزمون (testing panel)
19
+ - یک قالب سرآیند مجوز (license header) برای هر زبانی که این خانواده
20
+ می‌نویسد، با استفاده از `dnaCompany` و `dnaCopyrightHolder`
21
+ - `dna/_dna.json` به `jsonc` مرتبط شده است تا توضیحات آن به صورت خطا نمایش
22
+ داده نشوند
23
+
24
+ ## @setting افزودن یک تنظیم <a id="add-a-setting"></a>
25
+
26
+ - آن را در `dna/dot-vscode/settings.json` زیر توضیحِ بخشی که به آن تعلق دارد
27
+ قرار دهید — اگر هیچ بخشی مناسب نیست، یک بخش جدید
28
+ `// ####… \n// Name \n// ####…` اضافه کنید
29
+ - وقتی تنظیم خودبه‌خود روشن نیست، دلیلش را در یک توضیح بنویسید
30
+
31
+ ## @recommended افزودن یک افزونه‌ی پیشنهادی <a id="add-a-recommended-extension"></a>
32
+
33
+ - شناسه‌ی آن را به `dna/dot-vscode/extensions.json` اضافه کنید
34
+ - اگر لازم است، تنظیم متناسبی در `settings.json` به آن بدهید، مثلاً یک
35
+ `editor.defaultFormatter` محدود به `[language]`
36
+
37
+ ## @override بازنویسی در مخزنِ مصرف‌کننده <a id="override-in-a-consuming-repo"></a>
38
+
39
+ - یک `dna/dot-vscode/settings.json` با همان مسیر در لایه‌ای بعدی، این فایل را
40
+ به‌طور کامل جایگزین می‌کند
41
+ - یک `dna/dot-vscode/settings.overrides.json` به جای آن ادغام می‌کند: اشیا
42
+ به‌صورت عمیق ادغام می‌شوند، `"key!"` بدون ادغام جایگزین می‌کند، `"key+"`
43
+ به یک آرایه اضافه می‌کند — برای نحو کامل README مربوط به helix را ببینید
@@ -13,20 +13,20 @@ found in the LICENSE file in the root of this package.
13
13
 
14
14
  # Vscode
15
15
 
16
- Read `doc/guides/vscode-guide.md` and follow it.
16
+ Read `doc/en/guides/vscode-guide.md` and follow it.
17
17
 
18
- ## 1. Check the extensions
18
+ ## @extensions 1. Check the extensions
19
19
 
20
20
  List `.vscode/extensions.json` and compare against the extensions
21
21
  actually installed.
22
22
 
23
23
  Report every recommended extension that is missing.
24
24
 
25
- ## 2. Check the settings
25
+ ## @settings 2. Check the settings
26
26
 
27
27
  Verify `.vscode/settings.json` parses as JSONC and that every
28
28
  `editor.defaultFormatter` it sets points at an installed extension.
29
29
 
30
- ## 3. Report before fixing
30
+ ## @report 3. Report before fixing
31
31
 
32
32
  List the findings first. Install or fix only what the user confirms.
@@ -23,8 +23,8 @@ test/goldens/**
23
23
  # back them up and overwrite them on every run. Only the generated parts
24
24
  # of doc/ are listed, so the hand-written docs are still formatted.
25
25
  dna/
26
- doc/guides/
27
- doc/templates/
26
+ doc/*/guides/
27
+ doc/*/templates/
28
28
  .vscode/
29
29
  .claude/
30
30
  scripts/
package/dna/dot-pubignore CHANGED
@@ -1 +1 @@
1
- /doc/guides/
1
+ /doc/*/guides/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggdna/dna-vscode",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "DNA layer: shared VS Code settings and recommended extensions",
5
5
  "keywords": [
6
6
  "dna",