1{
2    "name": "napi-gen",
3    "displayName": "napi-gen",
4    "description": "Generate NAPI definition code and framework code for OpenHarmony",
5    "version": "0.0.1",
6    "publisher": "kaihong",
7    "icon": "images/icon.png",
8    "repository": "https://gitee.com/openharmony/napi_generator",
9    "engines": {
10        "vscode": "^1.34.0"
11    },
12    "categories": [
13        "Other"
14    ],
15    "activationEvents": [
16        "onCommand:extension.h2sa3-2",
17        "onCommand:extension.h2sa4-1",
18        "onCommand:extension.h2hdf4-1",
19        "onCommand:extension.h2dts",
20        "onCommand:extension.h2dtscpp",
21        "onCommand:extension.dts2cpp"
22    ],
23    "main": "./out/extension.js",
24    "contributes": {
25        "commands": [
26            {
27                "command": "extension.h2sa3-2",
28                "title": "h2sa3-2"
29            },
30            {
31                "command": "extension.h2sa4-1",
32                "title": "h2sa4-1"
33            },
34            {
35                "command": "extension.h2hdf4-1",
36                "title": "h2hdf4-1"
37            },
38            {
39                "command": "extension.h2dts",
40                "title": "h2dts"
41            },
42            {
43                "command": "extension.h2dtscpp",
44                "title": "h2dtscpp"
45            },
46            {
47                "command": "extension.dts2cpp",
48                "title": "dts2cpp"
49            }
50        ],
51        "submenus": [
52            {
53                "id": "gen-menulist",
54                "label": "OHOS_Gen"
55            },
56            {
57                "id": "gen-h2sa",
58                "label": "gen_sa"
59            },
60            {
61                "id": "gen-h2hdf",
62                "label": "gen_hdf"
63            }
64        ],
65        "menus": {
66            "gen-menulist": [
67                {
68                    "submenu": "gen-h2sa",
69                    "when": "resourceExtname == .h",
70                    "group": "2_workspace"
71                },
72                {
73                    "submenu": "gen-h2hdf",
74                    "when": "resourceExtname == .h",
75                    "group": "2_workspace"
76                },
77                {
78                    "command": "extension.h2dts",
79                    "when": "resourceExtname == .h",
80                    "group": "2_workspace"
81                },
82                {
83                    "command": "extension.h2dtscpp",
84                    "when": "resourceExtname == .h",
85                    "group": "2_workspace"
86                },
87                {
88                    "command": "extension.dts2cpp",
89                    "when": "resourceExtname == .ts",
90                    "group": "2_workspace"
91                }
92            ],
93            "explorer/context": [
94                {
95                    "submenu": "gen-menulist",
96                    "when": "resourceExtname == .h || resourceExtname == .ts",
97                    "group": "2_workspace"
98                }
99            ],
100            "gen-h2sa": [
101                {
102                    "command": "extension.h2sa3-2",
103                    "when": "resourceExtname == .h",
104                    "group": "2_workspace"
105                },
106                {
107                    "command": "extension.h2sa4-1",
108                    "when": "resourceExtname == .h",
109                    "group": "2_workspace"
110                }
111            ],
112            "gen-h2hdf": [
113                {
114                    "command": "extension.h2hdf4-1",
115                    "when": "resourceExtname == .h",
116                    "group": "2_workspace"
117                }
118            ]
119        }
120    },
121    "scripts": {
122        "vscode:prepublish": "npm run compile",
123        "compile": "tsc -p ./",
124        "lint": "eslint . --ext .ts,.tsx",
125        "watch": "tsc -watch -p ./"
126    },
127    "devDependencies": {
128        "@types/node": "^16.17.0",
129        "@types/vscode": "^1.34.0",
130        "@typescript-eslint/eslint-plugin": "^5.30.0",
131        "@typescript-eslint/parser": "^5.30.0",
132        "eslint": "^8.13.0"
133    },
134    "dependencies": {
135        "vsce": "^2.15.0",
136        "typescript": "^4.7.2"
137    }
138}
139