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

// 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


Children
  1. Package_plugin

Backlinks