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)
- Lerna 3.6
- yarn workspaces
- Webpack 4
- Babel 7.4
- Typescript 3.4
- Jest 24.8 (New!)
- Eslint with Typescript
- Prettier
- React 16.8.6
- React-hot-loader 4.8.6
- Dynamic imports
import()
- React lazy (Dynamic imports)
Projects:
- consumer (called "editor")
- library1 (called "parser")
consumer
project depends on library1
project.
Notes:
library1
will produce valid*.d.ts
files.consumer
will react to any type change fromlibrary1
.- 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.
- 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!