Skip to content

Commit

Permalink
mtsファイルから生成されるmjsファイルをリポジトリから取り除く #1608
Browse files Browse the repository at this point in the history
  • Loading branch information
kujirahand committed Dec 30, 2023
1 parent 0c5e5e2 commit a06dee4
Show file tree
Hide file tree
Showing 32 changed files with 23 additions and 7,735 deletions.
21 changes: 21 additions & 0 deletions batch/clear_compiled.nako3
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# コンパイル済みmjsファイルを削除

# /src
SRC_PATH=母艦パスを「../src」で相対パス展開。
SRC_PATHのコンパイル済みMJS削除。
# /core/src
SRC_PATH=母艦パスを「../core/src」で相対パス展開。
SRC_PATHのコンパイル済みMJS削除。

●(DIRの)コンパイル済みMJS削除とは:
  「-----------------------」を表示。
  「削除対象={DIR}」を表示。
  「{DIR}/*.mts」の全ファイル列挙して反復:
    F=対象
    D=Fの「/\.mts$/」を「.mjs」へ正規表現置換
    Dが存在する
    もし、そうならば:
      「削除: {D}」を表示。
      Dをファイル削除。


2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"build:nako_version": "node src/cnako3.mjs batch/build_nako_version.nako3",
"build:tsc": "tsc",
"build": "npm run build:nako_version && npm run build:tsc && npm run build:command && npx webpack --mode production && node src/cnako3.mjs batch/calc_hash.nako3",
"clean": "npm run tsc:once && node src/cnako3.mjs batch/clear_compiled.nako3",
"tsc": "tsc --watch",
"tsc:once": "tsc",
"build:webpack": "tsc && webpack --mode development",
"check:command": "node src/cnako3.mjs batch/pickup_command.nako3",
"build:command": "cross-env REPORT_ERR=1 npm run check:command && node src/cnako3.mjs batch/build_command.nako3",
Expand Down
17 changes: 0 additions & 17 deletions src/cnako3.mjs

This file was deleted.

Loading

0 comments on commit a06dee4

Please sign in to comment.