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

How can I add to new bower component now with yarn. #19

Open
srikanthdarmapuri opened this issue Nov 23, 2017 · 5 comments
Open

How can I add to new bower component now with yarn. #19

srikanthdarmapuri opened this issue Nov 23, 2017 · 5 comments

Comments

@srikanthdarmapuri
Copy link

I would like to add new bower component inside node_modules/@bower_components. How can achieve that.
If do "yarn add <package_name>", it is added directly in node_modules/

@ahbarrios
Copy link

I have the same problem any help, please!

@Stefdv
Copy link

Stefdv commented Jan 16, 2018

Shouldn't you use yarn add --flat <package_name> then ?

@sheerun
Copy link
Owner

sheerun commented Jan 17, 2018

e.g. if you want to add jquery then do:

bower lookup jquery
jquery https://github.com/jquery/jquery-dist.git

and:

yarn add @bower_components/jquery@jquery/jquery-dist

But really, you should consider adding new components from npm's registry (i.e. yarn add jquery), and employing webpack to bundle them (const $ = require('jquery')).

--flat is not necessary

@Stefdv
Copy link

Stefdv commented Jan 17, 2018

I'm using Polymer...Until Polymer 3 is released i'm stuck on bower :( And creating a fork of all components seems a little overhead

@sheerun
Copy link
Owner

sheerun commented Jan 17, 2018

You don't need to fork anything. Yarn can install any github repository.

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

No branches or pull requests

4 participants