0.0.8 • Published 7 years ago

@spine/pluggable v0.0.8

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
7 years ago

Spine Pluggable Utility

A pluggable utility valid for both client and server

How to use it

Make sure to import @spine/pluggable before bootstraping.

# index.ts
import config from './config';
import { bootstrap } from '@spine/bootstrap';

bootstrap()
  .catch(error => console.error(error.stack));
# config/index.ts
import {
  PluggableConfig,
} from '@spine/pluggable';
import {
  ConfigSource as BaseConfigSource,
  extendConfig,
} from '@spine/config';

export interface ConfigSource extends extends BaseConfigSource, PluggableConfig {}

export const {
  config,
  loadConfig,
} = extendConfig<ConfigSource>('MyConfig');

loadConfig({
  plugins: {
    'my-plugin-module': {
      enabled: true,
    },  
  },
});

export default config;
0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago