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

layout type don't work #149

Open
zhyq0826 opened this issue Dec 24, 2014 · 8 comments
Open

layout type don't work #149

zhyq0826 opened this issue Dec 24, 2014 · 8 comments
Labels

Comments

@zhyq0826
Copy link

when I set layout=bytype, it copy component like this:


├── bootstrap
│   ├── bootstrap.css
│   ├── bootstrap.js
│   ├── bootstrap.less
│   ├── glyphicons-halflings-regular.eot
│   ├── glyphicons-halflings-regular.svg
│   ├── glyphicons-halflings-regular.ttf
│   └── glyphicons-halflings-regular.woff

then I set layout=byComponet, it copy component still like before that, it should like this

├── bootstrap
│   ├──css
│   ├── fonts
│   ├── js

why it doesn't work?

@DDtMM
Copy link

DDtMM commented Jan 7, 2015

I am having a similar issue. When I created a custom layout function I was able to see that value for type is always untyped.

@lackneets
Copy link

+1

@lackneets
Copy link

Okay, I finally figured out the answer at #147

My project is using sails with sails-generate-bower

Set the layout to byComponent, then
edit the bower.json under project directory, append exportsOverride like this:

{
  ...
  "dependencies": {
    "bootstrap": "~3.3.1"
  },
  "exportsOverride": {
    "bootstrap": {
      "css": "dist/css/*.css",
      "js": "dist/js/bootstrap*.js",
      "fonts": "dist/fonts/*.*"
    }
  }
}

It works like a charm

@paulirwin
Copy link

+1, confirmed that byType doesn't work in v0.4.0

1 similar comment
@adrianovieira
Copy link

+1, confirmed that byType doesn't work in v0.4.0

@MaximKiselev
Copy link

C:\WebServers\domains\***\Gruntfile.js default
Running "bower:install" (bower) task
>> Cleaned target dir C:\WebServers\domains\
>> Installed bower packages
_untyped_
_untyped_
_untyped_
_untyped_
_untyped_
_untyped_
_untyped_
_untyped_
_untyped_

Type is not defined

@ragsnas
Copy link

ragsnas commented Mar 20, 2015

Weirdly it changed for me when i switched to choosing the directory using bowerOptions > directory rather than targetDir.

With targetDir i had a flat structire in my deps and without it is ordered just as in the repo representing the dep.

@sharkrice
Copy link

+1, confirmed that byType doesn't work in v0.4.0

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

No branches or pull requests

9 participants