Skip to content

artemnovichkov/sasha

Repository files navigation

sasha Swift 4.2 Make Swift Package Manager Marathon

Sasha is an easy-to-use CLI app for routine designer tasks.

FeaturesUsingInstallingAuthorLicense

Features

  • Icon slicing for different platforms:
    • iOS
    • watchOS including 40 and 44 mm versions
    • watchOS Complications
    • macOS
    • Carplay
    • Android
    • Android Wear
  • Project folder tree generation

Using

Icons

Sasha has two main commands - icons and project.

$ sasha icons --platform iOS --name icon.png

Sasha generates icons in needed resolutions as well. For Apple platforms Sasha generates AppIcon.appiconset, which iOS developer can drag and drop right into Images.xcassets without manual icon sorting 👨🏻‍💻👍.

There is a service for Sasha. Right click on an original icon, select Services > Sasha, make me iOS icons.

Project generation

$ sasha project --name ProjectName

Sasha generates folder tree with name passed via --name option. By default Sasha uses this project structure:

iOS
-UI
--old
--png
-UX
--old
--png
Android
-UI
--old
--png
-UX
--old
--png
references
-main_screens
-menu
-cards
-another_case
stuff
-logos
-icons
-patterns
-stocks
-source

To change it, open ~/.sasha/project.sasha file in your favourite text editor and make custom project structure.

Installing

Homebrew (recommended):

$ brew install artemnovichkov/projects/sasha

Make:

$ git clone https://github.com/artemnovichkov/sasha.git
$ cd sasha
$ make

Swift Package Manager:

$ git clone https://github.com/artemnovichkov/sasha.git
$ cd sasha
$ make build
$ cp -f .build/release/sasha /usr/local/bin/sasha
$ cp -r .sasha ~

Marathon:

  • Install Marathon.
  • Add Files using $ marathon add https://github.com/artemnovichkov/sasha.git.
  • Run your script using $ marathon run <path-to-your-script>.

Author

Artem Novichkov, novichkoff93@gmail.com

Get help on Codementor

License

Sasha is available under the MIT license. See the LICENSE file for more info.