The content of each bundle can be viewed in the table below:
| namespace | package | bundle | ||||
|---|---|---|---|---|---|---|
webcardinal |
minimal |
wiki |
all |
|||
| webcardinal | core | ✔️ | ✔️ | ✔️ | ✔️ | |
| cardinal | barcode | ✔️ | ❌ | ❌ | ✔️ | |
| core | ❌ | ❌ | ❌ | ✔️ | ||
| essentials | ✔️ | ❌ | ✔️ | ✔️ | ||
| forms | ✔️ | ❌ | ❌ | ✔️ | ||
| wiki | ✔️ | ❌ | ✔️ | ✔️ | ||
- Clone this repository
git clone https://github.com/webcardinal/webcardinal-bundler- Install it
npm install- Bring your desired bundle
npm run bundle-<BUNDLE_NAME>
# example npm run bundle-minimal- Obtain the distribution
npm run build
The generated distribution is now in /webcardinal directory.
In the octopus.json of your workspace.
- Add WebCardinal as a dependency
{
"name": "webcardinal",
"src": "https://github.com/webcardinal/webcardinal-bundler",
"actions": [
{
"type": "smartClone",
"target": ".",
"collectLog": false
},
{
"type": "execute",
"cmd": "cd webcardinal && npm install && npm run bundle-<BUNDLE_NAME> && npm run build"
}
]
}- Add distribution in a new Dossier in
buildscript
{
"name": "webcardinal-wallet-build",
"actions": [
{
"type": "execute",
"cmd": "cd webcardinal && npm run build-dossier"
}
]
}