Git Product home page Git Product logo

Comments (11)

curist avatar curist commented on September 26, 2024

Hey there, thanks to @ertrzyiks , this is fixed in v0.14.1.

from grunt-bower.

adambiggs avatar adambiggs commented on September 26, 2024

This is still no good... After updating to v0.14.2 I get the following directory structure:

libs/

> package1/
>> js/
>>> main.js
>>> locales/
>>>> locale1.js
>>>> locale2.js

> package 2/
>> main.js
>> locales/
>>> locale1.js
>>> locale2.js

If you set a glob as js/**, ** should be relative to the js/ directory.

The final result should look like this:

libs/

> package 1/
>> main.js
>> locales/
>>> locale1.js
>>> locale2.js

> package 2/
>> main.js
>> locales/
>>> locale1.js
>>> locale2.js

from grunt-bower.

curist avatar curist commented on September 26, 2024

Hi there, please check the new version, v0.15.0.
And be sure to add stripGlobBase: true.

from grunt-bower.

nmccready avatar nmccready commented on September 26, 2024

Can you make this more obvious in the README ?

from grunt-bower.

nmccready avatar nmccready commented on September 26, 2024

Why can't the flattening be easy and just put the setting at the root of options. So all packages get flattened. The whole idea of this is to have less work for globing in bower. Otherwise I still need to do a lot more grunt work to get things flattened out. Checkout gulp-bower as it does exactly this.

from grunt-bower.

nmccready avatar nmccready commented on September 26, 2024

I keep getting:

vendor/scripts/angular-animate.js copied.
vendor/scripts/angular-cookies.js copied.
vendor/scripts/dist/angular-google-maps.js copied.
vendor/scripts/angular-highlightjs.js copied.
vendor/scripts/angular-resource.js copied.
vendor/scripts/angular-sanitize.js copied.
vendor/scripts/angular-scenario.js copied.
vendor/scripts/angular-semver-sort.js copied.
vendor/scripts/release/angular-ui-router.js copied.
vendor/scripts/angular.js copied.
vendor/scripts/js/browser/bluebird.js copied.
vendor/styles/dist/css/bootstrap.css copied.
vendor/scripts/dist/js/bootstrap.js copied.
vendor/dist/fonts/glyphicons-halflings-regular.eot copied.
vendor/dist/fonts/glyphicons-halflings-regular.svg copied.
vendor/dist/fonts/glyphicons-halflings-regular.ttf copied.
vendor/dist/fonts/glyphicons-halflings-regular.woff copied.
vendor/scripts/es5-shim.js copied.
vendor/scripts/highlight.pack.js copied.
vendor/styles/styles/default.css copied.
vendor/scripts/dist/jquery.js copied.
vendor/scripts/lib/json3.min.js copied.
vendor/scripts/dist/lodash.compat.js copied.
vendor/scripts/build/share.js copied.
vendor/scripts/underscore.js copied.

when I want:

vendor/scripts/angular-animate.js copied.
vendor/scripts/angular-cookies.js copied.
vendor/scripts/dist/angular-google-maps.js copied.
vendor/scripts/angular-highlightjs.js copied.
vendor/scripts/angular-resource.js copied.
vendor/scripts/angular-sanitize.js copied.
vendor/scripts/angular-scenario.js copied.
vendor/scripts/angular-semver-sort.js copied.
vendor/scripts/release/angular-ui-router.js copied.
vendor/scripts/angular.js copied.
vendor/scripts/bluebird.js copied.
vendor/styles/bootstrap.css copied.
vendor/scripts/bootstrap.js copied.
vendor/fonts/glyphicons-halflings-regular.eot copied.
vendor/fonts/glyphicons-halflings-regular.svg copied.
vendor/fonts/glyphicons-halflings-regular.ttf copied.
vendor/fonts/glyphicons-halflings-regular.woff copied.
vendor/scripts/es5-shim.js copied.
vendor/scripts/highlight.pack.js copied.
vendor/styles/default.css copied.
vendor/scripts/jquery.js copied.
vendor/scripts/json3.min.js copied.
vendor/scripts/lodash.compat.js copied.
vendor/scripts/build/share.js copied.
vendor/scripts/underscore.js copied.

using

  bower:
    dev:
      dest :'vendor/'
      fonts_dest:'vendor/fonts'
      js_dest: 'vendor/scripts'
      css_dest: 'vendor/styles'
      options:
        expand: false
        stripAffix: true
        #stripGlobBase: true
        ignorePackages: ['angular-mocks']
        packageSpecific:
          bootstrap:
            files: [
              'dist/css/bootstrap.css'
              'dist/js/bootstrap.js'
              'dist/fonts/*'
            ]

from grunt-bower.

nmccready avatar nmccready commented on September 26, 2024

Main issue is stuff like

vendor/scripts/dist/jquery.js copied.
vendor/scripts/lib/json3.min.js copied.

Why keep the lib and dist ? How can I do this without having to go through each dependency specifically?

from grunt-bower.

curist avatar curist commented on September 26, 2024

I'm not sure your questions really belong to this issue?
For a simply flattened file structure, check keepExpandedHierarchy in README.

from grunt-bower.

nmccready avatar nmccready commented on September 26, 2024

@curist thanks, sorry at first I thought it was the same issue.

from grunt-bower.

nmccready avatar nmccready commented on September 26, 2024

@curist tight that worked great.

from grunt-bower.

curist avatar curist commented on September 26, 2024

Glad it works for you!

from grunt-bower.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.