diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..668244f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: ๐Ÿ”จ Build + +on: + push: + branches: + - master + tags: + - v* + pull_request: + branches: + - master + +jobs: + build: + name: App + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + + - name: Build App + run: | + yarn install --frozen-lockfile + yarn build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..89bdaf2 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,26 @@ +name: ๐Ÿ“ Lint + +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + frontend: + name: App + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: setup node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + + - name: Install Dependencies and Check Formatting + run: | + yarn install --frozen-lockfile + yarn lint diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..293197c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,32 @@ +name: ๐Ÿงช Tests + +on: + push: + branches: + - master + tags: + - v* + pull_request: + branches: + - master + +jobs: + frontend: + name: App + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + + - name: Install NPM Dependencies + run: yarn install --frozen-lockfile + + - name: Cypress run + uses: cypress-io/github-action@v5 + with: + start: yarn dev diff --git a/package.json b/package.json index b066c88..7868119 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,7 @@ "ts-node": "^10.9.1", "tslib": "^2.4.0", "typescript": "^4.6.4", - "vite": "^3.1.0", - "vite-plugin-static-copy": "^0.17.0" + "vite": "^3.1.0" }, "dependencies": { "@shoelace-style/shoelace": "^2.5.2", diff --git a/vite.config.ts b/vite.config.ts index 81d15f0..693c463 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,8 +3,6 @@ import { svelte } from "@sveltejs/vite-plugin-svelte"; import { fileURLToPath } from "url"; import { resolve } from "path"; import basicSsl from "@vitejs/plugin-basic-ssl"; -import { viteStaticCopy } from "vite-plugin-static-copy"; -import { normalizePath } from "vite"; const root = resolve(__dirname, "src"); const outDir = resolve(__dirname, "dist"); @@ -13,23 +11,7 @@ const outDir = resolve(__dirname, "dist"); export default defineConfig({ base: "./", root, - plugins: [ - viteStaticCopy({ - targets: [ - { - src: normalizePath( - resolve( - __dirname, - "node_modules/@shoelace-style/shoelace/dist/assets/", - ), - ), - dest: "/dist/shoelace/", - }, - ], - }), - basicSsl(), - svelte(), - ], + plugins: [basicSsl(), svelte()], resolve: { alias: { "@components": fileURLToPath(