Skip to content

Commit 529008a

Browse files
authored
chore: Rename frontend folder to skore-ui (#439)
part of #345
1 parent a837307 commit 529008a

File tree

104 files changed

+66
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+66
-66
lines changed

.github/workflows/backend.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@ name: Reusable backend workflow
33
on: [workflow_call]
44

55
jobs:
6-
build-frontend:
6+
build-skore-ui:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
1010
- uses: actions/setup-node@v4
1111
with:
1212
node-version: '20'
1313
cache: 'npm'
14-
cache-dependency-path: frontend/package-lock.json
14+
cache-dependency-path: skore-ui/package-lock.json
1515
- shell: bash
1616
run: |
17-
cd frontend
17+
cd skore-ui
1818
1919
npm install
2020
npm run build
2121
npm run build:lib -- --emptyOutDir false
2222
- uses: actions/upload-artifact@v4
2323
with:
24-
name: frontend-package-distributions
25-
path: frontend/dist
24+
name: skore-ui-package-distributions
25+
path: skore-ui/dist
2626

2727
test-backend:
2828
runs-on: ubuntu-latest
29-
needs: build-frontend
29+
needs: build-skore-ui
3030
strategy:
3131
fail-fast: true
3232
matrix:
@@ -48,7 +48,7 @@ jobs:
4848
- name: Download package distributions
4949
uses: actions/download-artifact@v4
5050
with:
51-
name: frontend-package-distributions
51+
name: skore-ui-package-distributions
5252
path: src/skore/ui/static
5353

5454
- name: Build
@@ -72,4 +72,4 @@ jobs:
7272
steps:
7373
- uses: geekyeggo/delete-artifact@v5
7474
with:
75-
name: frontend-package-distributions
75+
name: skore-ui-package-distributions

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
outputs:
99
backend: ${{ steps.filter.outputs.backend }}
10-
frontend: ${{ steps.filter.outputs.frontend }}
10+
skore-ui: ${{ steps.filter.outputs.skore-ui }}
1111
permissions:
1212
pull-requests: read
1313
steps:
@@ -21,9 +21,9 @@ jobs:
2121
- 'pyproject.toml'
2222
- 'requirements*.txt'
2323
- '.github/workflows/backend.yml'
24-
frontend:
25-
- 'frontend/**'
26-
- '.github/workflows/frontend.yml'
24+
skore-ui:
25+
- 'skore-ui/**'
26+
- '.github/workflows/skore-ui.yml'
2727
2828
lint-all-files:
2929
uses: ./.github/workflows/lint.yml
@@ -37,10 +37,10 @@ jobs:
3737
permissions:
3838
contents: read
3939

40-
lint-and-test-frontend:
40+
lint-and-test-skore-ui:
4141
needs: [lint-all-files, changes]
42-
if: ${{ needs.changes.outputs.frontend == 'true' }}
43-
uses: ./.github/workflows/frontend.yml
42+
if: ${{ needs.changes.outputs.skore-ui == 'true' }}
43+
uses: ./.github/workflows/skore-ui.yml
4444
permissions:
4545
contents: read
4646
pull-requests: write
@@ -49,7 +49,7 @@ jobs:
4949
needs:
5050
- lint-all-files
5151
- lint-and-test-backend
52-
- lint-and-test-frontend
52+
- lint-and-test-skore-ui
5353
if: ${{ always() }}
5454
runs-on: Ubuntu-latest
5555
steps:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
with:
3232
node-version: 20
3333

34-
- name: Build frontend and share library
34+
- name: Build skore-ui and share library
3535
shell: bash
36-
run: make build-frontend
36+
run: make build-skore-ui
3737

3838
- name: Override VERSION.txt with tag
3939
run: echo "${GITHUB_REF_NAME}" > VERSION.txt

.github/workflows/frontend.yml renamed to .github/workflows/skore-ui.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
1-
name: Reusable frontend workflow
1+
name: Reusable skore-ui workflow
22

33
on: [workflow_call]
44

55
jobs:
6-
lint-frontend:
6+
lint-skore-ui:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
1010
- uses: actions/setup-node@v4
1111
with:
1212
node-version: '20'
1313
cache: 'npm'
14-
cache-dependency-path: frontend/package-lock.json
15-
- name: Lint frontend
14+
cache-dependency-path: skore-ui/package-lock.json
15+
- name: Lint skore-ui
1616
run: |
17-
cd frontend
17+
cd skore-ui
1818
1919
npm install
2020
npm run type-check
2121
npm run lint
2222
npm run format
2323
npm run style-lint
2424
25-
test-frontend:
25+
test-skore-ui:
2626
runs-on: ubuntu-latest
27-
needs: lint-frontend
27+
needs: lint-skore-ui
2828
steps:
2929
- uses: actions/checkout@v4
3030
- uses: actions/setup-node@v4
3131
with:
3232
node-version: '20'
3333
cache: 'npm'
34-
cache-dependency-path: frontend/package-lock.json
35-
- name: Test frontend
34+
cache-dependency-path: skore-ui/package-lock.json
35+
- name: Test skore-ui
3636
run: |
37-
cd frontend
37+
cd skore-ui
3838
3939
npm install
4040
npm run test:unit:coverage
4141
- name: Report coverage
4242
if: always()
4343
uses: davelosert/vitest-coverage-report-action@v2
4444
with:
45-
working-directory: ./frontend
45+
working-directory: ./skore-ui
4646
pr-number: ${{ github.event.number }}
4747

48-
build-frontend:
48+
build-skore-ui:
4949
runs-on: ubuntu-latest
50-
needs: test-frontend
50+
needs: test-skore-ui
5151
steps:
5252
- uses: actions/checkout@v4
5353
- uses: actions/setup-node@v4
5454
with:
5555
node-version: '20'
5656
cache: 'npm'
57-
cache-dependency-path: frontend/package-lock.json
58-
- name: Build frontend
57+
cache-dependency-path: skore-ui/package-lock.json
58+
- name: Build skore-ui
5959
shell: bash
6060
run: |
61-
cd frontend
61+
cd skore-ui
6262
6363
npm install
6464
npm run build

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ repos:
2828
hooks:
2929
- id: tsc
3030
language: node
31-
name: Use vue-tsc to typecheck frontend code.
32-
entry: bash -c "cd frontend && npm run type-check"
33-
files: ^frontend/
31+
name: Use vue-tsc to typecheck skore-ui code.
32+
entry: bash -c "cd skore-ui && npm run type-check"
33+
files: ^skore-ui/
3434
- id: eslint
3535
language: node
36-
name: Use eslint to lint frontend code.
37-
entry: bash -c "cd frontend && npm run lint"
38-
files: ^frontend/
36+
name: Use eslint to lint skore-ui code.
37+
entry: bash -c "cd skore-ui && npm run lint"
38+
files: ^skore-ui/
3939
- id: prettier
4040
language: node
41-
name: Use prettier to format frontend code.
42-
entry: bash -c "cd frontend && npm run format"
43-
files: ^frontend/
41+
name: Use prettier to format skore-ui code.
42+
entry: bash -c "cd skore-ui && npm run format"
43+
files: ^skore-ui/
4444
- id: stylelint
4545
language: node
4646
name: Use stylelint to lint CSS.
47-
entry: bash -c "cd frontend && npm run style-lint"
48-
files: ^frontend/
47+
entry: bash -c "cd skore-ui && npm run style-lint"
48+
files: ^skore-ui/
4949

5050
exclude: fixtures/

CONTRIBUTING.md

Lines changed: 10 additions & 10 deletions

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ serve-ui:
3333
--port 22140 \
3434
--timeout-graceful-shutdown 0
3535

36-
build-frontend:
36+
build-skore-ui:
3737
# cleanup
38-
rm -rf frontend/dist
38+
rm -rf skore-ui/dist
3939
rm -rf src/skore/ui/static
4040
# build
4141
(\
42-
cd frontend;\
42+
cd skore-ui;\
4343
npm install;\
4444
npm run build;\
4545
npm run build:lib -- --emptyOutDir false;\
4646
)
4747
# move
48-
mv frontend/dist/ src/skore/ui/static
48+
mv skore-ui/dist/ src/skore/ui/static

README.md

Lines changed: 1 addition & 1 deletion
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)