Skip to content
This repository was archived by the owner on Apr 1, 2019. It is now read-only.

Commit 8a99a9f

Browse files
author
Walker Leite
committed
fix cmpDir logic and improve logger
1 parent 2a8e5be commit 8a99a9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

meta.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = {
2222
},
2323
"complete": function(data, {logger}) {
2424
// Rename to be compatible with styleguide configuration
25-
const cmpDir = path.resolve(data.destDirName, 'src/Component');
25+
const cmpDir = data.inPlace?'src/Component':path.resolve(data.destDirName, 'src/Component');
2626
fs.renameSync(
2727
path.resolve(cmpDir, 'Component.vue'),
2828
path.resolve(cmpDir, data.name + '.vue')
@@ -38,11 +38,11 @@ module.exports = {
3838

3939
logger.log("To get started:");
4040
if (!data.inPlace) logger.log("cd " + data.destDirName);
41-
logger.log("1. Install dependencies npm install");
41+
logger.log("1. Install dependencies: npm install");
4242
logger.log("2. Write your component in src/Component.vue");
4343
logger.log("3. Write a demo in docs docs/Usage.md");
4444
logger.log("4. Access demo and docs with npm run serve");
45-
logger.log("5. Build with npm run build");
46-
logger.log("6. Build docs with npm run build:doc");
45+
logger.log("5. Build with: npm run build");
46+
logger.log("6. Build docs with: npm run build:doc");
4747
}
4848
};

0 commit comments

Comments
 (0)