stavalfi / lerna-starter

A Full-Featured Lerna Starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go to https://github.com/stavalfi/jstream to see the up 2 date version of this repo.

(easier to maintain this kind of lib when I actually using it)

A Full-Featured Lerna Starter

CircleCI

Main devDependencies
  • Lerna 3.6
  • yarn workspaces
  • Webpack 4
  • Babel 7.4
  • Typescript 3.4
  • Jest 24.8 (New!)
  • Eslint with Typescript
  • Prettier
Main depesndencies
  • React 16.8.6
  • React-hot-loader 4.8.6
Other Capabilities
  • Dynamic imports import()
  • React lazy (Dynamic imports)

Projects:

  • consumer (called "editor")
  • library1 (called "parser")

consumer project depends on library1 project.

Notes:

  1. library1 will produce valid *.d.ts files.
  2. consumer will react to any type change from library1.
  3. The compilation proccess is fast. Webstorm-typescript integration sucks. use your terminal to see real-time typescript/eslint/webpack-build errors - it will ne much faster.
  4. In each project, Karma uses the project's Webpack configuration so you get all the features you already have: typescript, absolute paths and more.

PRs are welcome!

About

A Full-Featured Lerna Starter


Languages

Language:JavaScript 97.2%Language:TypeScript 2.8%Language:HTML 0.0%Language:CSS 0.0%