Skip to content
/ swm Public

Swift Modules, a swift module (or package) manager #fuck_xcode #terminal_rocks

Notifications You must be signed in to change notification settings

jankuca/swm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Modules

The Swift Modules manager similar to the JavaScript world's npm and bower

Installation

$ npm install -g swm

or without node.js:

$ curl "https://raw.github.com/jankuca/swm/master/install.sh" | sh

Usage

Module dependencies are declared in a swiftmodule.json file in the JSON format:

{
  "name": "ModuleName",
  "directories": {
    "source": "src"
  },
  "dependencies": {
    "Dependency": "jankuca/dependecy,
    "MyOtherDependency": "git://github.com/jankuca/other-dependency"
  }
}
$ swm install

The dependencies are then importable via the import Swift statement using the names specified in the dependencies map of the swiftmodule.json file.

Using packages without a swiftmodule.json file

If a package does not include the swiftmodule.json file, the including package can specify the source file directory of the dependency in its swiftmodule.json.

{
  "name": "ModuleName",
  "dependencies": {
    "Dependency": "jankuca/dependency @source:src"
  }
}

About

Swift Modules, a swift module (or package) manager #fuck_xcode #terminal_rocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published