Variables
Const options
options: object = scriptName('vue2-migration-helper').option('source', {alias: ['s'],describe: 'Source directory containing Vue single file components.',demandOption: true,type: 'string'}).option('target', {alias: ['t'],describe: 'Target directory to save transformed components.',demandOption: false,type: 'string'}).help().example('vue2-migration-helper --s="source" --t="target"', '').argv
Const vue2Hooks
vue2Hooks: string[] = ['beforeCreate','created','beforeMount','mounted','beforeUpdated','updated','beforeDestroy','destroyed']
Const vue2HooksDeprecated
vue2HooksDeprecated: string[] = ['beforeCreate', 'created']
Const vue2Imports
vue2Imports: string[] = ['watch', 'computed']