Skip to content

Commit

Permalink
fix: dev broken on windows (#16)
Browse files Browse the repository at this point in the history
* chore: cross-env for windows

* fix: bash for start dev

* fix: path broken on windows
  • Loading branch information
Deturium authored and PeachScript committed Dec 1, 2019
1 parent 1fe301e commit 42e1ba3
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@
/packages/father-doc/src/fixtures/e2e/normal/.docz
/.changelog
yarn.lock
package-lock.json
dist
/src
/.vscode
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To check out live examples and docs, visit [father-doc GitHub Pages](https://umi
```bash
$ npm install
$ npm run bootstrap
$ npm run dev
$ npm run build
$ npm run dev
$ npm run test
```
1 change: 0 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@
"exact": true
}
},
"npmClient": "yarn",
"version": "independent"
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"private": true,
"scripts": {
"dev": "BROWSER=none node ./packages/father-doc/bin/father-doc.js dev",
"doc:build": "BROWSER=none node ./packages/father-doc/bin/father-doc.js build",
"dev": "cross-env BROWSER=none node ./packages/father-doc/bin/father-doc.js dev",
"doc:build": "cross-env BROWSER=none node ./packages/father-doc/bin/father-doc.js build",
"doc:deploy": "bash ./scripts/deploy_doc.sh",
"bootstrap": "lerna bootstrap",
"build": "father-build build",
Expand All @@ -17,6 +17,7 @@
"@types/jest": "^24.0.13",
"antd": "^3.25.3",
"babel-plugin-import": "^1.13.0",
"cross-env": "^6.0.3",
"father-build": "^1.14.2",
"lerna": "^3.6.0",
"lerna-changelog": "^0.8.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/umi-plugin-father-doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"umi-types": "^0.5.4",
"unified": "^8.4.1",
"unist-util-visit": "^2.0.1",
"unist-util-visit-parents": "^3.0.1"
"unist-util-visit-parents": "^3.0.1",
"upath": "^1.2.0"
},
"devDependencies": {
"@types/history": "^4.7.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path';
import path from 'upath';
import { IApi } from 'umi-types';

export interface IMenuItem {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs';
import path from 'path';
import path from 'upath';
import { IApi, IRoute } from 'umi-types';
import deepmerge from 'deepmerge';
import getFrontMatter from './getFrontMatter';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs';
import path from 'path';
import path from 'upath';
import { IRoute } from 'umi-types';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/umi-plugin-father-doc/src/transformer/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path';
import path from 'upath';
import getYamlConfig from 'umi-build-dev/lib/routes/getYamlConfig';
import remark from './remark';

Expand Down

0 comments on commit 42e1ba3

Please sign in to comment.