-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪟 🔧 Switch to
pnpm
for package managing (#22053)
* WIP * WIP * Adjust lockfile * Fix issues * Adjust github flows * More fixes * Adjust documentation * Remove unnecessary tsconfig entry * Cleanup .eslintrc * Update dependencies * Fix more issues * Correct TS * Make pnpm install run always via gradle * Install @storybook/react explicitaly * Update snapshots due to new libraries * Add node-fetch types * Add `url` package * Freeze react router version (due to useBlocker) * Fix typing issue * Update airbyte-webapp/src/components/ui/BarChart/BarChart.tsx Co-authored-by: Lake Mossman <lake@airbyte.io> * Rewrite README * Update e2e test library * Remove retry * Latest pnpm version * Revert removal of retry logic --------- Co-authored-by: Lake Mossman <lake@airbyte.io>
- Loading branch information
Showing
31 changed files
with
15,969 additions
and
57,995 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
engine-strict=true | ||
enable-pre-post-scripts=true |
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,31 +1,26 @@ | ||
# airbyte-webapp | ||
|
||
This module contains the Airbyte Webapp. It is a React app written in TypeScript. It runs in a Docker container. A very lightweight nginx server runs in that Docker container and serves the webapp. | ||
This module contains the Airbyte Webapp. It is a React app written in TypeScript. | ||
The webapp compiles to static HTML, JavaScript and CSS, which is served (in OSS) via | ||
a nginx in the airbyte-webapp docker image. This nginx also serves as the reverse proxy | ||
for accessing the server APIs in other images. | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
## Building the webapp | ||
|
||
## Available Scripts | ||
You can build the webapp using Gradle in the root of the repository: | ||
|
||
In the project directory, you can run: | ||
```sh | ||
# Only compile and build the docker webapp image: | ||
SUB_BUILD=PLATFORM ./gradlew :airbyte-webapp:assemble | ||
# Build the webapp and additional artifacts and run tests: | ||
SUB_BUILD=PLATFORM ./gradlew :airbyte-webapp:build | ||
``` | ||
|
||
### `npm start` | ||
## Developing the webapp | ||
|
||
Runs the app in the development mode.<br /> | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
For an instruction how to develop on the webapp, please refer to our [documentation](https://docs.airbyte.com/contributing-to-airbyte/developing-locally/#develop-on-airbyte-webapp). | ||
|
||
### `npm test` | ||
### Entrypoints | ||
|
||
Launches the test runner in the interactive watch mode.<br /> | ||
|
||
### `npm run build` | ||
|
||
Builds the app for production to the `build` folder.<br /> | ||
|
||
### VERSION=yourtag ./gradlew :airbyte-webapp:assemble | ||
|
||
Builds the app and Docker image and tags the image with `yourtag`. | ||
Note: needs to be run from the root directory of the Airbyte project. | ||
|
||
## Entrypoints | ||
* `airbyte-webapp/src/App.tsx` is the entrypoint into the OSS version of the webapp. | ||
* `airbyte-webapp/src/packages/cloud/App.tsx` is the entrypoint into the Cloud version of the webapp. |
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.