Skip to content

Commit d963151

Browse files
committed
chore: update submodule to v2-doc
1 parent 20cd96e commit d963151

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

.gitmodules

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "antdv-demo"]
2-
path = antdv-demo
3-
url = git@github.com:tangjinzhou/antdv-demo.git
1+
[submodule "v2-doc"]
2+
path = v2-doc
3+
url = https://github.com/vueComponent/v2-doc

antdv-demo

-1
This file was deleted.

package.json

-4
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
"scripts": {
3030
"dev": "webpack-dev-server",
3131
"start": "cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js",
32-
"dev:demo": "node --max_old_space_size=4096 antdv-demo/build/dev.js",
33-
"dev:site": "cross-env PORT=3001 NODE_ENV=development --max_old_space_size=4096 webpack-dev-server --config antdv-demo/build/webpack.dev.conf.js",
3432
"test": "cross-env NODE_ENV=test WORKFLOW=true jest --config .jest.js",
3533
"test:dev": "cross-env NODE_ENV=test jest --config .jest.js",
3634
"compile": "node antd-tools/cli/run.js compile",
@@ -42,8 +40,6 @@
4240
"pretty-quick": "pretty-quick",
4341
"dist": "node --max_old_space_size=6144 antd-tools/cli/run.js dist",
4442
"lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue,.ts,.tsx ./components",
45-
"lint:site": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./antdv-demo",
46-
"lint:docs": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue,.md ./antdv-demo/docs/**/demo/**",
4743
"lint:style": "stylelint \"{site,components}/**/*.less\" --syntax less",
4844
"codecov": "codecov",
4945
"postinstall": "node scripts/postinstall || echo \"ignore\""

tests/shared/demoTest.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import antd from 'ant-design-vue';
66
import { sleep } from '../utils';
77

88
export default function demoTest(component, options = {}) {
9-
const suffix = options.suffix || 'md';
10-
const files = glob.sync(`./antdv-demo/docs/${component}/demo/*.${suffix}`);
9+
const suffix = options.suffix || 'vue';
10+
const files = glob.sync(`./v2-doc/src/docs/${component}/demo/*.${suffix}`);
1111

1212
files.forEach(file => {
1313
let testMethod = options.skip === true ? test.skip : test;

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
"skipLibCheck": true,
2020
"allowJs": true
2121
},
22-
"exclude": ["node_modules", "lib", "es", "antd-tools", "dist"]
22+
"exclude": ["node_modules", "lib", "es", "antd-tools", "dist", "v2-doc"]
2323
}

v2-doc

Submodule v2-doc added at 9f89eda

0 commit comments

Comments
 (0)