v1.0 #1

Merged
t.schmitt merged 10 commits from v1.0 into master 2022-10-17 11:24:27 +02:00
61 changed files with 1243 additions and 403 deletions
Showing only changes of commit 8723019732 - Show all commits

View File

@ -32,8 +32,7 @@ struct Colors: ParsableCommand {
public func run() throws {
print("[\(Self.toolName)] Starting colors generation")
print("[\(Self.toolName)] Will use inputFile \(options.inputFile) to generate \(options.colorStyle) colors in xcassets \(options.xcassetsPath)")
// Check requirements
guard checkRequirements() else { return }

View File

@ -23,7 +23,7 @@ class ColorFileParser {
.replacingOccurrences(of: "=", with: "") // Keep compat with current file format
guard colorLineCleanedUp.hasPrefix("#") == false, colorLineCleanedUp.isEmpty == false else {
print("[\(Colors.toolName)] ⚠️ BadFormat or empty line (line number: \(lineNumber + 1)). Skip this line")
debugPrint("[\(Colors.toolName)] ⚠️ BadFormat or empty line (line number: \(lineNumber + 1)). Skip this line")
return nil
}

View File

@ -31,6 +31,7 @@ struct Fonts: ParsableCommand {
public func run() throws {
print("[\(Self.toolName)] Starting fonts generation")
print("[\(Self.toolName)] Will use inputFile \(options.inputFile) to generate fonts")
// Check requirements
guard checkRequirements() else { return }

View File

@ -39,8 +39,7 @@ extension ColorsConfiguration: Runnable {
extensionSuffix
]
}
print("Colors args:")
dump(args)
//Colors.main(args)
Colors.main(args)
}
}

View File

@ -16,7 +16,7 @@ extension FontsConfiguration: Runnable {
}
args += [
inputFile,
inputFile.prependIfRelativePath(projectDirectory),
"--extension-output-path",
extensionOutputPath.prependIfRelativePath(projectDirectory),
"--static-members",

View File

@ -31,6 +31,7 @@ struct Images: ParsableCommand {
mutating func run() {
print("[\(Self.toolName)] Starting images generation")
print("[\(Self.toolName)] Will use inputFile \(options.inputFile) to generate images in xcassets \(options.xcassetsPath)")
// Check requirements
guard checkRequirements() else { return }

View File

@ -32,6 +32,7 @@ struct Stringium: ParsableCommand {
mutating func run() {
print("[\(Self.toolName)] Starting strings generation")
print("[\(Self.toolName)] Will use inputFile \(options.inputFile) to generate strings for \(options.langs) (default lang: \(options.defaultLang)")
// Check requirements
guard checkRequirements() else { return }

View File

@ -32,7 +32,8 @@ struct Tags: ParsableCommand {
// MARK: - Run
mutating func run() {
print("[\(Self.toolName)] Starting tagss generation")
print("[\(Self.toolName)] Starting tags generation")
print("[\(Self.toolName)] Will use inputFile \(options.inputFile) to generate strings for lang: \(options.lang)")
// Check requirements
guard checkRequirements() else { return }