Skip to content

Commit

Permalink
Merge pull request #10 from jjotaum/feature/swift-package-manager-sup…
Browse files Browse the repository at this point in the history
…port-part-two

Swift Package Manager Support Part Two
  • Loading branch information
jjotaum authored Jul 18, 2020
2 parents e0c091f + fc59fe5 commit e5c8c79
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 100 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@ Package.resolved

# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.swiftpm
.build/
7 changes: 0 additions & 7 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

This file was deleted.

91 changes: 0 additions & 91 deletions .swiftpm/xcode/xcshareddata/xcschemes/Chroma.xcscheme

This file was deleted.

41 changes: 41 additions & 0 deletions README.md
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
```
5 changes: 5 additions & 0 deletions install.sh
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

0 comments on commit e5c8c79

Please sign in to comment.