Build

Steps

Regular build process inside the monorepo is described in Dendron Plugin Quickstart

Webpack

You can build Dendron with Webpack

Options

You can pass environmental variables to set the following options while building

  • SKIP_SENTRY: don't upload source maps to sentry
  • USE_IN_MEMORY_REGISTRY: this uses local in memory npm registry to do builds
  • FAST: instead of building everything from scratch, assumes that all sub packages are already built
    • skip type check
    • don't restore package.json
  • LOG_LEVEL: set to debug|info|error, controls verbosity of log output

Steps

env USE_IN_MEMORY_REGISTRY=1 LOG_LEVEL=info FAST=1 yarn build:patch:local

Fast Re-build

This is if you've already build the plugin locally and need to re-built it (you ran a yarn build:{version}:local). The regular Build will remove all node_modules across all packges. The fast rebuild will only remove node_modules from packages where it needs to be removed.

$DENDRON_WORKSPACE/bootstrap/scripts/fastRebuild.sh

Cleanup

echo "removing all deps..."
./bootstrap/scripts/cleanup.sh
echo "re-installing..."
yarn setup

Layout

Layout of build folder

- dist/ # webpack generated output
    - static/
        - js/
            - ${view}.bundle.js     # dendron-plugin-views generated

Children
  1. Internal

Backlinks