Skip to content

stefaniepei/react-mobx-ts

Repository files navigation

react-mobx-ts

React V16 + ReactRouter V4 + Mobx + TypeScript + HMR

Gitlab地址:

https://github.com/stefaniepei/react-mobx-ts.git

特性

  • React V16 + ReactRouter V4 + Mobx + TypeScript + HMR + Webpack
  • sass模块化
  • 支持热更新
  • 支持动态加载组件
  • 支持tslint语法检查,提交检查
  • 支持i18n国际化

ssr版本:https://github.com/stefaniepei/react-mobx-ts-ssr

快速开始

安装

$ npm install
$ npm install -g ts-node
$ npm install -g typescript

客户端启动

$ npm run start

运行测试环境

$ npm run dev

运行QA环境

$ npm run qa

运行生产环境

$ npm run prod

文件内关闭lint语法检查

//tslint:disable-line
/* tslint:disable */ - Disable all rules for the rest of the file
/* tslint:enable */ - Enable all rules for the rest of the file
/* tslint:disable:rule1 rule2 rule3... */ - Disable the listed rules for the rest of the file
/* tslint:enable:rule1 rule2 rule3... */ - Enable the listed rules for the rest of the file
// tslint:disable-next-line - Disables all rules for the following line someCode();
// tslint:disable-line - Disables all rules for the current line
// tslint:disable-next-line:rule1 rule2 rule3... - Disables the listed rules for the next line
/* eslint-disable */
/* eslint-disable no-alert, no-console */
// eslint-disable-line

About

React V16 + ReactRouter V4 + Mobx + TS + HMR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published