Git Product home page Git Product logo

Comments (7)

pskaarup avatar pskaarup commented on July 21, 2024

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.

rvanbaalen avatar rvanbaalen commented on July 21, 2024

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.

pskaarup avatar pskaarup commented on July 21, 2024

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.

pskaarup avatar pskaarup commented on July 21, 2024

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.

rvanbaalen avatar rvanbaalen commented on July 21, 2024

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.

pskaarup avatar pskaarup commented on July 21, 2024

If it isn't a npm module, don't distribute it over npm.
angular-bootstrap-npm works with browserify etc.

from bootstrap-bower.

rvanbaalen avatar rvanbaalen commented on July 21, 2024

We didn't distribute to npm. Someone else did.

from bootstrap-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.