Skip to content

Commit 4d5aaf1

Browse files
committed
框架完成
1 parent f7a5493 commit 4d5aaf1

File tree

393 files changed

+31335
-0
lines changed

Some content is hidden

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

393 files changed

+31335
-0
lines changed

.circleci/config.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:8.11.4
6+
steps:
7+
- checkout
8+
- run: npm install
9+
- run: npm run build
10+
test:
11+
docker:
12+
- image: circleci/node:8.11.4
13+
steps:
14+
- checkout
15+
- run: sh ./tests/fix_puppeteer.sh
16+
- run: npm install
17+
- run:
18+
command : npm run test:all
19+
no_output_timeout : 30m
20+
workflows:
21+
version: 2
22+
build_and_test:
23+
jobs:
24+
- build
25+
- test

.dockerignore

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
**/node_modules
5+
/src/utils/request-temp.js
6+
7+
# production
8+
/dist
9+
/.vscode
10+
11+
# misc
12+
.DS_Store
13+
npm-debug.log*
14+
yarn-error.log
15+
16+
/coverage
17+
.idea
18+
yarn.lock
19+
package-lock.json
20+
*bak
21+
.vscode
22+
23+
# visual studio code
24+
.history
25+
*.log
26+
27+
functions/mock
28+
.temp/**
29+
30+
# umi
31+
.umi
32+
.umi-production
33+
34+
# screenshot
35+
screenshot
36+
.firebase

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/functions/mock

.eslintrc.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
parser: 'babel-eslint',
3+
extends: ['airbnb', 'prettier', 'plugin:compat/recommended'],
4+
env: {
5+
browser: true,
6+
node: true,
7+
es6: true,
8+
mocha: true,
9+
jest: true,
10+
jasmine: true,
11+
},
12+
globals: {
13+
APP_TYPE: true,
14+
},
15+
rules: {
16+
'react/jsx-filename-extension': [1, { extensions: ['.js'] }],
17+
'react/jsx-wrap-multilines': 0,
18+
'react/prop-types': 0,
19+
'react/forbid-prop-types': 0,
20+
'react/jsx-one-expression-per-line': 0,
21+
'import/no-unresolved': [2, { ignore: ['^@/', '^umi/'] }],
22+
'import/no-extraneous-dependencies': [2, { optionalDependencies: true }],
23+
'jsx-a11y/no-noninteractive-element-interactions': 0,
24+
'jsx-a11y/click-events-have-key-events': 0,
25+
'jsx-a11y/no-static-element-interactions': 0,
26+
'jsx-a11y/anchor-is-valid': 0,
27+
'linebreak-style': 0,
28+
},
29+
settings: {
30+
polyfills: ['fetch', 'promises', 'url'],
31+
},
32+
};

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "antd-pro"
4+
}
5+
}

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/*.md
2+
**/*.svg
3+
**/*.ejs
4+
**/*.html
5+
package.json
6+
.umi
7+
.umi-production

.prettierrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"printWidth": 100,
5+
"overrides": [
6+
{
7+
"files": ".prettierrc",
8+
"options": { "parser": "json" }
9+
}
10+
]
11+
}

.stylelintrc.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
3+
"rules": {
4+
"declaration-empty-line-before": null,
5+
"no-descending-specificity": null,
6+
"selector-pseudo-class-no-unknown": null,
7+
"selector-pseudo-element-colon-notation": null
8+
}
9+
}

0 commit comments

Comments
 (0)