swm

0.1.3 • Public • Published

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" | bash

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"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i swm

Weekly Downloads

1

Version

0.1.3

License

none

Last publish

Collaborators

  • jankuca