Predefined organic stem cell implementation
Uses under-the-hood:
organic-plasma@4.0.0
organic-nucleus@3.0.0
organic-dna-loader@1.8.0
Autoloads from dna folder via organic-dna-loader@1
const path = require('path')
const Cell = require('organic-stem-cell')
let cellInstance = new Cell({
dnaSourcePaths: [path.join(process.cwd(), 'dna')],
})
cellInstance.start()
const Cell = require('organic-stem-cell')
let cellInstance = new Cell({
dna: {
build: {
...
}
},
})
cellInstance.start()
const Cell = require('organic-stem-cell')
const dnaChunk = {
build: {
organelle1: {
source: require('my-organelle1')
}
}
}
let cellInstance = new Cell({
dna: dnaChunk,
})
cellInstance.start()
{
dnaSourcePaths: undefined, // Array[String]
dna: undefined, // Object
buildBranch: 'build',
cellRoot: process.cwd(),
defaultKillChemical: 'kill',
supressListenOnProcessEvents: false,
cellMode: process.env.CELL_MODE,
beforeResolve: function (dna) { return dna },
afterResolve: function (dna) { return dna },
plasma: new Plasma(),
nucleus: new Nucleus(),
dnaLoader: require('organic-dna-loader')
}
{
buildBranch: 'build',
cellRoot: process.cwd(),
defaultKillChemical: 'kill',
cellMode: process.env.CELL_MODE,
plasma: new Plasma(),
nucleus: new Nucleus()
}