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

feature: yarn install (through a flag) #225

Merged
merged 8 commits into from
Jul 16, 2017
Merged

Conversation

reznord
Copy link
Member

@reznord reznord commented Jul 13, 2017

This PR adds support for yarn in the application. 🎉

User can install & use yarn by adding a flag --yarn when he initializes a project using preact create my_app --yarn.

Added install-dependencies.js since I want to keep create.js clean and simple.

For now cancelling the tests since they will fail for sure 😛

Tests are the only thing that are failing now, else we are good to go with yarn 😎

@rkostrzewski @developit please help with the tests !!

@reznord
Copy link
Member Author

reznord commented Jul 13, 2017

Closing #31 in favour of this

@reznord
Copy link
Member Author

reznord commented Jul 14, 2017

Here is the latest log from the failed tests - https://gist.github.com/reznord/f69ddcf6f0caad99bb9d83ce61381ca8

Progress: Tests are not failing that worse 😛

@reznord reznord added this to the 1.4.0 milestone Jul 14, 2017
'--prefix', process.cwd(),
...deps
].filter(Boolean)).then( () => {
return install(false, process.cwd(), deps, save).then( () => {
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to allow yarn here if it's installed? We could check for a yarn.lock as an indication of whether the current repo is set up with yarn.

@reznord reznord merged commit bd0658f into master Jul 16, 2017
@reznord reznord deleted the feature/yarn-support branch July 16, 2017 15:48
@reznord reznord restored the feature/yarn-support branch July 16, 2017 15:48
@reznord reznord deleted the feature/yarn-support branch July 16, 2017 15:48
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