项目作者: pondok-programmer

项目描述 :
A Swift Package Manager CLI helper
高级语言: Python
项目地址: git://github.com/pondok-programmer/spmcli.git
创建时间: 2019-06-29T15:06:08Z
项目社区:https://github.com/pondok-programmer/spmcli

开源协议:

下载


Swift Package Manager CLI

You have bad days when should working with Swift Package Manager in command line?

  1. Tedious flags
  2. Or, you don’t want to manage script files?

Now, it will be fun!

Requirement

Python 3

  1. Write your flags in SPMCLI.yaml

    1. # SPMCLI.yaml
    2. linux:
    3. build:
    4. -Xswiftc:
    5. - "-target"
    6. - "-DDEBUG"
    7. -Xcc:
    8. - "-DHAVE_INTTYPES_H"
    9. mac:
    10. build:
    11. -Xlinker:
    12. - "./libHello.a"

    See example in SPMCLI.yaml

  2. Invoke spmcli build

How to install

This helper script will be available through pip, make sure you have Python3 in your system.

For now, you can install using this way.

Git

  1. git clone git clone https://github.com/muizidn/spmcli.git
  2. cd spmcli
  3. pip3 install -r requirements.txt
  4. pyinstaller --onefile spmcli
  5. export PATH=${PWD}/dist:$PATH
  6. #or update your .bashrc

#

See HowItWorks

Misc

There’s xcproj branch which has experimental feature for xcodeproj generation. But it has bugs which requires you to manually edit the generated xcconfig if the generated Xcodeproj fail.

Contributing

SPMCLI is just a helper. Try to design your idea so it can be implemented in SwiftPM first, then apply it in SPMCLI. We hope SPM will provide nice way to set our configurations in the future.
But you can always make an issue. Why not?

Other Mature Tool?

You can use facebook buck or google bazel which is extensible, fast, and has so many features.
Or, if you like, you can use Rakefile.