feat: export Utils

This commit is contained in:
Igor Randjelovic
2020-11-22 14:01:41 +01:00
committed by Nathan Walker
parent d46d59abe4
commit a1abd07c73
6 changed files with 79 additions and 16 deletions

View File

@ -0,0 +1,42 @@
import { getValue } from './config';
import { getAllDependencies, getDependencyPath } from './dependencies';
import { determineProjectFlavor } from './flavor';
import { error, info, warn } from './log';
import {
getAbsoluteDistPath,
getDistPath,
getEntryPath,
getPackageJson,
getPlatform,
getProjectRootPath,
} from './project';
// intentionally populated manually
// as this generates nicer typings
// that show all the utils inline
// rather than imports to types
export default {
config: {
getValue,
},
dependencies: {
getAllDependencies,
getDependencyPath,
},
flavor: {
determineProjectFlavor,
},
log: {
info,
warn,
error,
},
project: {
getProjectRootPath,
getAbsoluteDistPath,
getEntryPath,
getDistPath,
getPlatform,
getPackageJson,
},
};