We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 150a100 commit 0241140Copy full SHA for 0241140
packages/main/lib/create-new-component/index.js
@@ -68,3 +68,14 @@ const fs = require("fs");
68
fs.writeFileSync(filePaths.js, sJsFileContentTemplate, { flag: "wx+" });
69
fs.writeFileSync(filePaths.css, "", { flag: "wx+" });
70
fs.writeFileSync(filePaths.hbs, "<div>Hello World</div>", { flag: "wx+" });
71
+
72
73
+console.log(`Successfully generated ${componentName}.js`);
74
+console.log(`Successfully generated ${componentName}.css`);
75
+console.log(`Successfully generated ${componentName}.hbs`);
76
77
+// Change the color of the output
78
+console.warn('\x1b[33m%s\x1b[0m', `
79
+Please import the generated component in bundle.esm.js:
80
+import ${componentName} from "./dist/${componentName}.js";
81
+`);
0 commit comments