COMMONJS example using browserify

This is a small example of how you can let the componentManager require components using browserify (CommonJS).

To play around with example first run npm install and then install browserify and watchify globaly with npm install -g browserify and npm install -g watchify, you may have to use sudo to install them globaly.

To build bundle run:

node bundler.js > bundle.js

To build vendor bundle run:

node bundler.js vendor > bundle.vendors.js

to build and watch run:

watchify main.js -o 'node bundler.js > bundle.js' -v

Take a look at components.js to see component the setup for this example.

conditions:0components:1instances:1

var componentSettings = {
  components: [{
    id: 'menu-component',
    src: 'components/menu-component/',
  }],
  targets: {
    main: [
      {
        id: 'menu-instance',
        componentId: 'menu-component',
        urlPattern: 'add-components'
      }
    ]
  }
}

module.exports = componentSettings;
active filter
info
controls.component-area--main