Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make cli/frontend into git #500

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,10 @@ jobs:
- name: Dry run release
if: github.event_name == 'pull_request'
run: |
make build-frontend
cargo package || echo "package done"
sql_dir=`ls target/package | grep bendsql`
mkdir -p target/package/${sql_dir}/frontend/
cp -r frontend/build target/package/bendsql-*/frontend/
cargo workspaces publish --all --dry-run --publish-as-is
- name: Release to crates.io
if: github.event_name == 'push'
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
make build-frontend
cargo package || echo "package done"
sql_dir=`ls target/package | grep bendsql`
mkdir -p target/package/${sql_dir}/frontend/
cp -r frontend/build target/package/bendsql-*/frontend/
cargo workspaces publish --all --publish-as-is --yes
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
- name: Build
shell: bash
run: |
make build-frontend
cross build --release --target=${{ matrix.target }} --bin=bendsql
- name: Publish Binary
uses: ./.github/actions/publish_binary
Expand Down Expand Up @@ -71,7 +70,6 @@ jobs:
- name: Build
shell: bash
run: |
make build-frontend
cargo build --release --target=${{ matrix.target }} --bin=bendsql
- name: Publish Binary
uses: ./.github/actions/publish_binary
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ venv/
*.output

/dist
cli/frontend

20 changes: 20 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# If there are words that you think should not be treated as typo.
# Please list here along with a comment.
[default.extend-words]
# Preserved for NdJson
"Nd" = "Nd"
# Microsoft K8s Server
"AKS" = "AKS"
# Wrong cases
"ba" = "ba"
"ue" = "ue"
"INOUT" = "INOUT"
"ser" = "ser"
"Ser" = "Ser"
"flate" = "flate"
"Tke" = "Tke"

[files]
extend-exclude = [
"cli/frontend"
]
15 changes: 15 additions & 0 deletions cli/frontend/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"files": {
"main.css": "/static/css/main.c6b44981.css",
"main.js": "/static/js/main.f49e2d33.js",
"static/media/download.svg": "/static/media/download.1a2f96254a617a2765b0fca418a3e5bf.svg",
"static/media/zoom-in.svg": "/static/media/zoom-in.b8e914df4e9fbb889ceec372b13f62d1.svg",
"static/media/full-screen.svg": "/static/media/full-screen.972c352cc40ca74a17222b04ad2b1316.svg",
"index.html": "/index.html",
"static/media/zoom-out.svg": "/static/media/zoom-out.9600557781b9acd42f24eddad00f6f36.svg"
},
"entrypoints": [
"static/css/main.c6b44981.css",
"static/js/main.f49e2d33.js"
]
}
1 change: 1 addition & 0 deletions cli/frontend/build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/logo.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Databend</title><script defer="defer" src="/static/js/main.f49e2d33.js"></script><link href="/static/css/main.c6b44981.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
16 changes: 16 additions & 0 deletions cli/frontend/build/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions cli/frontend/build/static/css/main.c6b44981.css

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

2 changes: 2 additions & 0 deletions cli/frontend/build/static/js/main.f49e2d33.js

Large diffs are not rendered by default.

Loading
Loading