Comments (7)
I can confirm this is a issue. The simple fix is to change
"main": ["./ui-bootstrap-tpls.js"],
to:
"main": "./ui-bootstrap-tpls.js",
I don't know if this will have issues with other builders but fixes issues with browserify/browserify-shim/debowerify
from bootstrap-bower.
As far as I know an array is a perfectly valid value for the main property. Seems like an issue woth debowerify.
from bootstrap-bower.
https://docs.npmjs.com/files/package.json has following to say on the main field
main
The main field is a module ID that is the primary entry point to your program. That is, if your package is named foo, and a user installs it, and then does require("foo"), then your main module's exports object will be returned.
This should be a module ID relative to the root of your package folder.
For most modules, it makes the most sense to have a main script and often not much else.
Refers to ID
as a relative path.
from bootstrap-bower.
Sorry to keep posting but i did look it up a few places.
https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/package_json says
A string representing the name of a program module that is located in one of the top-level module directories specified by lib. Defaults to "main".
and http://browsenpm.org/package.json uses string as value for main
from bootstrap-bower.
It's nice that you're comparing all sorts of tools, assuming that they all do the same based on the fact that they have a corresponding filename, package.json.
This is a bower repository which has a bower package.json and following the bower documentation, it's perfectly fine to have an array as a value for main
:
http://bower.io/docs/creating-packages/
main
string or array: The primary acting files necessary to use your package.
from bootstrap-bower.
If it isn't a npm module, don't distribute it over npm.
angular-bootstrap-npm works with browserify etc.
from bootstrap-bower.
We didn't distribute to npm. Someone else did.
from bootstrap-bower.
Related Issues (20)
- Collapse broken in 0.13.0 HOT 2
- Popover does not work HOT 3
- The code is not separated by module in NPM HOT 1
- Incorrect angular dependency version HOT 3
- on 0.13.0 Bootstrap modal backdrop doesn't disappear when using angular-ui-bootstrap HOT 1
- Dependency on bootstrap.css HOT 1
- ngTable Coloumn Customization HOT 1
- Missing license HOT 3
- Add ngAnimate in to dependency list
- Repository out of date HOT 8
- Tag 0.12.2 disappear ? HOT 3
- Problem with bower installing the latest version HOT 7
- Not working with 1.5.5
- tooltip positioning issue HOT 1
- ui-bootstrap-csp.css for > v2.0.2 release?
- Missing copyright
- needs update to latest HOT 2
- Insecure Randomness(Fortify Scan)
- Cannot set property 'title' of null HOT 1
- Unexpected behaviour of modal opened class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-bower.