Build
Summary
Building Dendron for publication
Lifecycle
build {
// set npm endpoint
prepPublishLocal || prepPublishRemote
runTypeCheck
bumpVersion
// publish all packages
publishVersion
syncAssets
prepPluginPkg
installPluginDependencies
compilePlugin
packagePluginDependencies
}
bumpVersion
lerna version ${version} --no-git-tag-version
$(`git add .`);
$(`git commit -m "chore: publish ${version}"`);
publishVersion
lerna publish from-package --ignore-scripts --registry ${url}
prepPluginPkg
- update
package.json
metadata forplugin-core
// change name to target name (eg. nightly vs regular release)
// update display name
// set a common repository, version and icon
// remove test dependencies
prepPluginPkg {
updatePkgMeta
removeDevDepsFromPkgJson
}
installPluginDependencies
installPluginDependencies {
rm "$root/package.json"
yarn install
}
compilePlugin
yarn build:prod {
yarn webpack:prod && ./scripts/varSub.sh
}
packagePluginDependencies
vsce package --yarn
Past Tasks
Related
Children
Backlinks