Skip to content

Commit

Permalink
Merge pull request #1 from fowwo/vue
Browse files Browse the repository at this point in the history
Integrate Vue
  • Loading branch information
fowwo authored May 24, 2024
2 parents 40b69e4 + 9245036 commit e98255c
Show file tree
Hide file tree
Showing 89 changed files with 6,133 additions and 2,856 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build + Deploy

on:
workflow_call:

permissions:
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Cache
id: cache
uses: actions/cache@v4
with:
path: dist
key: build ${{ hashFiles('dist') }}
- name: Upload artifact
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/upload-pages-artifact@v3
with:
path: dist
outputs:
no-changes: ${{ steps.cache.outputs.cache-hit }}
deploy:
name: Deploy
needs: build
if: needs.build.outputs.no-changes != 'true'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Continuous Integration

permissions:
pages: write
id-token: write

on:
push:
branches: [ main ]

jobs:
test:
name: Test
uses: ./.github/workflows/test.yml
build-and-deploy:
name: Build + Deploy
uses: ./.github/workflows/build-and-deploy.yml
needs: test
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test

on:
workflow_call:
workflow_dispatch:
push:
branches: [ dev ]
pull_request:

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
17 changes: 0 additions & 17 deletions Element/Anchor.js

This file was deleted.

40 changes: 0 additions & 40 deletions Element/Draggable.js

This file was deleted.

63 changes: 0 additions & 63 deletions Element/Element.js

This file was deleted.

18 changes: 0 additions & 18 deletions Element/SVG.js

This file was deleted.

151 changes: 0 additions & 151 deletions Element/State.js

This file was deleted.

Loading

0 comments on commit e98255c

Please sign in to comment.