-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(make transport package): make transport package ourside of react…
…-provider
- Loading branch information
1 parent
a8c48f3
commit 1e2d0b2
Showing
19 changed files
with
299 additions
and
75 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
4 changes: 2 additions & 2 deletions
4
...react-provider/src/hooks/use-transport.ts → packages/react-hooks/src/use-transport.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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
module.exports = { | ||
sourceType: "unambiguous", | ||
plugins: [ | ||
"@babel/transform-runtime", | ||
"transform-inline-environment-variables", | ||
"transform-class-properties", | ||
process.env.NODE_ENV !== "test" && [ | ||
"babel-plugin-root-import", | ||
{ | ||
rootPathSuffix: "./src", | ||
rootPathPrefix: "~/", | ||
}, | ||
], | ||
].filter(Boolean), | ||
presets: ["@babel/preset-typescript", "@babel/preset-env"], | ||
}; |
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,5 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const jestConfigBase = require("../../jest.config.base"); | ||
const babelConfig = require("./babel.config.js"); | ||
|
||
module.exports = jestConfigBase(babelConfig); |
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,25 @@ | ||
{ | ||
"name": "@trycourier/transport", | ||
"version": "6.0.0", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"types": "typings/index.d.ts", | ||
"scripts": { | ||
"babel": "babel src -d dist --extensions \".ts\" --ignore \"src/**/__tests__/**\"", | ||
"build:watch": "yarn babel --watch", | ||
"build": "rimraf dist && yarn babel", | ||
"clean": "rimraf dist && rimraf typings", | ||
"test": "jest -c jest.config.js --runInBand", | ||
"type-check": "tsc --noEmit", | ||
"types": "tsc --emitDeclarationOnly" | ||
}, | ||
"license": "ISC", | ||
"dependencies": { | ||
"reconnecting-websocket": "^4.4.0", | ||
"rimraf": "^3.0.2" | ||
}, | ||
"files": [ | ||
"dist/", | ||
"typings/" | ||
] | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...-provider/src/transports/courier/index.ts → packages/transport/src/courier/index.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
File renamed without changes.
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,7 @@ | ||
import { ITransportOptions } from "./courier/types"; | ||
|
||
export * from "./courier"; | ||
export * from "./base"; | ||
export * from "./types"; | ||
|
||
export type { ITransportOptions }; |
Oops, something went wrong.