create-antd-skin 1.1.2 → 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/layout.js CHANGED
@@ -104,7 +104,12 @@ async function patchLayoutFile(filePath) {
104
104
  if (!changed && hasWardenSkinImport)
105
105
  return;
106
106
  const output = (0, generator_1.default)(ast, {
107
- retainLines: true,
107
+ retainLines: false,
108
+ compact: false,
109
+ concise: false,
110
+ jsescOption: {
111
+ minimal: true,
112
+ },
108
113
  });
109
114
  await fs_extra_1.default.writeFile(filePath, output.code);
110
115
  console.log("✔ updated:", path_1.default.relative(process.cwd(), filePath));
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.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-antd-skin",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "this is skin-cli for @adminui-dev/antd-layout",
5
5
  "main": "index.js",
6
6
  "author": "zhouwenqi",