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

Switching to Vite for UI Dev #924

Merged
merged 16 commits into from
Jul 5, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Rm old ui dir
  • Loading branch information
markphelps committed Jul 5, 2022
commit 581da328e34e14d58a0a3b1f6be77b0c04fed2d8
24 changes: 12 additions & 12 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version: 3
vars:
PROJECT: flipt
SOURCE_FILES: ./...
UI: ui

tasks:
default:
Expand All @@ -20,29 +21,28 @@ tasks:
assets:
desc: Build the UI
deps: [assets:deps]
dir: "{{.UI}}"
cmds:
- cd ui && npm run build
env:
NODE_OPTIONS: --openssl-legacy-provider
- npm run build
sources:
- ./ui/static/*
- ./ui/src/**/*
- ./ui/src/**/**/*
- ./ui/index.html
- ./ui/package.json
- ./{{.UI}}/static/*
- ./{{.UI}}/src/**/*
- ./{{.UI}}/src/**/**/*
- ./{{.UI}}/index.html
- ./{{.UI}}/package.json
method: checksum

assets:deps:
desc: Install UI dependencies
dir: "{{.UI}}"
cmds:
- cd ui && npm ci
env:
NODE_OPTIONS: --openssl-legacy-provider
- npm ci

assets:dev:
desc: Run the UI dev server
dir: "{{.UI}}"
cmds:
- cd ui && npm run dev
- npm run dev

bench:
desc: Run benchmarks
Expand Down
1 change: 0 additions & 1 deletion cmd/flipt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import (
"go.flipt.io/flipt/storage/sql/postgres"
"go.flipt.io/flipt/storage/sql/sqlite"
"go.flipt.io/flipt/swagger"
"go.flipt.io/flipt/ui"
"golang.org/x/sync/errgroup"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
Expand Down
9 changes: 0 additions & 9 deletions ui-next/.editorconfig

This file was deleted.

27 changes: 0 additions & 27 deletions ui-next/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions ui-next/.prettierignore

This file was deleted.

1 change: 0 additions & 1 deletion ui-next/.prettierrc.json

This file was deleted.

12 changes: 0 additions & 12 deletions ui-next/README.md

This file was deleted.

33 changes: 0 additions & 33 deletions ui-next/e2e/createFlag.spec.js

This file was deleted.

37 changes: 0 additions & 37 deletions ui-next/e2e/createSegment.spec.js

This file was deleted.

12 changes: 0 additions & 12 deletions ui-next/index.html

This file was deleted.

Loading