0.0.8 • Published 8 years ago

@spine/pluggable v0.0.8

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
8 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

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago