@lars_hagemann/mediaserver-create-plugin 0.24.3 → 0.25.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/dist/index.js +10 -8
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -169,14 +169,16 @@ function main() {
|
|
|
169
169
|
console.log("Plugin creation cancelled.");
|
|
170
170
|
return [2 /*return*/];
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
pluginSrcPath = "".concat(pluginFolderPath, "/src");
|
|
174
|
-
return [4 /*yield*/, fs.mkdir(pluginFolderPath, { recursive: true })];
|
|
172
|
+
return [4 /*yield*/, fs.mkdir(folderPath, { recursive: true })];
|
|
175
173
|
case 8:
|
|
176
174
|
_a.sent();
|
|
177
|
-
return [4 /*yield*/, fs.mkdir(
|
|
175
|
+
return [4 /*yield*/, fs.mkdir(folderPath + "/src", { recursive: true })];
|
|
178
176
|
case 9:
|
|
179
177
|
_a.sent();
|
|
178
|
+
return [4 /*yield*/, fs.realpath(folderPath)];
|
|
179
|
+
case 10:
|
|
180
|
+
pluginFolderPath = _a.sent();
|
|
181
|
+
pluginSrcPath = "".concat(pluginFolderPath, "/src");
|
|
180
182
|
process.chdir(pluginFolderPath);
|
|
181
183
|
packageJsonContent = {
|
|
182
184
|
name: "".concat(pluginName),
|
|
@@ -186,13 +188,13 @@ function main() {
|
|
|
186
188
|
};
|
|
187
189
|
console.log("Writing package.json");
|
|
188
190
|
return [4 /*yield*/, fs.writeFile("".concat(pluginFolderPath, "/package.json"), JSON.stringify(packageJsonContent, null, 2))];
|
|
189
|
-
case
|
|
191
|
+
case 11:
|
|
190
192
|
_a.sent();
|
|
191
193
|
pluginConfig = config[pluginType];
|
|
192
194
|
tsConfigContent = pluginConfig.tsConfig;
|
|
193
195
|
console.log("Writing tsconfig.json");
|
|
194
196
|
return [4 /*yield*/, fs.writeFile("".concat(pluginFolderPath, "/tsconfig.json"), JSON.stringify(tsConfigContent, null, 2))];
|
|
195
|
-
case
|
|
197
|
+
case 12:
|
|
196
198
|
_a.sent();
|
|
197
199
|
console.log("Installing dependencies...");
|
|
198
200
|
return [4 /*yield*/, new Promise(function (resolve, reject) {
|
|
@@ -210,12 +212,12 @@ function main() {
|
|
|
210
212
|
resolve(null);
|
|
211
213
|
});
|
|
212
214
|
})];
|
|
213
|
-
case
|
|
215
|
+
case 13:
|
|
214
216
|
_a.sent();
|
|
215
217
|
console.log("Writing skeleton plugin file...");
|
|
216
218
|
pluginFileName = "index.ts";
|
|
217
219
|
return [4 /*yield*/, fs.writeFile("".concat(pluginSrcPath, "/").concat(pluginFileName), pluginConfig.skeleton)];
|
|
218
|
-
case
|
|
220
|
+
case 14:
|
|
219
221
|
_a.sent();
|
|
220
222
|
console.log("Plugin created successfully.");
|
|
221
223
|
return [2 /*return*/];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lars_hagemann/mediaserver-create-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": "dist/index.js",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/
|
|
15
|
+
"url": "git+https://github.com/de-treelab/mediaserver.git"
|
|
16
16
|
},
|
|
17
17
|
"author": "Lars Hagemann",
|
|
18
18
|
"license": "ISC",
|
|
19
19
|
"bugs": {
|
|
20
|
-
"url": "https://github.com/
|
|
20
|
+
"url": "https://github.com/de-treelab/mediaserver/issues"
|
|
21
21
|
},
|
|
22
|
-
"homepage": "https://github.com/
|
|
22
|
+
"homepage": "https://github.com/de-treelab/mediaserver#readme",
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^24.10.0",
|
|
25
25
|
"typescript": "^5.9.3"
|