mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 12:18:02 +03:00
chore: add support for exporting our colors as Swift files
This commit is contained in:
parent
29499d5b11
commit
40de64fffe
2 changed files with 25 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -42,6 +42,7 @@ test/automated/browser/screenshots
|
|||
lefthook.yml
|
||||
test/automated/browser/cypress/screenshots
|
||||
test/automated/browser/cypress/videos
|
||||
web/style-definitions/build/
|
||||
|
||||
web/public/sw.js
|
||||
web/public/workbox-*.js
|
||||
|
|
|
@ -54,5 +54,29 @@ module.exports = {
|
|||
},
|
||||
],
|
||||
},
|
||||
'ios-swift': {
|
||||
transforms: [
|
||||
'attribute/cti',
|
||||
'name/ti/camel',
|
||||
'color/ColorSwiftUI',
|
||||
'content/swift/literal',
|
||||
'asset/swift/literal',
|
||||
'size/swift/remToCGFloat',
|
||||
'font/swift/literal',
|
||||
],
|
||||
buildPath: 'build/',
|
||||
files: [
|
||||
{
|
||||
format: 'ios-swift/class.swift',
|
||||
className: 'PlatformColor',
|
||||
destination: 'Colors.swift',
|
||||
filter: {
|
||||
attributes: {
|
||||
category: 'color',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue