├── src ├── media │ ├── images │ │ └── title.png │ └── css │ │ ├── test.less │ │ └── video4.less ├── static │ ├── js │ │ ├── jquery.jplayer.swf │ │ ├── html5media.js │ │ └── jquery.jplayer.min.js │ ├── image │ │ ├── jplayer.blue.monday.jpg │ │ ├── jplayer.blue.monday.seeking.gif │ │ └── jplayer.blue.monday.video.play.png │ ├── css │ │ └── jplayer.blue.monday.css │ └── iframe │ │ └── player.html ├── store │ ├── index.js │ └── models.js ├── components │ ├── Message.js │ ├── App.js │ ├── Video4.js │ ├── Count.jsx │ ├── Root.js │ ├── Video2.js │ ├── Video.js │ ├── Echarts2.js │ ├── Echarts.js │ ├── Inbox.js │ └── Video3.js ├── index.ejs ├── routes │ └── index.js └── main.js ├── .stylelintrc ├── .babelrc ├── test ├── spec.js └── .eslintrc ├── .gitignore ├── README.md ├── .travis.yml ├── tools ├── clean.js ├── build.js ├── copy.js ├── bundle.js ├── task.js └── start.js ├── .gitattributes ├── .eslintrc ├── LICENSE.txt ├── postcss.config.js ├── package.json └── webpack.config.js /src/media/images/title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/localSummer/react-boilerplate-ie8/HEAD/src/media/images/title.png -------------------------------------------------------------------------------- /.stylelintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "stylelint-config-standard", 3 | "rules": { 4 | "string-quotes": "single" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/static/js/jquery.jplayer.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/localSummer/react-boilerplate-ie8/HEAD/src/static/js/jquery.jplayer.swf -------------------------------------------------------------------------------- /src/static/image/jplayer.blue.monday.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/localSummer/react-boilerplate-ie8/HEAD/src/static/image/jplayer.blue.monday.jpg -------------------------------------------------------------------------------- /src/media/css/test.less: -------------------------------------------------------------------------------- 1 | button { 2 | span { 3 | color: red; 4 | border: 1px solid #000; 5 | border-radius: 8px; 6 | } 7 | } -------------------------------------------------------------------------------- /src/static/image/jplayer.blue.monday.seeking.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/localSummer/react-boilerplate-ie8/HEAD/src/static/image/jplayer.blue.monday.seeking.gif -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "react", 4 | "es2015-loose", 5 | "stage-1" 6 | ], 7 | "plugins": [ 8 | "transform-runtime" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /src/static/image/jplayer.blue.monday.video.play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/localSummer/react-boilerplate-ie8/HEAD/src/static/image/jplayer.blue.monday.video.play.png -------------------------------------------------------------------------------- /src/store/index.js: -------------------------------------------------------------------------------- 1 | import { init } from '@rematch/core' 2 | import models from './models' 3 | 4 | const store = init({ 5 | models, 6 | }) 7 | 8 | export default store -------------------------------------------------------------------------------- /test/spec.js: -------------------------------------------------------------------------------- 1 | import { expect } from 'chai' 2 | 3 | describe('test suite', () => { 4 | 5 | it('test', () => { 6 | expect(true).to.be.equal.true 7 | }) 8 | 9 | }) 10 | -------------------------------------------------------------------------------- /test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "mocha": true 4 | }, 5 | "rules": { 6 | "no-console": 0, 7 | "no-unused-expressions": 0, 8 | "padded-blocks": 0 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Include your project-specific ignores in this file 2 | # Read about how to use .gitignore: https://help.github.com/articles/ignoring-files 3 | 4 | build/ 5 | node_modules/ 6 | npm-debug.log 7 | debug.log 8 | *.log 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-boilerplate-ie8 2 | react@0.14.9+react-router@2.3.0+rematch+axios+webpack+antd@1.11.6+echarts@4.1 3 | 4 | - cd react-boilerplate-ie8 5 | - npm i 或 yarn 6 | - npm run start 在IE8中无法调试,Chrome可以 7 | - npm run build 可在IE8以及Chrome中正常运行 8 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '6' 4 | env: 5 | - CXX=g++-4.8 6 | addons: 7 | apt: 8 | sources: 9 | - ubuntu-toolchain-r-test 10 | packages: 11 | - g++-4.8 12 | script: 13 | - npm run lint 14 | - npm run test 15 | -------------------------------------------------------------------------------- /src/components/Message.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | class Message extends React.Component { 4 | render() { 5 | return ( 6 |

Message {this.props.params.id}

7 | ) 8 | } 9 | } 10 | 11 | export default Message; -------------------------------------------------------------------------------- /src/components/App.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | class App extends React.Component { 4 | render() { 5 | return ( 6 |
7 | App 8 | {this.props.children} 9 |
10 | ) 11 | } 12 | } 13 | 14 | export default App -------------------------------------------------------------------------------- /src/components/Video4.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | class Video4 extends React.Component { 4 | render() { 5 | return ( 6 |