Skip to content

Commit

Permalink
feat: connect ui (#2721)
Browse files Browse the repository at this point in the history
## Describe your changes

Contributes to https://linear.app/nango/issue/NAN-1703/create-ui

- Setup the folder for the new Connect UI
This is just this to avoid massive PR later.

```sh
npm run -w @nangohq/connect-ui dev
```
  • Loading branch information
bodinsamuel authored Sep 18, 2024
1 parent e0e0622 commit 39382a5
Show file tree
Hide file tree
Showing 19 changed files with 469 additions and 53 deletions.
29 changes: 29 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,35 @@
// unnecessary when bundling
"import/extensions": "off"
}
},
{
"files": [
"packages/connect-ui/**/*.tsx"
],
"plugins": [
"react",
"react-hooks"
],
"extends": [
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
],
"env": {
"browser": true,
"es6": true,
"node": false
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
},
"project": "tsconfig.json"
},
"rules": {}
}
]
}
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ COPY packages/scheduler/package.json ./packages/scheduler/package.json
COPY packages/server/package.json ./packages/server/package.json
COPY packages/shared/package.json ./packages/shared/package.json
COPY packages/types/package.json ./packages/types/package.json
COPY packages/connect-ui/package.json ./packages/connect-ui/package.json
COPY packages/utils/package.json ./packages/utils/package.json
COPY packages/webapp/package.json ./packages/webapp/package.json
COPY packages/webhooks/package.json ./packages/webhooks/package.json
Expand Down Expand Up @@ -63,14 +64,15 @@ ENV REACT_APP_PUBLIC_SENTRY_KEY $sentry_key

# Build the frontend
RUN true \
&& npm run -w @nangohq/webapp build
&& npm run -w @nangohq/webapp build \
&& npm run -w @nangohq/connect-ui build

# Clean src
RUN true \
&& rm -rf packages/*/src \
&& rm -rf packages/*/lib \
&& rm -rf packages/webapp/public \
&& rm -rf packages/webapp/node_modules
&& rm -rf packages/*/public \
&& rm -rf packages/*/node_modules

# Clean dev dependencies
RUN true \
Expand Down
249 changes: 220 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 39382a5

Please sign in to comment.