react-scaffolding-ts

react脚手架,支持typescript

Downloads
6
Stars
0
Committers
1

React Scaffolding

reacttypescript

  • react
  • react-router(v4)
  • react-loadable -
  • es6
  • typescript
  • css/less/sass
  • webpack(v4)

  • antd -
  • lodash -
  • moment -

  • babel7
  • eslint
  • stylelint
  • prettier
  • commit messageangular
  • huskycommit msg

node v11.14.0+
npm v6.7.0+

npm install create-react-ts-cli -g
create-react-ts init
cd [projectName]
npm install

create-react

create-react-ts init 
create-react-ts -v 

.
 config  --------------------- webpack
 dist  --------------------- 
 dll  --------------------- dll
 public  --------------------- html
 src  ------------------------------ 
     api  ------------------- 
     constants  -------------------------- 
     components  ------------------- 
     images  ----------------------- 
     pages  ------------------------ 
       home  --------------------- home
         Home.tsx  ------------- 
         Home.scss  -------- 
         components  -------- 
         App.tsx  -------------------------- 
         index.tsx  -------------------------- 
        index.scss  -------------------------- 
     styles  -------------------------- css
     utils  -------------------------- 
 test  ------------------------------ 
 types  ------------------------------ ts
 .babelrc  ------------------------------ babel
 .browserslistrc  ------------------------------ babel
 .commitlintrc.js  ------------------------------ commit msg
 .editorconfig   ------------------------------ 
 .eslintignore  ------------------------------ eslint 
 .eslintrc.js  ------------------------------ eslint 
 .gitignore  ------------------------------ git commit
 .postcssrc.js  ------------------------------ postcss
 .prettierignore  ------------------------------ prettier
 .prettierrc.js  ------------------------------ prettier
 .stylelintignore  ------------------------------ style lint
 .stylelintrc.js  ------------------------------ style lint
 jest.config.js  ------------------------------ jest
 package-lock.json  --------------------- package lock 
 package.json  --------------------- 
 README.md  ------------------------ 
 tsconfig.json  ------------------------ ts

todo

  • CI/CD
  • git

  • vue/ng
Package Rankings
Top 16.45% on Npmjs.org
Related Projects