chore: update submodule to v2-doc

This commit is contained in:
tangjinzhou 2021-02-16 21:37:07 +08:00
parent 20cd96e400
commit d963151dba
6 changed files with 7 additions and 11 deletions

6
.gitmodules vendored
View File

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

@ -1 +0,0 @@
Subproject commit f55163dd2cc41cfa2e6c77b3b9b6037c9a2ddefb

View File

@ -29,8 +29,6 @@
"scripts": {
"dev": "webpack-dev-server",
"start": "cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js",
"dev:demo": "node --max_old_space_size=4096 antdv-demo/build/dev.js",
"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",
"test": "cross-env NODE_ENV=test WORKFLOW=true jest --config .jest.js",
"test:dev": "cross-env NODE_ENV=test jest --config .jest.js",
"compile": "node antd-tools/cli/run.js compile",
@ -42,8 +40,6 @@
"pretty-quick": "pretty-quick",
"dist": "node --max_old_space_size=6144 antd-tools/cli/run.js dist",
"lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue,.ts,.tsx ./components",
"lint:site": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./antdv-demo",
"lint:docs": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue,.md ./antdv-demo/docs/**/demo/**",
"lint:style": "stylelint \"{site,components}/**/*.less\" --syntax less",
"codecov": "codecov",
"postinstall": "node scripts/postinstall || echo \"ignore\""

View File

@ -6,8 +6,8 @@ import antd from 'ant-design-vue';
import { sleep } from '../utils';
export default function demoTest(component, options = {}) {
const suffix = options.suffix || 'md';
const files = glob.sync(`./antdv-demo/docs/${component}/demo/*.${suffix}`);
const suffix = options.suffix || 'vue';
const files = glob.sync(`./v2-doc/src/docs/${component}/demo/*.${suffix}`);
files.forEach(file => {
let testMethod = options.skip === true ? test.skip : test;

View File

@ -19,5 +19,5 @@
"skipLibCheck": true,
"allowJs": true
},
"exclude": ["node_modules", "lib", "es", "antd-tools", "dist"]
"exclude": ["node_modules", "lib", "es", "antd-tools", "dist", "v2-doc"]
}

1
v2-doc Submodule

@ -0,0 +1 @@
Subproject commit 9f89edaa4c372efc94104f9f14f94c1ae41097e9