ern create-container
--baseComposite <compositePath>
--descriptor/-d <descriptor>
--devJsBundle
--fromGitBranches
--miniapps/-m <miniapps>
--platform/-p <android|ios>
--outDir/--out <directory>
~/.ern/containergen/out
.--ignoreRnpmAssets
--extra/-e
androidConfig
and/or iosConfig
attributes--extra '{"androidConfig": {"androidGradlePlugin": "3.2.1","buildToolsVersion": "28.0.3","compileSdkVersion": "28","gradleDistributionVersion": "4.6","minSdkVersion": "19","sourceCompatibility": "VERSION_1_8","supportLibraryVersion": "28.0.0","targetCompatibility": "VERSION_1_8","targetSdkVersion": "28"}}'
Find more information on android configuration​--extra <path>/container-config.json
--extra cauldron://config/container/container-config.json
preBundle
hook, it will be executed after the composite generation, prior to running metro bundler, from the directory containing the generated composite project. --extra '{"containerGenerator": {"hooks": {"preBundle": "/workspace/ern/picking-miniapp/script/pre-script.sh"}}}'
--extra <path>/container-config.json
--extra cauldron://config/config.json
postBundle
hook, it will be executed just after metro bundler has been run, from the directory containing the bundle.--extra '{"containerGenerator": {"hooks": {"postBundle": "/workspace/ern/picking-miniapp/script/post-script.sh"}}}'
--extra <path>/container-config.json
--extra cauldron://config/config.json
--skipInstall
yarn install
and pod install
after generating the container.--sourceMapOutput
--resetCache
ern create-container
command can be used to create a container locally, for development, debugging and experimentation purposes.Related commands
section below for specific commands)