-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from jjotaum/feature/swift-package-manager-sup…
…port-part-two Swift Package Manager Support Part Two
- Loading branch information
Showing
5 changed files
with
47 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,44 @@ | ||
# Chroma | ||
|
||
A command line tool to generate swift colors definitions from .xcassets files. | ||
|
||
### Usage | ||
|
||
``` | ||
$ Chroma --help | ||
USAGE: generator [--name <name>] [--output <output>] [--platform <platform>] | ||
OPTIONS: | ||
-n, --name <name> Defines the name of the generated file. (default: | ||
Chroma) | ||
-o, --output <output> Specifies generated file type. | ||
Supported values: "extension","struct". (default: | ||
extension) | ||
-p, --platform <platform> | ||
Specifies the platform compatibility of the exported | ||
file. (default: iOS) | ||
-h, --help Show help information. | ||
``` | ||
|
||
### Installation | ||
|
||
Clone Chroma on your machine: | ||
|
||
``` | ||
$ git clone https://github.com/jjotaum/Chroma.git | ||
``` | ||
Navigate to it's directory: | ||
|
||
``` | ||
$ cd Chroma | ||
``` | ||
|
||
Execute install script | ||
``` | ||
$ ./install.sh | ||
``` | ||
Chroma should now be installed on /usr/local/bin and can be accessed via terminal. | ||
``` | ||
$ chroma | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
swift package clean | ||
swift test | ||
swift build -c release | ||
cp .build/release/Chroma /usr/local/bin/chroma |