-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3030020
Showing
56 changed files
with
8,912 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_PETSTORE_URL=https://localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_PETSTORE_URL=https://petstore.production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_PETSTORE_URL=https://petstore.test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es2020": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:solid/recommended", | ||
"plugin:solid/typescript", | ||
], | ||
"overrides": [ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"files": [ | ||
".eslintrc.{js,cjs}" | ||
], | ||
"parserOptions": { | ||
"sourceType": "script" | ||
} | ||
} | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"solid" | ||
], | ||
"rules": { | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
node16: | ||
name: Node 16 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: checkout node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
- run: npm install -g pnpm@latest | ||
- run: pnpm install | ||
- run: pnpm run build | ||
- run: TZ=Europe/Zurich pnpm test -- --coverage | ||
node18: | ||
name: Node 18 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: checkout node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
- run: npm install -g pnpm@latest | ||
- run: pnpm install | ||
- run: pnpm run build | ||
- run: TZ=Europe/Zurich pnpm test -- --coverage | ||
node20: | ||
name: Node 20 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: checkout node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- run: npm install -g pnpm@latest | ||
- run: pnpm install | ||
- run: pnpm run build | ||
- run: TZ=Europe/Zurich pnpm test -- --coverage | ||
- name: coveralls.io | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: sonarcloud.io | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# solid-petstore | ||
|
||
[![CI](https://github.com/chubbyts/solid-petstore/workflows/CI/badge.svg?branch=master)](https://github.com/chubbyts/solid-petstore/actions?query=workflow%3ACI) | ||
[![Coverage Status](https://coveralls.io/repos/github/chubbyts/solid-petstore/badge.svg?branch=master)](https://coveralls.io/github/chubbyts/solid-petstore?branch=master) | ||
|
||
[![bugs](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=bugs)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
[![code_smells](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=code_smells)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
[![coverage](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=coverage)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
[![duplicated_lines_density](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
[![ncloc](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=ncloc)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
[![sqale_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
[![alert_status](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=alert_status)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
[![reliability_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
[![security_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=security_rating)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
[![sqale_index](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=sqale_index)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
[![vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=chubbyts_solid-petstore&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=chubbyts_solid-petstore) | ||
|
||
## Description | ||
|
||
This is a solidjs frontend for the petstore skeleton. | ||
|
||
## Scripts | ||
|
||
### Compiles and hot-reloads for development | ||
``` | ||
pnpm start | ||
``` | ||
|
||
### Compiles and minifies for production | ||
``` | ||
pnpm build | ||
``` | ||
|
||
### Run your unit tests | ||
``` | ||
pnpm test | ||
``` | ||
|
||
## Copyright | ||
|
||
2024 Dominik Zogg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite + Solid + TS</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"name": "solid-petstore", | ||
"type": "module", | ||
"version": "1.0.0", | ||
"description": "A skeleton solidjs app for the petstore api.", | ||
"keywords": [ | ||
"chubbyts", | ||
"skleton", | ||
"solid" | ||
], | ||
"author": "Dominik Zogg", | ||
"license": "MIT", | ||
"repository": "chubbyts/solid-petstore", | ||
"scripts": { | ||
"build": "tsc && vite build", | ||
"cs-fix": "prettier --write src tests", | ||
"cs": "prettier --check src tests", | ||
"develop": "vite", | ||
"lint-fix": "eslint src tests --fix", | ||
"lint": "eslint src tests", | ||
"start": "pnpm i && pnpm cs-fix && pnpm develop", | ||
"test": "vitest" | ||
}, | ||
"dependencies": { | ||
"@chubbyts/chubbyts-throwable-to-error": "^1.2.1", | ||
"@solidjs/router": "^0.12.4", | ||
"autoprefixer": "^10.4.17", | ||
"date-fns": "^3.3.1", | ||
"i": "^0.3.7", | ||
"postcss": "^8.4.35", | ||
"qs": "^6.11.2", | ||
"solid-js": "^1.8.15", | ||
"tailwindcss": "^3.4.1", | ||
"zod": "^3.22.4" | ||
}, | ||
"devDependencies": { | ||
"@solidjs/testing-library": "^0.8.6", | ||
"@testing-library/jest-dom": "^6.4.2", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/node": "^20.11.20", | ||
"@types/prettier": "^2.7.3", | ||
"@types/qs": "^6.9.12", | ||
"@typescript-eslint/eslint-plugin": "^7.1.0", | ||
"@typescript-eslint/parser": "^7.1.0", | ||
"@vitest/coverage-v8": "^1.3.1", | ||
"cross-fetch": "^4.0.0", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-solid": "^0.13.1", | ||
"fetch-mock": "^9.11.0", | ||
"jsdom": "^24.0.0", | ||
"prettier": "^2.8.8", | ||
"typescript": "^5.2.2", | ||
"vite": "^5.1.4", | ||
"vite-plugin-solid": "^2.10.1", | ||
"vitest": "^1.3.1" | ||
}, | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"prettier": { | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} | ||
} |
Oops, something went wrong.