Skip to content
Snippets Groups Projects
Patrizio Bekerle's avatar
82bfbf8e
History

Frontend Toolkit

Overview

This repository uses yarn 1.x workspaces to link multiple separate packages together and to hoist all shared dependencies to the top level node_modules.

In addition we use lerna for running commands for all contained packages (until we switch to yarn 2.x which should support this directly).

Setup

yarn install

cd packges/some-package and continue development with yarn run watch etc.

Other commands

  • yarn run test - Run test for all packages
  • yarn run clean - Removes all node_modules directories.

Publishing packages to npmjs.com

There is an automatic publishing process initiated for each package if code is pushed to the master branch, if the package isn't set to private in its package.json and the version number in its package.json is higher than the version number on npmjs.com.