mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
61 lines
1.1 KiB
TypeScript
61 lines
1.1 KiB
TypeScript
import { merge } from 'webpack-merge';
|
|
|
|
import { addCopyRule, removeCopyRule } from './copyRules';
|
|
import { determineProjectFlavor } from './flavor';
|
|
import { error, info, warn } from './log';
|
|
import { getValue } from './config';
|
|
import {
|
|
getAllDependencies,
|
|
hasDependency,
|
|
getDependencyPath,
|
|
} from './dependencies';
|
|
import {
|
|
getAbsoluteDistPath,
|
|
getDistPath,
|
|
getEntryPath,
|
|
getEntryDirPath,
|
|
getPackageJson,
|
|
getProjectRootPath,
|
|
} from './project';
|
|
import { getPlatform, getPlatformName, addPlatform } from '../platforms';
|
|
|
|
// intentionally populated manually
|
|
// as this generates nicer typings
|
|
// that show all the utils inline
|
|
// rather than imports to types
|
|
// todo: maybe use api-extractor instead
|
|
export default {
|
|
merge,
|
|
addCopyRule,
|
|
removeCopyRule,
|
|
config: {
|
|
getValue,
|
|
},
|
|
dependencies: {
|
|
getAllDependencies,
|
|
hasDependency,
|
|
getDependencyPath,
|
|
},
|
|
flavor: {
|
|
determineProjectFlavor,
|
|
},
|
|
log: {
|
|
error,
|
|
info,
|
|
warn,
|
|
},
|
|
project: {
|
|
getProjectRootPath,
|
|
getAbsoluteDistPath,
|
|
getEntryPath,
|
|
getEntryDirPath,
|
|
getDistPath,
|
|
getPackageJson,
|
|
},
|
|
platform: {
|
|
getPlatform,
|
|
getPlatformName,
|
|
addPlatform,
|
|
},
|
|
};
|