Giter Club home page Giter Club logo

michielbouw / react-typescript-yarn-lerna-monorepo-eslint-prettier-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
56.0 4.0 13.0 1.04 MB

Starting point for a Typescript, React (v16.8.0-alpha.0), Yarn & Lerna monorepo project with full setup for ESLint and Prettier.

License: MIT License

TypeScript 73.98% HTML 16.54% CSS 9.48%
react typescript typescript-boilerplate react-boilerplate eslint eslint-config eslint-config-prettier prettier prettier-eslint create-react-app

react-typescript-yarn-lerna-monorepo-eslint-prettier-boilerplate's Issues

Unable to install packages via Yarn

When running Yarn install error message
"Workspaces can only be enabled in private projects"

Resolved via setting private to true in main package.json

@michielbouw - thanks for all your work on this - exactly what I was looking for - I will be running through it over the next few days so if I get any other issues will let you know.

Simplify root package.json scripts to use globs

The following scripts can be simplified from

"start:www": "lerna run start --scope=\"@web/shared\" --scope=\"@web/utils\" --scope=\"@web/www\" --parallel"

to

"start:www": "lerna run start --scope=@web/{shared,utils,www} --parallel"

One question in relation to this as they run all packages in scope are they required?

Unable to update to react-scripts >3.4.1

Right now unless you use the fix mentioned here: facebook/create-react-app#8685 (comment) you are unable to use lerna with this project if you update to react-script version 3.4.1 or later.

To solve it for --parallel --stream start commands use CI=true env. variable. This is not good for the UI of the output, but it will still work.

Let's hope they will update this later on.

[Q] Missing eslint-config-react-app?

Just a quick question. I noticed in your monorepo .eslintrc file

"extends": [
    "react-app"
  ],

but I don't see eslint-config-react-app in your monorepo package.json file. Monorepo .eslintrc file is not CRA project so I think you need this dependency there?

[Q] How to deploy?

I find you just do the build task,
but how to deploy the project?
for example: deploying a node server

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.