UNPKG

babil

Version:

Babil transpiles all your dependencies without needing grunt or gulp.

12 lines (9 loc) 253 B
'use strict'; const babil = require( '..' ); const join = require( 'path' ).join; babil.initialize( { rootPath: join( __dirname, '../examples/sample-project' ) } ).then( babil.transpile, () => setTimeout( () => process.exit( 1 ), 500 ) );