From d963151dba5d607dcf9f042e3899a7c60083b18e Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 16 Feb 2021 21:37:07 +0800 Subject: [PATCH] chore: update submodule to v2-doc --- .gitmodules | 6 +++--- antdv-demo | 1 - package.json | 4 ---- tests/shared/demoTest.js | 4 ++-- tsconfig.json | 2 +- v2-doc | 1 + 6 files changed, 7 insertions(+), 11 deletions(-) delete mode 160000 antdv-demo create mode 160000 v2-doc diff --git a/.gitmodules b/.gitmodules index 7f234816c..c91a4eb96 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/antdv-demo b/antdv-demo deleted file mode 160000 index f55163dd2..000000000 --- a/antdv-demo +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f55163dd2cc41cfa2e6c77b3b9b6037c9a2ddefb diff --git a/package.json b/package.json index 320f23de9..d72d3bc10 100644 --- a/package.json +++ b/package.json @@ -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\"" diff --git a/tests/shared/demoTest.js b/tests/shared/demoTest.js index 1327c90ab..3870187f6 100644 --- a/tests/shared/demoTest.js +++ b/tests/shared/demoTest.js @@ -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; diff --git a/tsconfig.json b/tsconfig.json index bcbf3a33f..14c4d2a04 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] } diff --git a/v2-doc b/v2-doc new file mode 160000 index 000000000..9f89edaa4 --- /dev/null +++ b/v2-doc @@ -0,0 +1 @@ +Subproject commit 9f89edaa4c372efc94104f9f14f94c1ae41097e9