-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ceca7d
commit 2072306
Showing
9 changed files
with
75 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import { IBundleOptions } from 'father'; | ||
|
||
const options: IBundleOptions = { | ||
cjs: 'rollup', | ||
esm: 'rollup', | ||
doc: { typescript: true }, | ||
cjs: 'babel', | ||
esm: 'babel', | ||
}; | ||
|
||
export default options; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Test CI | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@master | ||
|
||
- name: install | ||
run: npm install | ||
|
||
- name: lint | ||
run: npm run lint && npm run tsc | ||
- name: test | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
/dist | ||
/.docz | ||
/node_modules | ||
es/ | ||
lib/ | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,17 +8,27 @@ | |
"name": "chenshuai2144", | ||
"email": "[email protected]" | ||
}, | ||
"files": [ | ||
"/lib", | ||
"/es", | ||
"/dist" | ||
], | ||
"repository": "https://github.com/umijs/route-utils", | ||
"scripts": { | ||
"build": "father build", | ||
"test": "umi-test" | ||
"test": "umi-test", | ||
"prepublishOnly": "npm run test && npm run build && np --no-cleanup --yolo --no-publish --any-branch" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^25.2.1", | ||
"@types/lodash": "^4.14.150", | ||
"father": "^2.16.0", | ||
"typescript": "^3.3.3" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"np": "^6.2.3", | ||
"path-to-regexp": "2.4.0", | ||
"umi-test": "^1.9.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export interface Route extends MenuDataItem { | ||
routes?: Route[]; | ||
} | ||
|
||
export interface MessageDescriptor { | ||
id: any; | ||
description?: string; | ||
defaultMessage?: string; | ||
} | ||
|
||
export interface MenuDataItem { | ||
children?: MenuDataItem[]; | ||
hideChildrenInMenu?: boolean; | ||
hideInMenu?: boolean; | ||
icon?: React.ReactNode; | ||
locale?: string | false; | ||
name?: string; | ||
key?: string; | ||
parentKeys?: string[]; | ||
path?: string; | ||
[key: string]: any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters