Skip to content
Permalink
Browse files

convert react-async to TS

  • Loading branch information
Thomas Gnandt
Thomas Gnandt committed Sep 6, 2019
1 parent d068194 commit 5665d4a956d8986de60e1ed59294c1f5a13e86b4
@@ -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"],
},
},
}
@@ -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/"],
@@ -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",
@@ -70,4 +73,4 @@
"react-dom": "16.9.0",
"storybook-chromatic": "^2.2.2"
}
}
}
@@ -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"
}
}
}

0 comments on commit 5665d4a

Please sign in to comment.
You can’t perform that action at this time.