-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc9f80b
commit 9adfc18
Showing
528 changed files
with
257,019 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"plugins": [ | ||
"react" | ||
], | ||
"env": { | ||
"es6": true, | ||
"browser": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"globals": { | ||
"require": true, | ||
"React": true, | ||
"Babel": true, | ||
"console": true, | ||
"ace": true, | ||
"ReactBootstrap": true | ||
}, | ||
"extends": ["eslint:recommended", "plugin:react/recommended"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# ignore npm modules | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Common FE 模板 - 基于React的项目的一个starter boilerplate. | ||
|
||
|
||
该模板包含: | ||
> JavaScript 类库 - [React](https://facebook.github.io/react/); | ||
> UI 类库 - [React Bootstrap](https://react-bootstrap.github.io/); | ||
> ES6 - [ES6+](http://babeljs.io/docs/learn-es2015/); | ||
> Javascript 编译器 - [Babel](http://babeljs.io/); | ||
> Application Architecture - [Redux](http://redux.js.org/); | ||
> Module Bundler - [webpack](http://webpack.github.io/docs/tutorials/getting-started/); | ||
> Javascript Test Runner - [Karma](https://karma-runner.github.io/0.13/index.html); | ||
> Test Framework - [Mocha](http://mochajs.org/); | ||
> Tests Assertion - [Chai](http://chaijs.com/); | ||
> Test spies/stubs/mocks - [Sinon](http://sinonjs.org/). | ||
### 特性 | ||
|
||
### 开始入门 | ||
|
||
* 按照 [开始入门手册](./getting-started-zh.md) 来下载和运行项目 | ||
|
||
### Directory Layout | ||
|
||
``` | ||
. | ||
├── /build/ # webpack打包后的文件 | ||
├── /node_modules/ # node类库 | ||
├── /src/ # 源代码 | ||
│ ├── /actions/ # Redux Actions | ||
│ ├── /components/ # React展示(Presentantional)组件 | ||
│ ├── /containers/ # React容器(Container)组件 | ||
│ ├── /constants/ # 常量 (action 类型等) | ||
│ ├── /core/ # Core framework and utility functions | ||
│ ├── /public/ # 静态资源文件 | ||
│ ├── /reducers/ # Redux reducers | ||
│ ├── /index.js # 客服端startup脚本 | ||
│ └── /server.js # 服务端startup脚本 | ||
├── /test/ # 测试代码 | ||
└── /karma.conf.js # Karma test runner配置 | ||
└── /webpack.config.js # webpack打包配置 | ||
└── package.json # 第三方类库及Node脚本 | ||
``` | ||
|
||
### 相关项目 | ||
|
||
* [React Bootstrap组件展示](http://192.168.2.12/euler/common-fe/tree/develop/examples/react-bootstrap-components-es6) — 该项目用来展示React Bootstrap组件,通过该项目的学习,用户可以了解现有的React Bootstrap的基本组件,由于该项目本身也是使用React+Redux来写的,所以通过学习项目本身的代码,用户也可以快速了解React+Redux的基本思想。 | ||
* [Todos sample](http://192.168.2.12/euler/common-fe/tree/develop/examples/todos) — Redux官方Todos例子,了解React + Redux的基本思想。 | ||
|
||
### 学习更多 | ||
|
||
* [Getting Started with React.js](http://facebook.github.io/react/) | ||
* [Redux Intro](http://redux.js.org/) | ||
* [Getting Started with React Bootstarp](https://react-bootstrap.github.io/getting-started.html) | ||
* [Getting Started with Webpack](https://webpack.github.io/docs/tutorials/getting-started/) | ||
* [Learn ES6](https://babeljs.io/docs/learn-es6/) | ||
* [ES6 Features](https://github.com/lukehoban/es6features#readme) | ||
* [React How to by Peter Hunt](https://github.com/petehunt/react-howto) | ||
* [Webpack How to by Peter Hunt](https://github.com/petehunt/webpack-howto) | ||
* [React.js Questions on StackOverflow](http://stackoverflow.com/questions/tagged/reactjs) | ||
* [The Future of React](https://github.com/reactjs/react-future) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Common FE Template - A starter boilerplate for React based web app project. | ||
|
||
|
||
JavaScript library boilerplate, a web project template using: | ||
> JavaScript Library - [React](https://facebook.github.io/react/); | ||
> UI Library - [React Bootstrap](https://react-bootstrap.github.io/); | ||
> Future ECMASCript Standards - [ES6+](http://babeljs.io/docs/learn-es2015/); | ||
> Javascript Compiler - [Babel](http://babeljs.io/); | ||
> Application Architecture - [Redux](http://redux.js.org/); | ||
> Module Bundler - [webpack](http://webpack.github.io/docs/tutorials/getting-started/); | ||
> Javascript Test Runner - [Karma](https://karma-runner.github.io/0.13/index.html); | ||
> Test Framework - [Mocha](http://mochajs.org/); | ||
> Tests Assertion - [Chai](http://chaijs.com/); | ||
> Test spies/stubs/mocks - [Sinon](http://sinonjs.org/). | ||
### Features | ||
|
||
### Getting Started | ||
|
||
* Follow the [getting started guide](./getting-started.md) to download and run the project | ||
|
||
### Directory Layout | ||
|
||
``` | ||
. | ||
├── /build/ # The folder for compiled output | ||
├── /node_modules/ # 3rd-party libraries and utilities | ||
├── /src/ # The source code of the application | ||
│ ├── /actions/ # Action creators that allow to trigger a dispatch to stores | ||
│ ├── /components/ # React components | ||
│ ├── /containers/ # React containers | ||
│ ├── /constants/ # Constants (action types etc.) | ||
│ ├── /core/ # Core framework and utility functions | ||
│ ├── /public/ # Static files which are copied into the /build/public folder | ||
│ ├── /reducers/ # Redux reducers | ||
│ ├── /index.js # Client-side startup script | ||
│ └── /server.js # Server-side startup script | ||
├── /test/ # test codes | ||
└── /karma.conf.js # Karma test runner configuration | ||
└── /webpack.config.js # configurations for client-side and server-side bundles | ||
└── package.json # The list of 3rd party libraries and utilities | ||
``` | ||
|
||
### Related Projects | ||
|
||
* [React components sample](http://192.168.2.12/euler/common-fe/tree/develop/examples/react-bootstrap-components-es6) — A sample used to show react bootstrap components, it's build upon react + redux + react bootstrap | ||
* [Todos sample](http://192.168.2.12/euler/common-fe/tree/develop/examples/todos) — A redux sample from official redux examples. | ||
|
||
### Learn More | ||
|
||
* [Getting Started with React.js](http://facebook.github.io/react/) | ||
* [Redux Intro](http://redux.js.org/) | ||
* [Getting Started with React Bootstarp](https://react-bootstrap.github.io/getting-started.html) | ||
* [Getting Started with Webpack](https://webpack.github.io/docs/tutorials/getting-started/) | ||
* [Learn ES6](https://babeljs.io/docs/learn-es6/) | ||
* [ES6 Features](https://github.com/lukehoban/es6features#readme) | ||
* [React How to by Peter Hunt](https://github.com/petehunt/react-howto) | ||
* [Webpack How to by Peter Hunt](https://github.com/petehunt/webpack-howto) | ||
* [React.js Questions on StackOverflow](http://stackoverflow.com/questions/tagged/reactjs) | ||
* [The Future of React](https://github.com/reactjs/react-future) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "jquery", | ||
"main": "dist/jquery.js", | ||
"license": "MIT", | ||
"ignore": [ | ||
"package.json" | ||
], | ||
"keywords": [ | ||
"jquery", | ||
"javascript", | ||
"browser", | ||
"library" | ||
], | ||
"homepage": "https://github.com/jquery/jquery-dist", | ||
"version": "2.2.2", | ||
"_release": "2.2.2", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "2.2.2", | ||
"commit": "086d381cd2f3b4b8b0af85ecb2c9593a61e5b4bd" | ||
}, | ||
"_source": "git://github.com/jquery/jquery-dist.git", | ||
"_target": "^2.2.2", | ||
"_originalSource": "jquery", | ||
"_direct": true | ||
} |
Oops, something went wrong.