Skip to content

Commit 03df889

Browse files
authored
Template V2 (#86)
* Created a V2 template. * Implemented user sign-in and sign-out. (#82) Co-authored-by: Francis Pion <francis.pion@akinox.com> * Implemented user profile. (#83) Co-authored-by: Francis Pion <francis.pion@akinox.com> * Implemented Todo management. (#84) * Added shared components. * Implemented Todo management. * Added a StatusSelect and fixed build. * Replaced helpers by logitar-js. (#85) * Upgraded logitar-vue3-ui. * Replaced helpers by logitar-js. * Removed V2 references.
1 parent 75482de commit 03df889

File tree

174 files changed

+6175
-8486
lines changed

Some content is hidden

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

174 files changed

+6175
-8486
lines changed

.env.development

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
VITE_APP_API_BASE_URL=
2+
VITE_APP_ENABLE_GRAPHQL=true
3+
VITE_APP_ENABLE_OPENAPI=true

.eslintrc.cjs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
/* eslint-env node */
2-
require('@rushstack/eslint-patch/modern-module-resolution')
2+
require("@rushstack/eslint-patch/modern-module-resolution");
33

44
module.exports = {
55
root: true,
6-
'extends': [
7-
'plugin:vue/vue3-essential',
8-
'eslint:recommended',
9-
'@vue/eslint-config-typescript',
10-
'@vue/eslint-config-prettier/skip-formatting'
11-
],
6+
extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/eslint-config-typescript", "@vue/eslint-config-prettier/skip-formatting"],
127
parserOptions: {
13-
ecmaVersion: 'latest'
14-
}
15-
}
8+
ecmaVersion: "latest",
9+
},
10+
};

.github/workflows/build.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,30 @@ name: Build Vue3 Template
33
on:
44
push:
55
branches:
6-
- dev
6+
- main
7+
pull_request:
8+
branches:
9+
- main
710
workflow_dispatch:
811

912
jobs:
1013
build:
14+
name: Build Vue3 Template
1115
runs-on: ubuntu-latest
12-
1316
steps:
14-
- uses: actions/checkout@v4
15-
- run: |
16-
npm ci
17-
npm run build
18-
npm run test
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node 20
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20.x
24+
25+
- name: Install dependencies
26+
run: npm clean-install
27+
28+
- name: Build for Production
29+
run: npm run build
30+
31+
- name: Run Tests & Coverage
32+
run: npm run test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ coverage
2626
*.njsproj
2727
*.sln
2828
*.sw?
29+
30+
*.tsbuildinfo

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
2+
"recommendations": ["Vue.volar", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
33
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Logitar
3+
Copyright (c) 2024 Logitar
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,44 @@ npm run dev
3939
npm run build
4040
```
4141

42-
### Run Unit Tests with [Vitest](https://vitest.dev/)
42+
### Preview the Last Build from dist
4343

4444
```sh
45-
npm run test:unit
45+
npm run preview
46+
```
47+
48+
### Run Unit Tests and Code Coverage with [Vitest](https://vitest.dev/)
49+
50+
```sh
51+
npm run test
52+
```
53+
54+
### Run Unit Tests with Vitest
55+
56+
```sh
57+
npm run test:dev
58+
```
59+
60+
### Build the Application Without Type Checking for Production
61+
62+
```sh
63+
npm run build-only
64+
```
65+
66+
### Type Check the Application Code Without Building
67+
68+
```sh
69+
npm run type-check
4670
```
4771

4872
### Lint with [ESLint](https://eslint.org/)
4973

5074
```sh
5175
npm run lint
5276
```
77+
78+
### Format with [Prettier](https://prettier.io/)
79+
80+
```sh
81+
npm run format
82+
```

env.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
/// <reference types="vite/client" />
2-
declare const VITE_APP_VERSION: string;
2+
interface ImportMetaEnv {
3+
readonly VITE_APP_API_BASE_URL?: string;
4+
readonly VITE_APP_ENABLE_GRAPHQL?: string;
5+
readonly VITE_APP_ENABLE_OPENAPI?: string;
6+
readonly VITE_APP_VERSION: string;
7+
}
8+
9+
interface ImportMeta {
10+
readonly env: ImportMetaEnv;
11+
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

0 commit comments

Comments
 (0)