项目作者: matheusmr13

项目描述 :
✨ Create a microfrontend architecture as simple as CRA.
高级语言: TypeScript
项目地址: git://github.com/matheusmr13/create-micro-react-app.git
创建时间: 2019-10-18T17:34:23Z
项目社区:https://github.com/matheusmr13/create-micro-react-app

开源协议:MIT License

下载


:sparkles: Create Micro React App Build Status Build Status Quality Gate Status

Most complete approach to microfrontend architecture:

If you want to know more about microfrontends and why you should (or shouldn’t) use it, check this article.

:zap: Quick Overview

  1. npx @cmra/cli create my-app
  2. cd my-app
  3. npm start

:rocket: Demo

Microfrontend Store: Demo

:floppy_disk: Installing

To install our cli you need Node >= 13.

npm

  1. npm i -g @cmra/cli

yarn

  1. yarn global add @cmra/cli

:computer: Using it

After installing it, you’ll have cmra command available:

  1. cmra create my-app

It will generate a folder structure like:

  1. my-app
  2. ├── package.json
  3. ├── packages
  4. | ├── microfrontend # create-react-app structure folder
  5. | | ├── README.md
  6. | | ├── package.json
  7. | | ├── public
  8. | | | ├── favicon.ico
  9. | | | ├── index.html
  10. | | | ├── logo192.png
  11. | | | ├── logo512.png
  12. | | | ├── manifest.json
  13. | | | └── robots.txt
  14. | | ├── src
  15. | | | ├── App.css
  16. | | | ├── App.js
  17. | | | ├── App.test.js
  18. | | | ├── index.css
  19. | | | ├── index.js
  20. | | | ├── logo.svg
  21. | | | ├── serviceWorker.js
  22. | | | └── setupTests.js
  23. | | └── yarn.lock
  24. | └── webapp # create-react-app structure folder
  25. | ├── README.md
  26. | ├── package.json
  27. | ├── public
  28. | | ├── favicon.ico
  29. | | ├── index.html
  30. | | ├── logo192.png
  31. | | ├── logo512.png
  32. | | ├── manifest.json
  33. | | ├── microfrontends
  34. | | | └── meta.json
  35. | | └── robots.txt
  36. | ├── src
  37. | | ├── App.css
  38. | | ├── App.js
  39. | | ├── App.test.js
  40. | | ├── index.css
  41. | | ├── index.js
  42. | | ├── logo.svg
  43. | | ├── serviceWorker.js
  44. | | └── setupTests.js
  45. | └── yarn.lock
  46. └── yarn.lock

:hammer: Development

First of all, check our contributing guide.
If you have any questions just open an issue!

:books: Docs

https://matheusmr13.github.io/create-micro-react-app/docs/


Icon made by Freepik from www.flaticon.com