@ggdna/dna-scripts 0.4.1 → 0.5.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
@@ -5,9 +5,15 @@ deterministic given local git and file system state, no GitHub API calls.
5
5
 
6
6
  ## Guides
7
7
 
8
- - `dna/doc/guides/scripts-guide.md` — what belongs here, what does not,
8
+ - `dna/doc/en/guides/scripts-guide.md` — what belongs here, what does not,
9
9
  and how to add a script
10
10
 
11
+ Every file of `dna/doc/en/` also ships in German and Farsi, with the
12
+ same name:
13
+
14
+ - `dna/doc/de/guides/`
15
+ - `dna/doc/fa/guides/`
16
+
11
17
  ## Skills
12
18
 
13
19
  - `/scripts` — checks every script parses, every import resolves, and
@@ -42,7 +48,7 @@ deterministic given local git and file system state, no GitHub API calls.
42
48
 
43
49
  ## Publishing
44
50
 
45
- `dna/dot-pubignore` keeps `/doc/guides/` and `/scripts/` out of the package
51
+ `dna/dot-pubignore` keeps `/doc/*/guides/` and `/scripts/` out of the package
46
52
  `dart pub publish` uploads. helix joins it with the ignore files of the other
47
53
  layers into the project's `.pubignore`.
48
54
 
@@ -5,7 +5,7 @@
5
5
  "name": "base",
6
6
  "package": "helix",
7
7
  "ecosystem": null,
8
- "resolvedVersion": "1.16.0",
8
+ "resolvedVersion": "1.18.0",
9
9
  "via": null,
10
10
  "hash": "0x6883da335b415f9d"
11
11
  },
@@ -15,7 +15,7 @@
15
15
  "ecosystem": null,
16
16
  "resolvedVersion": null,
17
17
  "via": null,
18
- "hash": "0x1f2540a9e6a05c6e"
18
+ "hash": "0x9463bfb42bfd4adf"
19
19
  }
20
20
  ],
21
21
  "claude": {
@@ -23,22 +23,31 @@
23
23
  "claudeMdFromDna": false,
24
24
  "blockHash": null
25
25
  },
26
- "baseVersion": "1.16.0",
26
+ "baseVersion": "1.18.0",
27
27
  "baseHash": "0x6883da335b415f9d",
28
28
  "configHash": "0xb4650cce9f80108f",
29
+ "gitignoreHash": "0x1b0ee74d5e941279",
29
30
  "instances": [
30
31
  {
31
32
  "path": ".claude/skills/scripts/SKILL.md",
32
- "hash": "0xa12593aa0af31ed2"
33
+ "hash": "0xafadcde5bcc41ba1"
33
34
  },
34
35
  {
35
36
  "path": ".pubignore",
36
- "hash": "0xde4a91eb33171faf"
37
+ "hash": "0x81aaee5cc06c02bc"
37
38
  },
38
39
  {
39
- "path": "doc/guides/scripts-guide.md",
40
+ "path": "doc/de/guides/scripts-guide.md",
41
+ "hash": "0x383c9cd12612f284"
42
+ },
43
+ {
44
+ "path": "doc/en/guides/scripts-guide.md",
40
45
  "hash": "0x426857c389049083"
41
46
  },
47
+ {
48
+ "path": "doc/fa/guides/scripts-guide.md",
49
+ "hash": "0xf3ae7d988f157168"
50
+ },
42
51
  {
43
52
  "path": "scripts/delete-feature-branch.js",
44
53
  "hash": "0x219ac0a3635ee644"
@@ -0,0 +1,27 @@
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
+ # Skript-Leitfaden
10
+
11
+ Die Node-Skripte, mit denen ein Repo seinen Arbeitsablauf automatisiert, und
12
+ die Funktionen, die sie teilen — vom Lesen des lokalen git-Zustands bis zum
13
+ Aufruf der GitHub-API.
14
+
15
+ ## @function Eine Funktion nutzen, statt einen Befehl zu wiederholen <a id="use-a-function-instead-of-repeating-a-command"></a>
16
+
17
+ - Importiere aus `dna/scripts/functions/`, dupliziere nie einen `git`-,
18
+ `gh`- oder Dateisystem-Aufruf über mehrere Skripte hinweg
19
+ - Halte eine Funktion wo möglich rein: gleiche Eingabe, gleiche Ausgabe,
20
+ keine Konsolenausgabe
21
+
22
+ ## @script Ein Skript hinzufügen <a id="add-a-script"></a>
23
+
24
+ - Lege es in `dna/scripts/` ab, seine gemeinsam genutzten Teile in
25
+ `dna/scripts/functions/`
26
+ - Gib ihm den Lizenz-Header, den jede Datei hier trägt
27
+ - Rufe es aus einem Leitfaden der Schicht auf, die es braucht
@@ -0,0 +1,27 @@
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
+ # راهنمای اسکریپت‌ها
10
+
11
+ اسکریپت‌های node که یک مخزن گردش کار خود را با آن‌ها خودکار می‌کند، و
12
+ توابعی که میان آن‌ها مشترک است — از خواندن وضعیت محلی git تا فراخوانی
13
+ GitHub API.
14
+
15
+ ## @function به جای تکرار یک فرمان از یک تابع استفاده کنید <a id="use-a-function-instead-of-repeating-a-command"></a>
16
+
17
+ - از `dna/scripts/functions/` وارد (import) کنید؛ هرگز یک فراخوانی `git`،
18
+ `gh` یا سیستم فایل را در چند اسکریپت تکرار نکنید
19
+ - تا جای ممکن تابع را خالص (pure) نگه دارید: ورودی یکسان، خروجی یکسان،
20
+ بدون چاپ کردن
21
+
22
+ ## @script افزودن یک اسکریپت <a id="add-a-script"></a>
23
+
24
+ - آن را در `dna/scripts/` قرار دهید و بخش‌های مشترکش را در
25
+ `dna/scripts/functions/`
26
+ - سرآیند مجوز (license header) را که همه‌ی فایل‌های این‌جا دارند به آن بدهید
27
+ - آن را از راهنمای لایه‌ای که به آن نیاز دارد فراخوانی کنید
@@ -13,7 +13,7 @@ found in the LICENSE file in the root of this package.
13
13
 
14
14
  # Scripts
15
15
 
16
- Read `doc/guides/scripts-guide.md` and follow it.
16
+ Read `doc/en/guides/scripts-guide.md` and follow it.
17
17
 
18
18
  ## @script 1. Check every script parses
19
19
 
package/dna/dot-pubignore CHANGED
@@ -1,2 +1,2 @@
1
- /doc/guides/
1
+ /doc/*/guides/
2
2
  /scripts/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggdna/dna-scripts",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "DNA layer: deterministic node scripts and their shared functions",
5
5
  "keywords": [
6
6
  "dna",
File without changes