Skip to content

Commit

Permalink
use workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bastipnt committed Dec 10, 2024
1 parent fa076af commit c1d3bbc
Show file tree
Hide file tree
Showing 27 changed files with 68 additions and 39 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
environment:
name: github-pages
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/frontend
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -57,6 +60,9 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
defaults:
run:
working-directory: packages/frontend
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
Binary file modified bun.lockb
Binary file not shown.
30 changes: 3 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,10 @@
"private": true,
"version": "0.0.0",
"type": "module",
"workspaces": [
"packages/*"
],
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json",
"format": "prettier --write ."
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@skeletonlabs/skeleton": "^2.10.3",
"@skeletonlabs/tw-plugin": "^0.4.0",
"@sveltejs/vite-plugin-svelte": "^5.0.0",
"@tailwindcss/forms": "^0.5.9",
"@tsconfig/svelte": "^5.0.4",
"@types/node": "^22.10.1",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"svelte": "^5.2.7",
"svelte-check": "^4.1.0",
"tailwindcss": "^3.4.16",
"tslib": "^2.8.1",
"typescript": "~5.6.2",
"vite": "^6.0.1"
},
"dependencies": {
"@fingerprintjs/fingerprintjs": "^4.5.1"
}
}
File renamed without changes.
36 changes: 36 additions & 0 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "tracking-survey-frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json",
"format": "prettier --write ."
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@skeletonlabs/skeleton": "^2.10.3",
"@skeletonlabs/tw-plugin": "^0.4.0",
"@sveltejs/vite-plugin-svelte": "^5.0.0",
"@tailwindcss/forms": "^0.5.9",
"@tsconfig/svelte": "^5.0.4",
"@types/node": "^22.10.1",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"svelte": "^5.2.7",
"svelte-check": "^4.1.0",
"tailwindcss": "^3.4.16",
"tslib": "^2.8.1",
"typescript": "~5.6.2",
"vite": "^6.0.1"
},
"dependencies": {
"@fingerprintjs/fingerprintjs": "^4.5.1"
}
}
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions packages/frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"include": [],
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "src/tsconfig.json"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"tsBuildInfoFile": "../node_modules/.tmp/tsconfig.node.tsbuildinfo",
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
Expand Down
10 changes: 10 additions & 0 deletions packages/frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { defineConfig } from "vite";

// https://vite.dev/config/
export default defineConfig({
plugins: [svelte()],
resolve: {
preserveSymlinks: true,
},
});
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"include": [],
"references": [
{
"path": "./tsconfig.node.json"
"path": "packages/frontend/tsconfig.json"
},
{
"path": "src/tsconfig.json"
}
]
}
7 changes: 0 additions & 7 deletions vite.config.ts

This file was deleted.

0 comments on commit c1d3bbc

Please sign in to comment.