All Projects → myuanyuan → react-cli

myuanyuan / react-cli

Licence: other
基于 create-react-app 搭建的前端脚手架

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-cli

mobxSpa
企业级SPA项目,完整开发脚手架
Stars: ✭ 96 (+433.33%)
Mutual labels:  antd, react-router-v4, react16
react-antd-admin
react-antd-admin 是一个后台集成解决方案,它基于 react 和 antd; 内置了动态路由,标签页缓存,权限验证、切换功能
Stars: ✭ 42 (+133.33%)
Mutual labels:  react-redux, antd, react-router-v4
React Cloud Music
React 16.8打造精美音乐WebApp
Stars: ✭ 1,722 (+9466.67%)
Mutual labels:  react-redux, react-router-v4, better-scroll
Reactspa
combination of react teconology stack
Stars: ✭ 911 (+4961.11%)
Mutual labels:  react-redux, antd, react-router-v4
react-project-tpl
react project template
Stars: ✭ 32 (+77.78%)
Mutual labels:  antd, react-router-v4
react-candee
A react framework that encapsulates the redux.
Stars: ✭ 30 (+66.67%)
Mutual labels:  react-redux, react-router-v4
boss
React+express+sock.io+mongodb build a boss
Stars: ✭ 25 (+38.89%)
Mutual labels:  react-redux, react16
laggard
Automatically generate CSS fallbacks for legacy browsers, built on PostCSS
Stars: ✭ 23 (+27.78%)
Mutual labels:  postcss, postcss-plugins
iwish
I wish that too!
Stars: ✭ 19 (+5.56%)
Mutual labels:  react-redux, react-router-v4
hotlist
今日热榜(前端)
Stars: ✭ 51 (+183.33%)
Mutual labels:  antd, react-router-v4
postcss-gtk
Processes GTK+ CSS into browser CSS
Stars: ✭ 23 (+27.78%)
Mutual labels:  postcss, postcss-plugins
postcss-flexible
🔲 dpr/rem/url transformer for flexible
Stars: ✭ 19 (+5.56%)
Mutual labels:  postcss, rem
dva-typescript-antd-starter-kit
A admin dashboard application demo based on antd by typescript and dva
Stars: ✭ 61 (+238.89%)
Mutual labels:  postcss, antd
Helium.js
Automating Universal React Applications
Stars: ✭ 63 (+250%)
Mutual labels:  react-router-v4, react16
postcss-if-media
A PostCSS plugin to inline or nest media queries within CSS rules & properties.
Stars: ✭ 35 (+94.44%)
Mutual labels:  postcss, postcss-plugins
rgxp
Regular Expression Collection (ReactJS, Redux, React Router, Recompose, NodeJS, Express)
Stars: ✭ 62 (+244.44%)
Mutual labels:  react-redux, react-router-v4
promotion-web
基于React: v18.x.x/Webpack: v5.x.x/React Router v6.x.x/ Antd: v5..x.x/Fetch Api/ Typescript: v4.x.x 等最新版本进行构建...
Stars: ✭ 374 (+1977.78%)
Mutual labels:  react-redux, antd
postcss-rem
PostCSS plugin to use rem units with optional pixel fallback.
Stars: ✭ 14 (-22.22%)
Mutual labels:  postcss, rem
Stylefmt
stylefmt is a tool that automatically formats stylesheets.
Stars: ✭ 2,123 (+11694.44%)
Mutual labels:  postcss, postcss-plugins
mobileweb
webpack 5 + postcss 8 构建移动端网站架子
Stars: ✭ 23 (+27.78%)
Mutual labels:  postcss, rem

分支介绍

master

react16 + react-router-4 + redux + antd + scss 是比较基础的一个配置

在 config-overrides.js里面可以配置antd的主题

mfe

react16 + react-router-4 + redux + antd + scss + postcss + flex+ rem + vw + better-scroll

针对移动端h5适配,支持不同的适配方案

react-cli-map

react16 react16 + react-router-4 + redux+antd+scss+ react-router-4 + redux+antd+scss 引入mapBox-gl-js

针对地图项目

不同的分支有对应的README,请自行切换分支进行查看

以下针对master

git clone [email protected]:myuanyuan/react-cli.git
cd react-cli
npm install

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

Folder Structure

After creation, your project should look like this:

my-app/
  README.md
  node_modules/
  package.json
  config/
    env.js
    paths.js
    polyfills.js                // polyfills, you can add sth if you need
    presets.js                  // plugins, you can add sth if you need
    webpack.config.dev.js       // the webpackConfig for dev
    webpack.config.prod.js      // the webpackConfig for prod
    webpackDevServer.config.js
    jest/
      babelTransform.js
      cssTransform.js
      fileTransform.js

  public/
    index.html
    favicon.ico
    manifest.json
    api.js
  scripts/
    build.js
    eject.js
    init.js
    start.js
    test.js
    utils/
      createJestConfig.js

  src/                      //  your project
  config-overrides.js       // enjoy yourself wakaka, for example change the theme of antd
  .babelrc
    

todo List

原本想做ts版本的,不过后来想想毕竟前端用ts还是非常少的,而且确实没心情了,放弃了

  • 针对移动端进行各种方式适配
  • 针对地图类
  • 提升redux 引入 reselect
  • 文档写好一点
  • 我再想想...

如果需要更多配置请参考create-react-app-react-scripts

Below you will find some information on how to perform common tasks.
You can find the most recent version of this guide here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].