From 7d627beff93841ecc93c7b5234456d00d517d49a Mon Sep 17 00:00:00 2001 From: Jota Uribe Date: Fri, 17 Jul 2020 21:15:02 -0500 Subject: [PATCH 1/3] Updated gitignore file to remove unwanted files related with SPM from repo --- .gitignore | 3 +- .../contents.xcworkspacedata | 7 -- .../xcshareddata/xcschemes/Chroma.xcscheme | 91 ------------------- 3 files changed, 1 insertion(+), 100 deletions(-) delete mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 .swiftpm/xcode/xcshareddata/xcschemes/Chroma.xcscheme diff --git a/.gitignore b/.gitignore index 2e320e4..a5ce449 100755 --- a/.gitignore +++ b/.gitignore @@ -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/ \ No newline at end of file diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/Chroma.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/Chroma.xcscheme deleted file mode 100644 index de2e1d8..0000000 --- a/.swiftpm/xcode/xcshareddata/xcschemes/Chroma.xcscheme +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From 4ba37c9f8c770f9d020c46138a80f6397947e5a1 Mon Sep 17 00:00:00 2001 From: Jota Uribe Date: Fri, 17 Jul 2020 21:16:24 -0500 Subject: [PATCH 2/3] Added installation script and updated readme file with instructions to install --- README.md | 41 +++++++++++++++++++++++++++++++++++++++++ install.sh | 5 +++++ 2 files changed, 46 insertions(+) create mode 100644 install.sh diff --git a/README.md b/README.md index d863d55..1aaa21a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,44 @@ # Chroma A command line tool to generate swift colors definitions from .xcassets files. + +### Usage + +``` +$ Chroma --help + +USAGE: generator [--name ] [--output ] [--platform ] + +OPTIONS: + -n, --name Defines the name of the generated file. (default: + Chroma) + -o, --output Specifies generated file type. + Supported values: "extension","struct". (default: + extension) + -p, --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 +``` diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..c3f3f2e --- /dev/null +++ b/install.sh @@ -0,0 +1,5 @@ +#!/bin/sh +swift package clean +swift test +swift build -c release +cp .build/release/Chroma /usr/local/bin/chroma From fc59fe5b7a50301c4bd7d8c7479c72df73b36eb2 Mon Sep 17 00:00:00 2001 From: Jota Uribe Date: Fri, 17 Jul 2020 21:17:59 -0500 Subject: [PATCH 3/3] updated permissions on installation scrip tfile --- install.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 install.sh diff --git a/install.sh b/install.sh old mode 100644 new mode 100755