@vivaxy/babel-folder

0.1.1 • Public • Published

babel-folder

babel from source to build

USAGE

yarn add @vivaxy/babel-folder

import babelFolder from '@vivaxy/babel-folder';

const sourceFolder = path.join(__dirname, '..', 'src');
const buildFolder = path.join(__dirname, '..', 'build');
babelFolder(/* source folder absolute path */ sourceFolder, /* output folder absolute path */ buildFolder)
    .then(() => {
        // success
    })
    .catch((ex) => {
        // error
        console.error(ex);
    });

Dependents (0)

Package Sidebar

Install

npm i @vivaxy/babel-folder

Weekly Downloads

15

Version

0.1.1

License

MIT

Last publish

Collaborators

  • vivaxy