Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[patch] [bug] fix license prompt for app generator, use path. #429

Merged
merged 3 commits into from
Jun 24, 2017

Conversation

animesh10
Copy link
Contributor

  • fix license prompt for app generator.
  • fix issue 344.
  • use path.join to construct paths.

this.env.error(
"You need to run this command from the 'packages' folder generated by running 'yo electrode:component'."
);
}

try {
//fetch the demo App Name, which is "demo-app" by default
this.demoAppName = glob.sync("../**demo-app").pop().split("/").pop();
this.pkg = this.fs.exists(this.destinationPath("../" + this.demoAppName + "/package.json"));
glob.sync("**demo-app", { cwd: path.resolve("..") }).map(x => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why using .map?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants