Giter Club home page Giter Club logo

Comments (11)

Lutzifer avatar Lutzifer commented on May 4, 2024 1

bootstrap is a valid name for that I guess

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024 1

Ok cool. I'm happy to release this now, and we can add mint bootstrap later.
By the way I added support for specifying just the repo name now in the Mintfile lookup

mint run yonaskolb/xcodegen // from mintfile
mint run xcodegen // also from mintfile

from mint.

Lutzifer avatar Lutzifer commented on May 4, 2024

What could this look like?

  • Search in the current path and all parents for a file named .mint-versions
  • if found, exactly match the package (the first parameter after mint run) if no version is specified

When run:

  • look in mint file if a version is specified and take it, otherwise take empty version

File Format (json, as foundation can handle it):

[ 
 {package: "yonaskolb/Mint", version: "0.0.1"},
 {package: "https://github.com/krzysztofzablocki/Sourcery", version: "0.10.1"}
]

from mint.

Lutzifer avatar Lutzifer commented on May 4, 2024

@yonaskolb should I have a look at implementing this or do you?

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

Hi @Lutzifer
I imagined it as a Mint file that is just a plain text file with each package listed on a newline in a format that's the same as the package argument. Similar to a Carthage Cartfile

I didn't think it would search recursively, but just look in the current directory.

I was also considering having a mint install that would install the current package if there was a Package.swift. This would conflict, so this could maybe be mint bootstrap?

If you'd like to create a PR that would be great!

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

Also if someone were to run mint run package without a version, we could look for this file in that directory and use the version specified there

from mint.

Lutzifer avatar Lutzifer commented on May 4, 2024

Also if someone were to run mint run package without a version, we could look for this file in that directory and use the version specified there

yes, as defined above

from mint.

Lutzifer avatar Lutzifer commented on May 4, 2024

on it

from mint.

Lutzifer avatar Lutzifer commented on May 4, 2024

@yonaskolb we can close this 😃 (unless there are still features missing)

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

We'd still need the mint install feature to install all packages in the mint file. Though as mentioned before, because I'd like to in the future also add installing the current directory's package if you're in one, we might use mint install for that instead. The mint file command could then be mint bootstrap instead. What do you think of the names?

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

Mintfile is now released in 0.9.0, and boostrap issue moved to #76

from mint.

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.