site: run ant-design on windows #4725

* 5hours's work

* 过年好!!

* lint issue
pull/4727/head
Bo Chen 8 years ago committed by Benjy Cui
parent 6c0dba60e7
commit f0adb4dc5f

@ -92,6 +92,7 @@
"bisheng-plugin-react": "^0.4.0",
"bisheng-plugin-toc": "^0.4.0",
"coveralls": "^2.11.15",
"cross-env": "^3.1.4",
"dekko": "^0.2.0",
"dora-plugin-upload": "^0.3.1",
"enquire.js": "^2.1.1",
@ -128,6 +129,7 @@
"react-stateless-wrapper": "^1.0.2",
"react-sublime-video": "^0.2.0",
"reqwest": "^2.0.5",
"rimraf": "^2.5.4",
"typescript-babel-jest": "^0.1.5",
"values.js": "^1.0.3",
"xhr2": "^0.1.3"
@ -136,22 +138,19 @@
"test": "jest",
"test-all": "./scripts/test-all.sh",
"lint": "npm run tslint && npm run eslint && npm run demolint && npm run lesshint",
"tslint": "antd-tools run ts-lint && npm run compile && rm -rf lib",
"tslint": "antd-tools run ts-lint && npm run compile && rimraf lib",
"eslint": "eslint tests site scripts components ./.eslintrc.js ./webpack.config.js --ext '.js,.jsx'",
"demolint": "RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
"demolint": "cross-env RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
"lesshint": "lesshint components -r scripts/lesshint-report.js",
"eslint-fix": "eslint --fix tests site scripts components ./.eslintrc.js ./webpack.config.js --ext '.js,.jsx' && eslint-tinker ./components/*/demo/*.md",
"clean": "antd-tools run clean",
"dist": "antd-tools run dist",
"compile": "antd-tools run compile",
"start": "bisheng start -c ./site/bisheng.config.js --no-livereload",
"babel-site": "babel ./site/theme/template --out-dir ./site/theme/template",
"clean-site": "rm site/theme/template/**/*.js site/theme/template/*.js",
"clean-site": "rimraf site/theme/template/**/*.js site/theme/template/*.js",
"site": "npm run babel-site && bisheng build --ssr -c ./site/bisheng.config.js && npm run clean-site",
"deploy": "npm run clean && npm run site && bisheng gh-pages --push-only",
"pub": "antd-tools run pub",
"prepublish": "antd-tools run guard",
"pre-publish": "npm run test-all && node ./scripts/prepub",

@ -27,7 +27,7 @@ module.exports = {
components(markdownData) {
const filename = markdownData.meta.filename;
if (!/^components/.test(filename) ||
/\/demo$/.test(path.dirname(filename))) return;
/[/\\]demo$/.test(path.dirname(filename))) return;
return {
meta: markdownData.meta,

Loading…
Cancel
Save