0.55.8 • Published 1 month ago

@startupjs/babel-plugin-startupjs-plugins v0.55.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@startupjs/babel-plugin-startupjs-plugins

Gather startupjs modules and plugins together with their options to be feed into registry.

Example

import plugins from 'startupjs/plugins'

↓ ↓ ↓ ↓ ↓ ↓

import module1 from '/path/to/module-1'
import plugin1Isomorphic from '/path/to/startupjs-plugin-1/isomorphic'
import plugin1Server from '/path/to/startupjs-plugin-1/server'
import plugin1ServerConfig from '/startupjs.config/startupjs-plugin-1/server'
const plugins = [
  {
    type: 'module',
    name: 'module-1'
  },
  {
    type: 'plugin',
    name: 'startupjs-plugin-1',
    for: 'startupjs',
    inits: [
      {
        env: 'isomorphic',
        init: plugin1Isomorphic,
        config: {}
      },
      {
        env: 'server',
        init: plugin1Server,
        config: plugin1ServerConfig
      },
    ]
  }
]

Licence

MIT