Created
October 14, 2021 09:06
-
-
Save robrechtme/453f3c3e5ddf1e222417ae3e99faedcd to your computer and use it in GitHub Desktop.
Specify config file
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
module.exports = { | |
repository: "@my_organization/my-repository", | |
personalAccessToken: "my_personal_access_token", | |
rules: [ | |
{ | |
name: 'Download Vector Assets', | |
path: 'src/common/assets/vector', | |
filter: { | |
types: ['vector'], | |
}, | |
parsers: [ | |
{ | |
name: 'camelcasify', | |
}, | |
{ | |
name: 'svgo', | |
options: { | |
svgo: { | |
plugins: [ | |
{ | |
removeDimensions: true, | |
}, | |
{ | |
convertColors: { | |
currentColor: true, | |
}, | |
}, | |
], | |
}, | |
}, | |
}, | |
], | |
}, | |
{ | |
name: 'Download Bitmap Assets', | |
path: 'src/common/assets/bitmap', | |
filter: { | |
types: ['bitmap'], | |
}, | |
parsers: [ | |
{ | |
name: 'camelcasify', | |
}, | |
], | |
}, | |
{ | |
name: 'Download Fonts', | |
path: 'src/common/assets/fonts', | |
filter: { | |
types: ['font'], | |
}, | |
}, | |
{ | |
name: 'Import tokens', | |
path: 'src/common/theme/variables.ts', | |
parsers: [ | |
{ | |
name: 'to-react-native', | |
options: { | |
assetsFolderPath: { | |
'vector': '../assets/vector', | |
'bitmap': '../assets/bitmap' | |
}, | |
}, | |
}, | |
], | |
}, | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment