1.3.0 • Published 7 years ago
@deuterium/util v1.3.0
@deuterium/util
A utility package that contains many useful funtions
Installation
yarn add @deuterium/util
Functions
Includes:
appRoot- Returns the absolute address of the root.checkPackage(package, required?)- Checks to see if you have a package in your package.jsoncheckFile(filename, required?)- Checks to see if there is a file in your rootremoveDir(dirName)- Removes a directorybabelifyDir(input, output, options)- Converts a directory into a a babeleified dir. Should have@babel/coreinstalled.initWebpack(config)- Creates a webpack that follows the configbuild(src, lib, babelOptions, webpackConfig)- Reproduces removeDir, babelifyDir, initWebpack all in one function.