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

refactor(ui): move to /ui folder, switch to vite for build #1581

Merged
merged 46 commits into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
8014790
ci(front): check that build types complete
davinov Nov 4, 2022
bcee7c2
refactor(ui): move to /ui folder, switch to vite for build
davinov Nov 4, 2022
401e71a
build(front): fix dockerfile paths
davinov Nov 4, 2022
86e10da
build(ui): update eslint and its config
davinov Nov 7, 2022
2edcb2c
chore(ui): fix many eslint problems
davinov Nov 7, 2022
b8e1a20
test(ui): switch to vitest
davinov Nov 7, 2022
f717a4d
fix(playground): use same vue instance for playground
davinov Nov 7, 2022
b9b94a2
style(ui): eslint fix
davinov Nov 7, 2022
19001fd
style(ui): update and run prettier
davinov Nov 7, 2022
9ea1b0c
ci(ui): fix action cache and set up coverage
davinov Nov 8, 2022
fd584b2
chore(ui): remove jest
davinov Nov 8, 2022
bfeff17
docs(ui): storybook upgrade
davinov Nov 8, 2022
afddd86
docs(ui): start to migrate some stories
davinov Nov 8, 2022
c182b9c
docs(ui): migrate date components stories
davinov Nov 8, 2022
603efe9
docs(ui): move old stories that needs to be migrated
davinov Nov 8, 2022
5a67555
style(ui): fix prettier/eslint, reformat stories
davinov Nov 8, 2022
e50ae94
ci(ui): upgrade upload-artifact action
davinov Nov 8, 2022
a555e3f
ci(ui): run prettier
davinov Nov 8, 2022
0366f82
fix(ui): fix all eslint errors
davinov Nov 8, 2022
69b7b68
style(ui): add sparkles :sparkles:
davinov Nov 8, 2022
1b6ca11
test(ui): fix more tests!
davinov Nov 8, 2022
8fb0563
chore(ui): enable isolatedModules in tsc
davinov Nov 8, 2022
c0daee7
chore(ui): some last cleaning for the day
davinov Nov 8, 2022
2786ad2
style(ui): prettier
davinov Nov 8, 2022
c58f1e2
style(ui): lint imports sort
davinov Nov 8, 2022
573710f
test(ui): skip broken popover tests
davinov Nov 9, 2022
d7c7f81
test(ui): skip broken filter step tests
davinov Nov 9, 2022
34545c4
style(ui): prettier
davinov Nov 9, 2022
9e1eb22
docs(ui): adapt to ui folder
davinov Nov 9, 2022
e02107d
ci(ui): fix sonar base dir
davinov Nov 9, 2022
953ed30
test(ui): skip ifthenelse tests for now
davinov Nov 9, 2022
e67eed6
ci(ui): folder for publish action
davinov Nov 9, 2022
366a683
ci(ui): fix coverage paths
davinov Nov 9, 2022
f7071d7
ci(ui): fix paths and coverage format for sonar
davinov Nov 9, 2022
d40bdac
test(ui): clean some of the console output
davinov Nov 9, 2022
ed9287d
ci(ui): last fix for paths in reports! (double slash)
davinov Nov 9, 2022
42fad16
chore: switch vite config to ts
PrettyWood Nov 9, 2022
8da99ff
chore: recommand volar as extension
PrettyWood Nov 9, 2022
6ddd8c2
chore: remove deprecated file
PrettyWood Nov 9, 2022
cf3948c
fix: typechecking in IfThenElseWidget
PrettyWood Nov 9, 2022
db8583c
fix: avoid using Mixins
PrettyWood Nov 9, 2022
9779fdc
chore: ignore .vscode except recommanded extensions
PrettyWood Nov 9, 2022
3a5804d
fix(ui): vue file in ts instead of js
davinov Nov 9, 2022
f318cc9
chore(ui): remove forgotten debug logs
davinov Nov 9, 2022
1340571
Merge branch 'master' of github.com:ToucanToco/weaverbird into f/ui-org
davinov Nov 10, 2022
a6703e6
chore: update README
bloodstorms Nov 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
node_modules

docs
dist
stories
tests

.git
.idea
.vscode
.circleci
.github
.storybook

ui/.storybook
ui/dist
ui/node_modules
ui/stories
ui/tests

server/.mypy_cache
server/.pytest_cache
Expand Down
117 changes: 0 additions & 117 deletions .eslintrc.js

This file was deleted.

38 changes: 21 additions & 17 deletions .github/workflows/ci-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,66 +7,70 @@ on:
branches:
- master
paths:
- 'src/**'
- 'tests/**'
- 'yarn.lock'
- '*.js'
- 'ui/**'
- '.github/workflows/ci-ui.yml'
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'src/**'
- 'tests/**'
- 'yarn.lock'
- '*.js'
- 'ui/**'
- '.github/workflows/ci-ui.yml'

jobs:
build_lint_and_test:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ui

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: ui/yarn.lock

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Check format
run: yarn format:ci

- name: Lint
run: yarn lint:ci

- name: Archive lint report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: lint-report
path: lint-report.json
path: ui/lint-report.json
if: failure()

- name: Unit tests
run: yarn test:unit --runInBand
run: yarn coverage

- name: Send report to codecov
run: yarn codecov
if: ${{ always() }}

- name: Fix code coverage paths
working-directory: ./coverage
- name: Fix reports paths
run: |
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' lcov.info
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace@g' coverage/lcov.info
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace@g' lint-report.json

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: ${{ always() }}
with:
projectBaseDir: ui

- name: Check that build completes as expected
run: yarn build-bundle
run: yarn build
5 changes: 5 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
jobs:
publish:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ui

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand Down
24 changes: 4 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
node_modules
/dist
.storybook/dist
playground/*.map

# Editors
.idea
jGundermann marked this conversation as resolved.
Show resolved Hide resolved
.vscode

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Generated reports
coverage
lint-report.json
test-report.xml
!.vscode/extensions.json
*.swp

# Secrets
bigquery-credentials.json
.env
.env
5 changes: 0 additions & 5 deletions .storybook/.babelrc

This file was deleted.

1 change: 0 additions & 1 deletion .storybook/addons.js

This file was deleted.

96 changes: 0 additions & 96 deletions .storybook/bundle.ts

This file was deleted.

3 changes: 0 additions & 3 deletions .storybook/main.js

This file was deleted.

13 changes: 0 additions & 13 deletions .storybook/preview-head.html

This file was deleted.

1 change: 0 additions & 1 deletion .storybook/preview.js

This file was deleted.

Loading