UNPKG

class-o-mat

Version:

ALPHA VERSION ONLY: class-o-mats will help to create getter-setter functionality with validations that can be attached to a container class for easier coding. Some basic validations are included. class-o-mats also has the ability to store params as bloc

16 lines (12 loc) 433 B
import path from 'path'; import transform from 'babel-transform-dir'; import rimraf from 'rimraf'; const cleanLib =()=>new Promise((resolve, reject) => { rimraf('./lib', { force: true }, (err, result)=>err ? reject(err) : resolve(result)) }); async function build() { await cleanLib(); console.log('Cleaned old lib!'); transform('./src', './lib').then(()=>console.log('new libs built!'), (e)=>console.log(e)); } build();