Skip to content

Commit

Permalink
convert react-async to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
Khartir committed Sep 6, 2019
1 parent d068194 commit 5665d4a
Show file tree
Hide file tree
Showing 13 changed files with 600 additions and 137 deletions.
6 changes: 3 additions & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
presets: ["@babel/preset-react"],
plugins: ["@babel/plugin-proposal-object-rest-spread"],
plugins: ["@babel/plugin-proposal-object-rest-spread", "@babel/plugin-proposal-class-properties"],

env: {
test: {
presets: ["@babel/preset-env", "@babel/preset-react"],
plugins: ["@babel/plugin-transform-runtime"],
presets: ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"],
plugins: ["@babel/plugin-transform-runtime", "@babel/plugin-proposal-class-properties"],
},
},
}
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ module.exports = {
coverageDirectory: "<rootDir>/coverage",
verbose: true,
bail: true,
transform: { "^.+\\.js$": "babel-jest" },
transform: {
"^.+\\.[tj]s$": "babel-jest",
},
projects: ["<rootDir>/packages/*"],
setupFiles: ["<rootDir>/jest.setup.js"],
testPathIgnorePatterns: ["/node_modules/", "/pkg/"],
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,18 @@
},
"devDependencies": {
"@babel/core": "7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "7.5.5",
"@babel/plugin-transform-runtime": "7.5.5",
"@babel/preset-env": "7.5.5",
"@babel/preset-react": "7.0.0",
"@babel/preset-typescript": "^7.3.3",
"@pika/pack": "0.5.0",
"@pika/plugin-build-node": "0.6.0",
"@pika/plugin-build-types": "0.6.0",
"@pika/plugin-build-web": "0.6.0",
"@pika/plugin-standard-pkg": "0.6.0",
"@pika/plugin-ts-standard-pkg": "^0.6.0",
"@storybook/react": "5.2.0-rc.2",
"@testing-library/jest-dom": "4.1.0",
"@testing-library/react": "9.1.3",
Expand All @@ -70,4 +73,4 @@
"react-dom": "16.9.0",
"storybook-chromatic": "^2.2.2"
}
}
}
16 changes: 5 additions & 11 deletions packages/react-async/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,17 @@
"@pika/pack": {
"pipeline": [
[
"@pika/plugin-standard-pkg",
{
"exclude": [
"specs.js",
"*.spec.js"
]
}
"@pika/plugin-ts-standard-pkg"
],
[
"@pika/plugin-build-node"
],
[
"@pika/plugin-build-web"
],
[
"@pika/plugin-build-types"
]
]
},
"devDependencies": {
"typescript": "^3.6.2"
}
}
}
Loading

0 comments on commit 5665d4a

Please sign in to comment.