import { cleanDist } from '../../../utils/clean' ; import { tsPlusBabel } from '../../../utils/ts-plus-babel' ; import { spinner , logInfo } from '../../../utils/log' ; import { pri } from '../../../node' ; export const componentDev = async ( watchOnly = false ) => { if ( ! watchOnly ) { await cleanDist ( ) ; } await spinner ( 'Analyse project' , async ( ) => { await pri . project . ensureProjectFiles ( ) ; await pri . project . checkProjectFiles ( ) ; } ) ; if ( ! watchOnly ) { await spinner ( 'Init build' , async ( ) => { await tsPlusBabel ( false , true ) ; } ) ; } logInfo ( 'Watching files..' ) ; await tsPlusBabel ( true , true ) ; } ;