Giter Site home page Giter Site logo

Comments (7)

jbenet avatar jbenet commented on August 30, 2024

looks like gx import <pkg> is the thing gx wants me to do.

  • other pkg mgrs use gx install <pkg> (see npm)
  • at the very least gx install <pkg> should return an error.

from gx.

whyrusleeping avatar whyrusleeping commented on August 30, 2024

@jbenet right. I had the concepts of 'fetch all dependencies' and 'grab a new dependency' as separate in my mind. Do you think that it should just be install?

Where gx install has the same behaviour that it currently has, and gx install XYZ does what gx import XYZ does now?

from gx.

hackergrrl avatar hackergrrl commented on August 30, 2024

(Aside: gx is super cool!)

I'm partial to the way npm separates downloading ("installing") a package and adding a package dependency ("saving"):

npm install X: download X and place it in vendor/ -- don't update package.json
npm install --save X: like the above, but add it as a package dependency
npm install: expands to npm install X Y Z, assuming pkg depends on X, Y, and Z

from gx.

whyrusleeping avatar whyrusleeping commented on August 30, 2024

@noffle yeah, i think i agree with this.

how about this:
gx install X acts like npm install X, no package.json changes
gx import X acts like npm install --save X, and updates the package.json
gx install --save X can essentially be an alias to gx import
gx install currently expands to gx install X Y Z, just like npm install

from gx.

hackergrrl avatar hackergrrl commented on August 30, 2024

@whyrusleeping yes! Brilliant. :)

Just to clarify, I think that both install and import should both still create the named symlink in vendor/ -- agreed?

from gx.

whyrusleeping avatar whyrusleeping commented on August 30, 2024

@noffle yeah, i want to keep that. Right now, the link is added at the same time its imported, and the linkname is written to the package.json so that the same link is created on further installs.

from gx.

whyrusleeping avatar whyrusleeping commented on August 30, 2024

this now does a thing, closing

from gx.

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.