0.1.0 • Published 3 years ago

@appworks/config v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

@appworks/config

import * as iceworksConfig from '@appworks/config';

iceworksConfig.get();

Config

interface IConfig {
  npmClient?: string;
  registry?: string;
  unpkgHost?: string;
  'fusion-token'?: string;
  'fusion-token-ali'?: string;
}

API

get

const config = iceworksConfig.get();
const npmClient = iceworksConfig.get('npmClient');

set

const config = iceworksConfig.set('npmClient', 'cnpm');

remove

const config = iceworksConfig.remove('npmClient');

addProject

TODO

removeProject

TODO

addMaterial

TODO

removeMaterial

TODO