fixdevcontainer 0.2.1 → 1.0.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
@@ -1,11 +1,21 @@
1
1
  # fixdevcontainer
2
2
 
3
- Sort top-level keys in devcontainer.json
3
+ Humanely sort top-level keys in `devcontainer.json`
4
4
 
5
5
  Inspired by [fixpack](https://www.npmjs.com/package/fixpack)!
6
6
 
7
- ## Usage
7
+ ## ✨ Features
8
+
9
+ For `devcontainer.json`, sort the keys by category for easier reading.
10
+
11
+ The specific sorting is based on [predefinedOrder variable in fixdevcontainer.js](fixdevcontainer.js).
12
+
13
+ ## 🚀 Usage
8
14
 
9
15
  ```shell
10
16
  npx fixdevcontainer
11
17
  ```
18
+
19
+ ## 📑 License
20
+
21
+ This project is licensed under the [MIT License](LICENSE).
@@ -5,35 +5,35 @@ const fs = require("node:fs");
5
5
  const path = require("node:path");
6
6
 
7
7
  const predefinedOrder = [
8
- // 基本情報
8
+ // Basic information
9
9
  "$schema",
10
10
  "name",
11
- // コンテナイメージ・構成
11
+ // Container image and configuration
12
12
  "image",
13
13
  "dockerComposeFile",
14
14
  "service",
15
15
  "runServices",
16
16
  "build",
17
- // 動作設定
17
+ // Operational settings
18
18
  "shutdownAction",
19
19
  "overrideCommand",
20
20
  "updateRemoteUserUID",
21
21
  "init",
22
22
  "privileged",
23
- // ユーザーと環境設定
23
+ // User and environment settings
24
24
  "containerUser",
25
25
  "containerEnv",
26
26
  "remoteUser",
27
27
  "remoteEnv",
28
- // ポートとネットワーク設定
28
+ // Port and network settings
29
29
  "forwardPorts",
30
30
  "portsAttributes",
31
31
  "otherPortsAttributes",
32
- // 機能とシークレット
32
+ // Features and secrets
33
33
  "features",
34
34
  "overrideFeatureInstallOrder",
35
35
  "secrets",
36
- // コマンド実行と待機設定
36
+ // Command execution and wait settings
37
37
  "initializeCommand",
38
38
  "onCreateCommand",
39
39
  "updateContentCommand",
@@ -41,21 +41,21 @@ const predefinedOrder = [
41
41
  "postStartCommand",
42
42
  "postAttachCommand",
43
43
  "waitFor",
44
- // ワークスペースとマウント設定
44
+ // Workspace and mount settings
45
45
  "workspaceFolder",
46
46
  "appPort",
47
47
  "runArgs",
48
48
  "workspaceMount",
49
- // マウント詳細設定
49
+ // Mount details settings
50
50
  "type",
51
51
  "source",
52
52
  "target",
53
- // ユーザー環境プローブ
53
+ // User environment probe
54
54
  "userEnvProbe",
55
- // ホスト要件とカスタマイズ
55
+ // Host requirements and customizations
56
56
  "hostRequirements",
57
57
  "customizations",
58
- // その他のプロパティ
58
+ // Other properties
59
59
  "additionalProperties",
60
60
  ];
61
61
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "fixdevcontainer",
3
- "version": "0.2.1",
4
- "description": "",
5
- "main": "main.js",
3
+ "version": "1.0.0",
4
+ "description": "Humanely sort top-level keys in devcontainer.json",
5
+ "main": "fixdevcontainer.js",
6
6
  "bin": {
7
- "fixdevcontainer": "main.js"
7
+ "fixdevcontainer": "fixdevcontainer.js"
8
8
  },
9
9
  "keywords": [],
10
10
  "author": "",