create-antd-skin 1.1.3 → 1.1.4
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/bin/skin.js +8 -0
- package/package.json +1 -1
package/bin/skin.js
CHANGED
|
@@ -117,6 +117,14 @@ async function installSkin(skinName) {
|
|
|
117
117
|
await copySkinFiles(selectedSkin, skin.path, cwd);
|
|
118
118
|
await updateSkinIndex(selectedSkin, cwd);
|
|
119
119
|
spinner.succeed(`Skin "${selectedSkin}" installed.`);
|
|
120
|
+
console.log(`
|
|
121
|
+
✨ Skin installed successfully!
|
|
122
|
+
// Simply adding the skin name to the settings will take effect, e.g.
|
|
123
|
+
const layoutConfig: LayoutConfig = {
|
|
124
|
+
skinName: "${toCamelCase(selectedSkin) ?? "<skin-name>"}",
|
|
125
|
+
...
|
|
126
|
+
}
|
|
127
|
+
`);
|
|
120
128
|
}
|
|
121
129
|
catch (e) {
|
|
122
130
|
spinner.fail("Install skin failed.");
|