Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Jun 11, 2019
1 parent 3423076 commit 48cefcf
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .fatherrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
export default {
cjs: 'babel',
esm: { type: 'babel', importLibToEs: true },
preCommit: {
eslint: true,
prettier: true,
},
extraBabelPlugins: [
['babel-plugin-import', {
libraryName: 'antd',
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.ipr
.iws
*~
.doc
.docz
~*
*.diff
Expand All @@ -25,7 +26,8 @@ node_modules
build
lib
coverage
*/*.js
*/*.jsx
**/*.js
**/*.jsx
*.map
dist
es
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@
"react": "*"
},
"scripts": {
"build": "father doc build",
"build": "father build && tsc",
"build:site": "npm run build && father doc build",
"dist": "father doc build",
"gh-pages": "npm run dist && father doc deploy",
"start": "father doc dev",
"lint": "tslint --project ./tsconfig.json -c ./tslint.json --fix",
"dev": "father doc dev",
"test": "father test",
"pub": "npm run build && npm publish",
"pub": "npm run build:site && npm publish",
"coverage": "father test --coverage"
},
"dependencies": {
Expand Down Expand Up @@ -68,7 +69,8 @@
"react": "^16.8.6",
"react-dom": "^16.8.6",
"ts-jest": "^24.0.2",
"tslint": "^5.17.0"
"tslint": "^5.17.0",
"typescript": "^3.5.1"
},
"pre-commit": [
"lint"
Expand Down
25 changes: 22 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
{
"compilerOptions": {
"sourceMap": true,
"moduleResolution": "node",
"jsx": "react",
"target": "es6"
}
"esModuleInterop": true,
"experimentalDecorators": true,
"jsx": "preserve",
"noUnusedParameters": false,
"noUnusedLocals": false,
"noImplicitAny": false,
"target": "es6",
"declaration": true,
"baseUrl": "./src",
"rootDir": "./src",
"paths": {
"@/*": ["./src/*"]
},
"declarationDir": "./lib",
"lib": ["dom", "es7"]
},
"include": [
"./src/**/*",
"./test/**/*"
],
"exclude": ["node_modules", "lib", "es", "typings", "test"]
}

0 comments on commit 48cefcf

Please sign in to comment.