Only generate supported schemas
Summary: We're going to be incrementally adding these view configs and enforcing that they're up to date in react-native-sanity-test so we need to limit them to what's supported (which is just Slider for now) Reviewed By: TheSavior Differential Revision: D15321950 fbshipit-source-id: 22b014db1d9b58553237f571b438c82948f19634
This commit is contained in:
Родитель
ed61a3b5f9
Коммит
fb41a836be
|
@ -15,4 +15,14 @@ const generate = require('./generate-view-configs');
|
|||
|
||||
const [fileList] = process.argv.slice(2);
|
||||
|
||||
generate(fileList.split('\n'));
|
||||
const CURRENT_VIEW_CONFIG_SCHEMAS = ['SliderSchema.js'];
|
||||
|
||||
generate(
|
||||
fileList
|
||||
.split('\n')
|
||||
.filter(fileName =>
|
||||
CURRENT_VIEW_CONFIG_SCHEMAS.find(supportedFileName =>
|
||||
fileName.endsWith(supportedFileName),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче