-
Notifications
You must be signed in to change notification settings - Fork 5
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
69fd4b9
commit d3a06fa
Showing
26 changed files
with
2,582 additions
and
2,519 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
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,7 +1,5 @@ | ||
import React from 'react'; | ||
|
||
const Demo: React.FunctionComponent = ({ children }) => { | ||
return <div>{children}</div>; | ||
}; | ||
const Demo: React.FunctionComponent = ({ children }) => <div>{children}</div>; | ||
|
||
export default Demo; |
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,30 @@ | ||
# node.js | ||
node_modules | ||
|
||
# testing | ||
coverage | ||
|
||
# source code | ||
src | ||
|
||
# cache | ||
.cache | ||
.docz | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
|
||
# misc | ||
.DS_Store | ||
__MACOSX | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
.progress-estimator |
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,3 @@ | ||
# ts-lib-scripts-example | ||
|
||
ts-lib-scripts 示例。 |
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,23 @@ | ||
{ | ||
"name": "new-jsx-transform-demo", | ||
"version": "0.13.11", | ||
"private": true, | ||
"dependencies": { | ||
"rc-pagination": "^1.20.11", | ||
"ts-lib-tools": "^0.13.11", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
}, | ||
"scripts": { | ||
"test": "ts-lib-tools test", | ||
"build": "ts-lib-tools build", | ||
"format": "ts-lib-tools format", | ||
"lint": "ts-lib-tools lint" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^17.0.3", | ||
"@types/react-dom": "^17.0.3" | ||
}, | ||
"module": "dist/new-jsx-transform-demo.esm.js", | ||
"types": "types/index.d.ts" | ||
} |
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,6 @@ | ||
import ReactDOM from 'react-dom'; | ||
|
||
ReactDOM.render( | ||
<div>Hello, new jsx transform demo!</div>, | ||
document.getElementById('root'), | ||
); |
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,36 @@ | ||
{ | ||
"include": ["src", "src/**/*.json"], | ||
"exclude": ["node_modules"], | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "esnext", | ||
"lib": ["dom", "esnext", "WebWorker"], | ||
"importHelpers": true, | ||
"declaration": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"noImplicitAny": true, | ||
"strictNullChecks": true, | ||
"strictFunctionTypes": true, | ||
"strictPropertyInitialization": true, | ||
"noImplicitThis": true, | ||
"alwaysStrict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noImplicitReturns": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"moduleResolution": "node", | ||
"jsx": "react-jsx", | ||
"esModuleInterop": true, | ||
"allowJs": false, | ||
"baseUrl": "./", | ||
"rootDir": "./src", | ||
"declarationDir": "./types", | ||
"incremental": true, | ||
"composite": true, | ||
"outDir": "dist", | ||
"skipLibCheck": true, | ||
"resolveJsonModule": true, | ||
"plugins": [{ "name": "typescript-plugin-css-modules" }] | ||
} | ||
} |
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,10 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"emitDeclarationOnly": true, | ||
"declarationDir": "types", | ||
"declaration": true, | ||
"skipLibCheck": true, | ||
"tsBuildInfoFile": "release.tsbuildinfo" | ||
} | ||
} |
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,20 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"exclude": [ | ||
"node_modules", | ||
"**/__tests__/**", | ||
"**/*.spec.ts", | ||
"**/*.spec.tsx", | ||
"**/*.test.ts", | ||
"**/*.test.tsx" | ||
], | ||
"compilerOptions": { | ||
"target": "ES2020", | ||
"module": "esnext", | ||
"declaration": true, | ||
"sourceMap": false, | ||
"outDir": "./build/es6", | ||
"declarationDir": "./build/types", | ||
"tsBuildInfoFile": "./build/tsconfig.tsbuildinfo" | ||
} | ||
} |
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
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
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
Oops, something went wrong.