Node utility package that helps migrate Flex plugins to use Flex Declarative Component APIs
npm install @twilio/flex-plugin-core-utilsIt uses Facebook's JSCodeshift to parse through Flex plugin code and perform different operations like migration/validation.
TS
validate(filePaths: string[], rules: Rules, config: RunnerConfig)
`
#### Arguments
- filePaths - Paths to plugin files which needs to be validated
- rules - List of rules to check violations for in the given plugin files
- config - JSCodeshift runner configuration options---
$3
Migrates the given plugin files (TSX/JSX/TS/JS) to use the latest Flex Declarative Component API used to build on top of Flex.
#### Method
`TS
migrate(filePaths: string[], config: RunnerConfig)
`
#### Arguments
- filePaths - Paths to plugin files which needs to be migrated
- config` - JSCodeshift runner configuration options---