nadesiko3 3.3.32 → 3.3.47

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 (47) hide show
  1. package/batch/build_nako_version.nako3 +42 -0
  2. package/batch/cmd_txt2json.nako3 +3 -1
  3. package/batch/command.txt +882 -881
  4. package/batch/command_nakopad.txt +2 -1
  5. package/batch/jsplugin2text.nako3 +21 -8
  6. package/batch/pickup_command.nako3 +29 -6
  7. package/demo/js/common.js +2 -2
  8. package/demo/js/turtle_test.js +2 -2
  9. package/package.json +34 -33
  10. package/release/_hash.txt +24 -24
  11. package/release/_script-tags.txt +14 -14
  12. package/release/command.json +1 -1
  13. package/release/command.json.js +1 -1
  14. package/release/command_cnako3.json +1 -1
  15. package/release/command_list.json +1 -1
  16. package/release/editor.js +1 -1
  17. package/release/nako_gen_async.js +1 -1
  18. package/release/nako_gen_async.js.LICENSE.txt +4 -4
  19. package/release/stats.json +1 -1
  20. package/release/version.js +1 -1
  21. package/release/wnako3.js +1 -1
  22. package/release/wnako3webworker.js +1 -1
  23. package/release/wnako3webworker.js.LICENSE.txt +7 -15
  24. package/src/cnako3.mjs +8 -1
  25. package/src/cnako3.mts +7 -1
  26. package/src/cnako3mod.mjs +77 -62
  27. package/src/cnako3mod.mts +101 -60
  28. package/src/commander_ja.mjs +1 -1
  29. package/src/nako_version.mjs +8 -0
  30. package/src/nako_version.mts +19 -0
  31. package/src/wnako3_editor.mjs +1 -1
  32. package/src/wnako3_editor.mts +1 -1
  33. package/src/wnako3mod.mjs +10 -8
  34. package/src/wnako3mod.mts +12 -9
  35. package/test/browser/test/plugin_browser_test.js +0 -1
  36. package/test/browser/test/plugin_webworker_test.js +0 -1
  37. package/test/common/plugin_browser_test.mjs +2 -4
  38. package/test/common/plugin_markup_test.mjs +2 -3
  39. package/test/node/async_test.mjs +22 -9
  40. package/test/node/error_message_test.mjs +11 -22
  41. package/test/node/node_test.mjs +3 -3
  42. package/test/node/plugin_node_test.mjs +2 -2
  43. package/test/node/plugin_test.mjs +1 -0
  44. package/test/node/side_effects_test.mjs +2 -82
  45. package/batch/build_wnako_version.nako3 +0 -23
  46. package/src/wnako_version.mjs +0 -8
  47. package/src/wnako_version.mts +0 -16
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env cnako3
2
+ # -----------------------------------------------------
3
+ # なでしこのバージョン情報を自動生成する
4
+ # -----------------------------------------------------
5
+ # ●説明
6
+ # package.json の内容を読んで ./src/nako_version.mts を生成
7
+ # -----------------------------------------------------
8
+ 母艦パス取得してパス抽出して基本パスに代入。
9
+ 「{基本パス}/package.json」を読んでJSONデコードして、Pに代入。
10
+ VER=P@"version"
11
+ 定数[MAJOR,MINOR,PATCH]=(VERを「.」で区切る)
12
+ QS=『{』
13
+ QE=『}』
14
+ VS=「/**
15
+ * なでしこのバージョン情報
16
+ * package.json から自動的に作成されます。このファイルを編集しないでください。
17
+ */
18
+ // 型定義
19
+ export interface NakoVersion {QS}
20
+ version: string;
21
+ major: number;
22
+ minor: number;
23
+ patch: number;
24
+ {QE}
25
+ // 実際のバージョン定義 (自動生成されるので以下を編集しない)
26
+ const nakoVersion: NakoVersion = {QS}
27
+ version: '{VER}',
28
+ major: {MAJOR},
29
+ minor: {MINOR},
30
+ patch: {PATCH}
31
+ {QE}
32
+ export default nakoVersion
33
+
34
+ 保存先=「{基本パス}/src/nako_version.mts」
35
+ VSを保存先へ保存。
36
+
37
+ # ---------------------------------------------
38
+ # ● なでしこのバージョン情報を更新しました。
39
+ # version {VER}
40
+ # file: {保存先}
41
+ # ---------------------------------------------
42
+ 」を表示。
@@ -36,13 +36,14 @@ P_list=[]
36
36
    ここまで。
37
37
    Sを「/^\|(.+)/」で正規表現マッチ。
38
38
    もし、そうならば
39
-     CMDは抽出文字列[0]
39
+     CMDは抽出文字列[0]&"|||||"
40
40
      CMDを「|」で区切る
41
41
      C=それ
42
42
      タイプ=トリム(C[0])
43
43
      名前=トリム(C[1])
44
44
      引数=トリム(C[2])
45
45
      説明=トリム(C[3])
46
+     URL=トリム(C[4])
46
47
   ヨミ_cnako3=トリム(C[4])
47
48
      ヨミ=LEFT(ヨミ_cnako3,1)
48
49
      もし、タイプ=「関数」ならば
@@ -58,6 +59,7 @@ P_list=[]
58
59
  V_cnako3[「ヨミ」]=ヨミ_cnako3
59
60
  V_cnako3[「引数」]=引数
60
61
  V_cnako3[「説明」]=説明
62
+ V_cnako3["URL"]=URL
61
63
      P_cnako3[名前]=V_cnako3
62
64
  P_listに名前を配列追加
63
65
    ここまで。