Skip to content

Commit dabe3f6

Browse files
committed
small change
1 parent 7846aac commit dabe3f6

File tree

144 files changed

+91667
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+91667
-2
lines changed

webpack1-anujs-antd1-lchris-ie8-spa/src/mixins/base.js renamed to __backup/.gitkeep

File renamed without changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"comments": false,
3+
"presets": [
4+
"es2015",
5+
"react",
6+
"stage-2",
7+
],
8+
"plugins": [
9+
"add-module-exports",
10+
[
11+
"import",
12+
{
13+
"libraryName": "antd",
14+
"style": true
15+
}
16+
]
17+
]
18+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# System Files
2+
.DS_Store
3+
4+
# Compiled Dest
5+
dist
6+
7+
# Server Config
8+
nginx.conf
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_style = space
11+
indent_size = 2
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
15+
[*.md]
16+
trim_trailing_whitespace = false
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": "airbnb",
4+
"rules": {
5+
"comma-dangle": [2, {
6+
"arrays": "always-multiline",
7+
"objects": "always-multiline",
8+
"imports": "always-multiline",
9+
"exports": "always-multiline",
10+
"functions": "ignore"
11+
}],
12+
"semi": 0,
13+
"import/extensions": 0,
14+
"import/no-extraneous-dependencies": 0,
15+
"import/no-unresolved": 0,
16+
"react/jsx-curly-spacing": [2, "always"],
17+
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
18+
"react/jsx-first-prop-new-line": [2, "multiline-multiprop"],
19+
"react/prefer-stateless-function": 0
20+
}
21+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# System Files
2+
.DS_Store
3+
4+
# Compiled Dest
5+
dist
6+
7+
# Node
8+
node_modules
9+
10+
# Log and Report
11+
*.log
12+
jest
13+
coverage
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
React IE8 Boilerplate
2+
======
3+
4+
## Quick Start
5+
6+
1. Install [`Docker`](https://www.docker.com/products/docker).
7+
2. Run `./bin/start setup` in your `Terminal`.
8+
9+
or just simply run
10+
11+
```shell
12+
npm install
13+
npm start
14+
```
15+
16+
under
17+
18+
- node 4.6.2
19+
- npm 2.15.11
20+
21+
## Development
22+
23+
```shell
24+
# Do [Quick Start](./#quick-start) first if not yet done.
25+
./bin/start develop
26+
```
27+
28+
## Deployment
29+
30+
### Publish Server
31+
32+
```shell
33+
# Do [Quick Start](./#quick-start) first if not yet done.
34+
./bin/start publish
35+
```
36+
37+
### Hot Reload Config or Static
38+
39+
```shell
40+
# Empty for now #
41+
```
42+
43+
## Tech Stack
44+
45+
- [x] [React](https://facebook.github.io/react/): A javascript library for building user interfaces.
46+
- [x] [Redux](http://redux.js.org/): Predictable state container for JavaScript apps.
47+
- [x] [immutable-js](http://facebook.github.io/immutable-js/): Immutable persistent data collections for Javascript which increase efficiency and simplicity.
48+
- [x] [Ant Design](https://ant.design/docs/react/introduce): An enterprise-class UI design language and React-based implementation.
49+
- [x] [Webpack](http://webpack.github.io/docs/): To bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset.
50+
- [x] [Babel](https://babeljs.io/): Babel is a compiler for writing next generation JavaScript.
51+
- [x] [LESS](http://lesscss.org/functions/): A dynamic stylesheet language.
52+
- [x] [ESLint](http://eslint.org/): The pluggable linting utility for JavaScript and JSX.
53+
- [x] [jest](https://facebook.github.io/jest/docs/api.html): A JavaScript testing framework, used by Facebook to test all JavaScript code including React applications.
54+
55+
## Browser Compatibility
56+
57+
- IE8 and above
58+
- Chrome
59+
- Firefox
60+
- Safari
61+
- Opera
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -e
3+
4+
ACTIONS="
5+
set -e;
6+
yarn install;
7+
npm run prod;
8+
"
9+
10+
docker run -it --rm -v $PWD:/app -w "/app" node-react:1.0.0 /bin/bash -c "$ACTIONS"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
set -e
3+
4+
ACTIONS="
5+
set -e;
6+
yarn install;
7+
npm run dev;
8+
"
9+
10+
docker run -it --rm \
11+
-v $PWD:/app \
12+
-w "/app" \
13+
-p 9753:9753 \
14+
node-react:1.0.0 /bin/bash -c "$ACTIONS"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -e
3+
4+
./bin/_build.sh
5+
6+
# Nginx
7+
docker run \
8+
--name nginx-react \
9+
-p 9753:80 \
10+
-v $PWD/config/nginx.conf:/etc/nginx/nginx.conf:ro \
11+
-v $PWD/dist:/usr/share/nginx/html:ro \
12+
-d \
13+
nginx:1.11.6

0 commit comments

Comments
 (0)