Coder Social home page Coder Social logo

Publish to NPM about ui-layout HOT 8 CLOSED

angular-ui avatar angular-ui commented on August 16, 2024
Publish to NPM

from ui-layout.

Comments (8)

jbro-io avatar jbro-io commented on August 16, 2024

Why would you be installing this via NPM instead of Bower? The bower branch is where al the dist files are published to, so you should never be linking to the master branch.

from ui-layout.

alvint avatar alvint commented on August 16, 2024

@jbroquist - The OP answered that question (why NPM) in his original comment, and it's a very good reason. Additionally in my case I use Browserify to package the javascript in my HTML projects (along with Gulp to package the CSS). This works with everything else in the Angular bullpen.

I was very excited to use this package in my projects, but there's no way on Earth I'm going to add a second dependency system and have some deps work one way and other deps work another way just to get it. Other people have to maintain my projects after I'm done writing them, so I don't want to add extra complexity. Bower is so 2013, Grandpa! Please reconsider this.

from ui-layout.

alvint avatar alvint commented on August 16, 2024

👍

from ui-layout.

alvint avatar alvint commented on August 16, 2024

@maxkorp - How do you set it to the GitHub path?

from ui-layout.

jbro-io avatar jbro-io commented on August 16, 2024

@alvint see my response in #72

from ui-layout.

alvint avatar alvint commented on August 16, 2024

@jbroquist - I see! Are there any instructions on the technique @maxkorp mentioned?

from ui-layout.

maxkorp avatar maxkorp commented on August 16, 2024

Sorry, i've been offline a bit.
To reference a specific commit or tag in your package.json so that NPM can just pull it from github, you have to reference owner/repository#oid, so your dependencies in package.json would look like

"dependencies": {
  ...
  "ui-layout": "angular-ui/ui-layout#352bd3c67f2cd5af2be4ab884b91903946409e99",
  ...
}

where 352bd3c67f2cd5af2be4ab884b91903946409e99 points to the commit where it was upgraded to 1.0.5, in my case. You have to dig around a bit because simply using the tags put up point to the bower branch, which doesnt include the package.json, so you need to use the master branch which leaves it intact. Unfortunately, that doesnt include the build, so you need to manually cd in and build it.

As i said in the issue tagged directly above this comment for ui bootstrap, this is best resolved by adding to the angular-ui publishing platform, but I just haven't had the time.

from ui-layout.

maxkorp avatar maxkorp commented on August 16, 2024

For reference: angular-ui/angular-ui-publisher#3

from ui-layout.

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.