Skip to content

Commit 8ab5b3a

Browse files
ht-rndDanko Curlinorozg5
authored
feat!: introduce headless UI architecture
Co-authored-by: Danko Curlin <danko.curlin@t.ht.hr> Co-authored-by: Gabriela Oroz <gabriela.oroz.external@t.ht.hr>
1 parent d765695 commit 8ab5b3a

128 files changed

Lines changed: 17198 additions & 13894 deletions

File tree

Some content is hidden

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

.github/workflows/demo.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Deploy Demo to Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Set up Node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
cache: "npm"
32+
33+
- name: Install Dependencies
34+
run: |
35+
npm ci
36+
cd demo && npm ci
37+
38+
- name: Build Demo
39+
run: |
40+
cd demo && npm run build
41+
42+
- name: Setup Pages
43+
uses: actions/configure-pages@v4
44+
45+
- name: Upload artifact
46+
uses: actions/upload-pages-artifact@v3
47+
with:
48+
path: "./demo/dist"
49+
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Create GitHub Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v4
18+
19+
- name: Install Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20.x
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build
28+
run: npm run build
29+
30+
- name: Extract package version
31+
id: package-version
32+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
33+
34+
- name: Create GitHub Release
35+
uses: marvinpinto/action-automatic-releases@latest
36+
with:
37+
repo_token: ${{ secrets.GITHUB_TOKEN }}
38+
automatic_release_tag: latest
39+
prerelease: false
40+
title: (v${{ steps.package-version.outputs.version }})
41+
files: |
42+
dist/**/*

.gitignore

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
1+
# Dependencies
2+
node_modules/
3+
demo/node_modules/
4+
5+
# Build output
6+
dist/
7+
demo/dist/
8+
9+
# IDE
10+
.idea/
11+
.vscode/
12+
*.swp
13+
*.swo
14+
15+
# Testing
16+
coverage/
17+
18+
# OS
19+
.DS_Store
20+
Thumbs.db
21+
122
# Logs
2-
logs
323
*.log
424
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
925

10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
14-
coverage
15-
support
26+
# Environment
27+
.env
28+
.env.local
29+
.env.*.local
1630

17-
# Editor directories and files
18-
.vscode/*
19-
!.vscode/extensions.json
20-
.idea
21-
.DS_Store
22-
*.suo
23-
*.ntvs*
24-
*.njsproj
25-
*.sln
26-
*.sw?
31+
# TypeScript
32+
*.tsbuildinfo

0 commit comments

Comments
 (0)