Closed ihorskyi closed 9 years ago
I can't repro. Just tried a moment ago
$ bower install bardjs -f
... lots of stuff reported including ...
bower download https://github.com/wardbell/bardjs/archive/0.1.5.tar.gz
$ ls bower_components/bardjs/dist
bard-ngRouteTester.js bard.js
I used the "-f" option to ensure I wasn't installing from the local bower cache
And I just went to the github source for the 0.1.5 release and it's got the goods.
Not sure how to explain our different experiences.
I WILL GIVE YOU ONE WEEK TO REPRO BEFORE I CLOSE THIS ISSUE
Thanks @wardbell, just tried 0.1.5 & 0.1.8 versions and they both have the same issue on my machine - bower won't unpack them correctly.
$ bower -v
1.4.1
Here is a log:
$ bower install bardjs -f
bower bardjs#* resolve git://github.com/wardbell/bardjs.git#*
bower bardjs#* download https://github.com/wardbell/bardjs/archive/0.1.8.tar.gz
bower bardjs#* extract archive.tar.gz
bower bardjs#* resolved git://github.com/wardbell/bardjs.git#0.1.8
bower sinon#* resolve http://sinonjs.org/releases/sinon-1.15.0.js#*
bower sinon#* download http://sinonjs.org/releases/sinon-1.15.0.js
bower angular-mocks#>=1.3.8 resolve git://github.com/angular/bower-angular-mocks.git#>=1.3.8
bower angular#>=1.3.8 resolve git://github.com/angular/bower-angular.git#>=1.3.8
bower sinon#* invalid-meta sinon is missing "ignore" entry in bower.json
bower sinon#* resolved http://sinonjs.org/releases/sinon-1.15.0.js#e-tag:2081e4-2e
bower angular#>=1.3.8 download https://github.com/angular/bower-angular/archive/v1.4.4.tar.gz
bower angular-mocks#>=1.3.8 download https://github.com/angular/bower-angular-mocks/archive/v1.4.4.tar.gz
bower angular-mocks#>=1.3.8 extract archive.tar.gz
bower angular-mocks#>=1.3.8 resolved git://github.com/angular/bower-angular-mocks.git#1.4.4
bower angular#>=1.3.8 extract archive.tar.gz
bower angular#>=1.3.8 resolved git://github.com/angular/bower-angular.git#1.4.4
bower bardjs#~0.1.8 install bardjs#0.1.8
bower sinon#* install sinon#e-tag:2081e4-2e
bower angular-mocks#>=1.3.8 install angular-mocks#1.4.4
bower angular#>=1.3.8 install angular#1.4.4
bardjs#0.1.8 bower_components/bardjs
├── angular#1.4.4
├── angular-mocks#1.4.4
└── sinon#e-tag:2081e4-2e
sinon#e-tag:2081e4-2e bower_components/sinon
angular-mocks#1.4.4 bower_components/angular-mocks
└── angular#1.4.4
angular#1.4.4 bower_components/angular
And this is how bardjs directory looks like after
bower_components/bardjs $ tree
.
├── CHANGELOG.md
├── LICENSE
├── README.md
├── bower.json
├── dist
├── package.json
└── snippets
└── brackets-testing-snippets.yaml
2 directories, 6 files
However if I manually fetch it and unpack everything is fine
bardjs-0.1.8 $ tree
.
├── CHANGELOG.md
├── LICENSE
├── README.md
├── bard-ngRouteTester.js
├── bard.js
├── bower.json
├── dist
│ ├── bard-ngRouteTester.js
│ ├── bard.js
│ └── bard.min.js
├── gulp.config.js
├── gulpfile.js
├── index.html
├── package.json
├── snippets
│ └── brackets-testing-snippets.yaml
└── tests
├── bard.injector.spec.js
└── bard.mockService.spec.js
3 directories, 16 files
Just tried again and compared the bower output on my machine with yours. They are essentially identical and I have the two files in my dist folder; no bard.min.js and none expected.
I'm running bower v.1.4.1 as well.
I don't know what accounts for the difference. No one else has reported your experience and there are plenty of bardjs consumers out there.
I happen to be running on Windows at the moment; I've asked someone else try it on a mac and will report back.
Strongly suspect that there is something at your end.
Do you have a .bowerrc in the directory or up the path to the root? Could there be anything in it that might cause this behavior? I'm grasping at straws now.
I just did
$ bower cache clean bardjs
bower deleted Cached package bardjs: /Users/pk/.cache/bower/packages/b5791e4afb06f829545b26749a0e0a18/0.0.9
bower deleted Cached package bardjs: /Users/pk/.cache/bower/packages/b5791e4afb06f829545b26749a0e0a18/0.1.4
bower deleted Cached package bardjs: /Users/pk/.cache/bower/packages/b5791e4afb06f829545b26749a0e0a18/0.1.5
bower deleted Cached package bardjs: /Users/pk/.cache/bower/packages/b5791e4afb06f829545b26749a0e0a18/0.1.8
and after that it finally installs completely About .bowerrc, the only one I had in hottowel-angular-typescript project (that's where this issue originated from https://github.com/johnpapa/hottowel-angular-typescript/issues/15), it's content:
{
"directory": "bower_components",
"scripts": {
"postinstall": "gulp wiredep"
}
}
Sorry for confusion :)
directory is empty