21 lines
551 B
TypeScript
21 lines
551 B
TypeScript
import * as path from 'path'
|
|
|
|
import { substitute, resolveConfig } from '@plastichub/core'
|
|
import { pathInfo } from '@plastichub/osr-commons'
|
|
export * from './lib'
|
|
|
|
import { IOptions } from './types'
|
|
|
|
export const clone = (obj) => {
|
|
|
|
if (null == obj || "object" != typeof obj) return obj;
|
|
var copy = obj.constructor();
|
|
for (var attr in obj) {
|
|
if (obj.hasOwnProperty(attr)) copy[attr] = obj[attr];
|
|
}
|
|
return copy;
|
|
}
|
|
|
|
export const parse = (options: IOptions, argv: any): IOptions => {
|
|
return options;
|
|
} |