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

[cli] Adds an option to init to use the Polymer 3.x compatible PSK prerelease. #169

Merged
merged 3 commits into from
Apr 19, 2018

Conversation

bicknellr
Copy link
Member

@bicknellr bicknellr commented Apr 18, 2018

Fixes #162.

@@ -76,9 +76,7 @@ export function createGithubGenerator(githubOptions: GithubGeneratorOptions):
}

install() {
this.installDependencies({
npm: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Did we have npm: false for just performance reasons? I'm wondering if this will cause issues for our existing generators. I'm kinda assuming no, it'll just be a bit slower?

I guess the only case I can think of would be if yeoman failed if we don't say npm: false but there also isn't a package.json file.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure why this was here - yeoman seems to figure this out on its own. When I init a Polymer 2 template with this change it specifically prints Running bower install for you to ... and when I init one of the Polymer 3 templates it prints Running npm install for you to ....

Copy link
Member Author

Choose a reason for hiding this comment

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

Also, each of the built-in templates only has one of bower.json or package.json, PSK for Polymer 3 is soon to only have package.json, and Shop for Polymer 2 only has bower.json.

@bicknellr bicknellr merged commit bba41c1 into master Apr 19, 2018
@bicknellr bicknellr deleted the init-3.x-psk branch April 19, 2018 17:41
justinfagnani added a commit that referenced this pull request Jul 10, 2018
* More alarming warnings in README

* Add Slack link

* A little less commas

* “unsaved” -> “uncommitted”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants