curist / grunt-bower

grunt task to copy bower installed packages to other folder(s)
MIT License
93 stars 27 forks source link

jquery-validation doesn't get copied #65

Open Toruk opened 7 years ago

Toruk commented 7 years ago

It seems like jquery-validation (and maybe some others?) doesn't get copied although all the others do. This is my grunt task:

bower: {
            common: {
                dest: "wwwroot/",
                js_dest: "wwwroot/js",
                css_dest: "wwwroot/css",
                options: {
                    keepExpandedHierarchy: false
                }
            }
        }

Also, I don't why, the file jquery-validation/test/test.js gets copied to my js_dest, but it's the only one.

curist commented 7 years ago

I can't reproduce this issue using the same configuration. Everything work fine here. Can you provide a minimal code example that reproduce this behavior?

Toruk commented 7 years ago

Well I don't know what code example I could give you but I can say I'm running v0.20.0 of your plug-in, and here is my file structure for the jquery-validation folder (there are too many files so I only show the ones at the root):

C:\GIT\******\SRC\******\BOWER_COMPONENTS\JQUERY-VALIDATION
│   .bower.json
│   .gitattributes
│   .gitignore
│   .travis.yml
│   additional-methods.js
│   changelog.txt
│   CONTRIBUTING.md
│   Gruntfile.js
│   jquery.validate.js
│   package.json
│   README.md
│   todo
│   validation.jquery.json
│
├───demo
│   ├───captcha
│   │   ├───fonts
│   │   └───images
│   ├───css
│   ├───images
│   ├───login
│   │   └───images
│   ├───marketo
│   │   └───images
│   ├───milk
│   ├───multipart
│   │   └───js
│   ├───tabs
│   └───tinymce
│       └───themes
│           └───simple
│               ├───img
│               ├───langs
│               └───skins
│                   └───default
├───lib
├───localization
└───test
    ├───firebug
    ├───qunit
    └───selects

And the one for wwwroot/js:

C:\GIT\******\SRC\******\WWWROOT\JS
│   amcharts.js
│   angular-animate.js
│   angular-aria.js
│   angular-local-storage.js
│   angular-material.js
│   angular-route.js
│   angular-sanitize.js
│   angular-translate.js
│   angular.js
│   app.js
│   bootstrap-slider.js
│   bootstrap-touch-carousel.js
│   bootstrap.js
│   d3.js
│   d3pie.min.js
│   dev.js
│   functions.js
│   hammer.js
│   http-auth-interceptor.js
│   jquery.form.js
│   jquery.js
│   jquery.signalR.js
│   jquery.unobtrusive-ajax.js
│   jquery.validate.unobtrusive.js
│   jquery.validate.unobtrusive.min.js
│   marked.js
│   moment.js
│   pie.js
│   serial.js
│   simplebar.js
│   svgxuse.js
│   test.js
│   tether.js
│   ui-bootstrap-tpls.js
│
├───controllers
│       (...)
│
├───datas
│       (...)
│
└───services
│       (...)

I hope this can help you, I don't know what else I could give as you already have my grunt task... Thank you !

curist commented 7 years ago

try this

git clone git@gist.github.com:4e13a2c6c5bac868e07aa9cb9ca03dcf.git foo
cd foo
npm i
bower i jquery-validation
grunt

and check if jquery.validate.js is in wwwroot folder.

Toruk commented 7 years ago

Yes, it does!