Skip to content

Commit 7c1a14b

Browse files
committed
chore: opensource v1-doc
1 parent 28325c0 commit 7c1a14b

File tree

822 files changed

+49777
-11
lines changed

Some content is hidden

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

822 files changed

+49777
-11
lines changed

.github/workflows/codecov.yml

-8
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,6 @@ jobs:
4444
with:
4545
token: ${{ secrets.ACCESS_TOKEN }}
4646

47-
- name: Checkout submodules
48-
uses: actions/checkout@v2
49-
with:
50-
repository: tangjinzhou/antdv-demo
51-
token: ${{ secrets.ACCESS_TOKEN }}
52-
path: antdv-demo
53-
submodules: true
54-
5547
- name: restore cache from package-lock.json
5648
uses: actions/cache@v1
5749
with:

.gitmodules

-3
This file was deleted.

antdv-demo/.babelrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"env": {
3+
"test": {
4+
"presets": [["env", { "targets": { "node": "current" } }]],
5+
"plugins": [
6+
"transform-vue-jsx",
7+
"transform-object-assign",
8+
"transform-object-rest-spread",
9+
"transform-class-properties",
10+
"transform-runtime"
11+
]
12+
}
13+
}
14+
}

antdv-demo/.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 🎨 editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_style = space
9+
indent_size = 2
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true

antdv-demo/.eslintignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/
2+
**/*.spec.*
3+
**/style/
4+
*.html
5+
/components/test/*
6+
_site/
7+
dist/
8+
package.json

antdv-demo/.eslintrc

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"browser": true,
5+
"node": true,
6+
"jasmine": true,
7+
"jest": true,
8+
"es6": true
9+
},
10+
"parserOptions": {
11+
"parser": "babel-eslint"
12+
},
13+
"extends": ["plugin:vue/recommended", "prettier"],
14+
"plugins": ["markdown"],
15+
"overrides": [
16+
{
17+
"files": ["**/demo/*.md"],
18+
"processor": "markdown/markdown",
19+
"rules": {
20+
"no-console": "off"
21+
}
22+
}
23+
],
24+
"rules": {
25+
"comma-dangle": [2, "always-multiline"],
26+
"no-var": "error",
27+
"no-console": [2, { "allow": ["warn", "error"] }],
28+
"object-shorthand": 2,
29+
"no-unused-vars": [2, { "ignoreRestSiblings": true, "argsIgnorePattern": "^h$" }],
30+
"no-undef": 2,
31+
"camelcase": "off",
32+
"no-extra-boolean-cast": "off",
33+
"semi": ["error", "always"],
34+
"vue/require-prop-types": "off",
35+
"vue/require-default-prop": "off",
36+
"vue/no-reserved-keys": "off",
37+
"vue/comment-directive": "off",
38+
"vue/prop-name-casing": "off",
39+
"vue/max-attributes-per-line": [
40+
2,
41+
{
42+
"singleline": 20,
43+
"multiline": {
44+
"max": 1,
45+
"allowFirstLine": false
46+
}
47+
}
48+
]
49+
},
50+
"globals": {
51+
"h": true
52+
}
53+
}

antdv-demo/.gitignore

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# TernJS port file
104+
.tern-port
105+
106+
site/dev.js
107+
_site/
108+
package-lock.json
109+
testDemo/

antdv-demo/.huskyrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "pretty-quick --staged",
4+
"pre-publish": "npm run lint",
5+
"commit-msg": "commitlint -x @commitlint/config-conventional -e $GIT_PARAMS"
6+
}
7+
}

antdv-demo/.prettierignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
**/*.svg
2+
package.json
3+
lib/
4+
es/
5+
dist/
6+
_site/
7+
coverage/
8+
CNAME
9+
LICENSE
10+
yarn.lock
11+
netlify.toml
12+
yarn-error.log
13+
*.sh
14+
*.snap
15+
.gitignore
16+
.npmignore
17+
.prettierignore
18+
.DS_Store
19+
.editorconfig
20+
.eslintignore
21+
**/*.yml
22+
components/style/color/*.less
23+
**/assets
24+
.gitattributes
25+
.stylelintrc
26+
.vcmrc
27+
.png
28+
.npmrc.template
29+
.huskyrc

antdv-demo/.prettierrc

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

antdv-demo/.stylelintrc

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
3+
"rules": {
4+
"comment-empty-line-before": null,
5+
"declaration-empty-line-before": null,
6+
"function-comma-newline-after": null,
7+
"function-name-case": null,
8+
"function-parentheses-newline-inside": null,
9+
"function-max-empty-lines": null,
10+
"function-whitespace-after": null,
11+
"indentation": null,
12+
"number-leading-zero": null,
13+
"number-no-trailing-zeros": null,
14+
"rule-empty-line-before": null,
15+
"selector-combinator-space-after": null,
16+
"selector-list-comma-newline-after": null,
17+
"selector-pseudo-element-colon-notation": null,
18+
"unit-no-unknown": null,
19+
"value-list-max-empty-lines": null,
20+
"font-family-no-missing-generic-family-keyword": null,
21+
"no-descending-specificity": null
22+
}
23+
}

antdv-demo/.umirc.mock.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
...require('./mock/user'),
3+
};

antdv-demo/build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
rm -rf dist
3+
mkdir dist
4+
./node_modules/.bin/webpack --config webpack.site.config.js
5+
cp dist/index.html index.html

antdv-demo/build/config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
dev: {
3+
componentName: 'form', // dev components
4+
},
5+
};

0 commit comments

Comments
 (0)