generator-madge-capture 1.0.7 → 1.0.9
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/generators/app/index.js +0 -9
- package/package.json +1 -1
package/generators/app/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Generator from "yeoman-generator";
|
|
2
2
|
import chalk from "chalk";
|
|
3
3
|
import yosay from "yosay";
|
|
4
|
-
import commandExists from "command-exists";
|
|
5
4
|
import os from "node:os";
|
|
6
5
|
import madge from "madge";
|
|
7
6
|
import path from "path";
|
|
@@ -15,7 +14,6 @@ import {
|
|
|
15
14
|
getSourceVersions,
|
|
16
15
|
} from "./lib/extractComponents.js";
|
|
17
16
|
import { getPrompts } from "./lib/prompts.js";
|
|
18
|
-
import { component } from "0g";
|
|
19
17
|
|
|
20
18
|
export default class extends Generator {
|
|
21
19
|
initializing() {}
|
|
@@ -34,13 +32,6 @@ export default class extends Generator {
|
|
|
34
32
|
chalk.whiteBright(msgText),
|
|
35
33
|
),
|
|
36
34
|
);
|
|
37
|
-
// Don't really need this as madge is added to
|
|
38
|
-
// dependencies in package.json.
|
|
39
|
-
if (commandExists("madge")) {
|
|
40
|
-
this.log("Madge already installed!");
|
|
41
|
-
} else {
|
|
42
|
-
this.log("Madge not found. Adding to dependencies...");
|
|
43
|
-
}
|
|
44
35
|
const homeDir = os.homedir(); // ← "C:\Users\<USERNAME>"
|
|
45
36
|
const defaultCaptureBase = path.join(homeDir, "madge-capture");
|
|
46
37
|
|