-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…387) * Tool * Test tokens generation * Revert "Test tokens generation" This reverts commit 5d236ea. * CR improvements * Use snapshots * Add JSDoc * setup eslint * configure prettier * Run Prettier * Fix lint * IOS-10444 Mistica importer from GH Actions (#390) * Tests action for the tool * Create a new workflow for mistica-skin-generator-tests and modify the generation flow to generate tokens * Test show URL * Clean up --------- Co-authored-by: Abel Toledano <[email protected]>
- Loading branch information
Showing
66 changed files
with
9,849 additions
and
417 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 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,30 @@ | ||
name: Mistica skin generator tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- 'scripts/mistica-skin-generator/**' | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Build & execute tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
working-directory: scripts/mistica-skin-generator | ||
|
||
- name: Run tests | ||
run: npm run test | ||
working-directory: scripts/mistica-skin-generator |
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 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,6 @@ | ||
{ | ||
"recommendations": [ | ||
"esbenp.prettier-vscode", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
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 @@ | ||
{ | ||
"eslint.workingDirectories": [ | ||
"scripts/mistica-skin-generator" | ||
] | ||
} |
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 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 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
18 changes: 18 additions & 0 deletions
18
Sources/MisticaCommon/Extensions/BrandStyle+UIStatusBarStyle.swift
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,18 @@ | ||
// | ||
// BrandStyle+UIStatusBarStyle.swift | ||
// | ||
// Made with ❤️ by Novum | ||
// | ||
// Copyright © Telefonica. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
public extension BrandStyle { | ||
var preferredStatusBarStyle: UIStatusBarStyle { | ||
switch self { | ||
case .movistar, .vivo, .o2, .o2New, .blau, .custom, .vivoNew, .tu, .telefonica: | ||
return .lightContent | ||
} | ||
} | ||
} |
48 changes: 0 additions & 48 deletions
48
_templates/ColorTokenGenerator/BrandColors/BrandColorsAction.ejs.t
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
_templates/ColorTokenGenerator/MisticaColors/MisticaColorsAction.ejs.t
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.