Skip to content

Commit

Permalink
refactor: remove nx (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentakozuka authored Jun 18, 2024
1 parent f657def commit 8328207
Show file tree
Hide file tree
Showing 1,020 changed files with 246,999 additions and 229,991 deletions.
13 changes: 11 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@
"go.lintFlags": [
"--config=${workspaceFolder}/.golangci.yml",
"--fast"
]
],
"[javascript][typescript][javascriptreact][typescriptreact]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"eslint.useFlatConfig": true
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"GitHub.vscode-pull-request-github"
"GitHub.vscode-pull-request-github",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
},
Expand Down
4 changes: 2 additions & 2 deletions .github/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"version": "latest"
},
"ghcr.io/devcontainers/features/go:1": {
"version": "latest"
"version": "1.21.10"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "latest"
"version": "18.20.3"
},
"./local-features/setup-user": "latest"
},
Expand Down
12 changes: 0 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,6 @@ start-httpstan:
stop-httpstan:
docker stop bucketeer-httpstan

#############################
# UI/WEB
#############################

.PHONY: build-ui-web-v2
build-ui-web-v2:
make -C ui/web-v2 build

.PHONY: build-ui-web-v2-prod
build-ui-web-v2-prod:
RELEASE_CHANNEL=prod make -C ui/web-v2 build

#############################
# Charts
#############################
Expand Down
2 changes: 2 additions & 0 deletions ui/web-v2/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DEV_WEB_API_ENDPOINT=https://example.com
DEV_AUTH_REDIRECT_ENDPOINT=http://localhost:8000
1 change: 0 additions & 1 deletion ui/web-v2/.eslintignore

This file was deleted.

38 changes: 0 additions & 38 deletions ui/web-v2/.eslintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions ui/web-v2/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ Thumbs.db

**/certs/tls.crt
**/certs/tls.key

.env
5 changes: 3 additions & 2 deletions ui/web-v2/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"singleQuote": true
}
"singleQuote": true,
"trailingComma": "none"
}
2 changes: 1 addition & 1 deletion ui/web-v2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apk update \

WORKDIR /etc/nginx

COPY dist/apps/admin/ /var/www/
COPY dist/ /var/www/

CMD ["nginx", "-g", "daemon off;"]

Expand Down
3 changes: 2 additions & 1 deletion ui/web-v2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ lint:
####################################

ROOT_DIR := $(CURDIR)/../..
SRC_DIR := $(CURDIR)/apps/admin/src
SRC_DIR := $(CURDIR)/src
PROTOBUF_INCLUDE_DIR := $(ROOT_DIR)/proto/external/protocolbuffers/protobuf/v23.4
GOOGLEAPIS := $(ROOT_DIR)/proto/external/googleapis/googleapis/83e756a66b80b072bd234abcfe89edf459090974
NPM_BIN_DIR := $(CURDIR)/node_modules/.bin
Expand All @@ -42,6 +42,7 @@ gen_proto: clean_proto gen_google_api
-I $(PROTOBUF_INCLUDE_DIR) \
-I $(GOOGLEAPIS) \
$(shell find $(ROOT_DIR)/proto -type f -name "*.proto" -not -path "**/gateway/*.proto" -not -path "**/google/protobuf/*.proto" -not -path "**/google/api/*.proto")
yarn lintfix

.PHONY: gen_google_api
gen_google_api:
Expand Down
20 changes: 15 additions & 5 deletions ui/web-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,19 @@ yarn install

### Set the API and Web endpoint

```sh
export NX_DEV_WEB_API_ENDPOINT=https://example.com
export NX_DEV_AUTH_REDIRECT_ENDPOINT=http://localhost:8000
If you want to connect to a real API server, additional settings on the `.env` file are needed.

First, create your own `.env` file based on the `.env.example` file.

```bash
cp .env.example .env
```

Add your API endpoint to the `.env` file like this:

```
DEV_WEB_API_ENDPOINT=https://example.com
DEV_AUTH_REDIRECT_ENDPOINT=http://localhost:8000
```

### Serve locally
Expand All @@ -41,10 +51,10 @@ yarn lint

### Internationalization

You need to run the following command when [the message file](https://github.com/bucketeer-io/bucketeer/blob/master/ui/web-v2/apps/admin/src/lang/messages.ts) is modified.
You need to run the following command when [the message file](https://github.com/bucketeer-io/bucketeer/blob/master/ui/web-v2/src/lang/messages.ts) is modified.

```sh
yarn translate
```

It will generate [en.json](https://github.com/bucketeer-io/bucketeer/blob/master/ui/web-v2/apps/admin/src/assets/lang/en.json). Then, you need manually do the same modifications on the other languages files, including the translation under the same directory.
It will generate [en.json](https://github.com/bucketeer-io/bucketeer/blob/master/ui/web-v2/src/assets/lang/en.json). Then, you need manually do the same modifications on the other languages files, including the translation under the same directory.
4 changes: 0 additions & 4 deletions ui/web-v2/apps/admin/.babelrc

This file was deleted.

16 changes: 0 additions & 16 deletions ui/web-v2/apps/admin/.browserslistrc

This file was deleted.

55 changes: 0 additions & 55 deletions ui/web-v2/apps/admin/.eslintrc.json

This file was deleted.

14 changes: 0 additions & 14 deletions ui/web-v2/apps/admin/babel-jest.config.json

This file was deleted.

Empty file.
13 changes: 0 additions & 13 deletions ui/web-v2/apps/admin/jest.config.js

This file was deleted.

Loading

0 comments on commit 8328207

Please sign in to comment.