Skip to content

Commit

Permalink
Template V2 (#86)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Utar94 authored Apr 23, 2024
1 parent 75482de commit 03df889
Show file tree
Hide file tree
Showing 174 changed files with 6,175 additions and 8,486 deletions.
3 changes: 3 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_APP_API_BASE_URL=
VITE_APP_ENABLE_GRAPHQL=true
VITE_APP_ENABLE_OPENAPI=true
15 changes: 5 additions & 10 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/eslint-config-typescript", "@vue/eslint-config-prettier/skip-formatting"],
parserOptions: {
ecmaVersion: 'latest'
}
}
ecmaVersion: "latest",
},
};
28 changes: 21 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,30 @@ name: Build Vue3 Template
on:
push:
branches:
- dev
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
name: Build Vue3 Template
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: |
npm ci
npm run build
npm run test
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install dependencies
run: npm clean-install

- name: Build for Production
run: npm run build

- name: Run Tests & Coverage
run: npm run test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ coverage
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
"recommendations": ["Vue.volar", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Logitar
Copyright (c) 2024 Logitar

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,44 @@ npm run dev
npm run build
```

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

```sh
npm run test:unit
npm run preview
```

### Run Unit Tests and Code Coverage with [Vitest](https://vitest.dev/)

```sh
npm run test
```

### Run Unit Tests with Vitest

```sh
npm run test:dev
```

### Build the Application Without Type Checking for Production

```sh
npm run build-only
```

### Type Check the Application Code Without Building

```sh
npm run type-check
```

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

```sh
npm run lint
```

### Format with [Prettier](https://prettier.io/)

```sh
npm run format
```
11 changes: 10 additions & 1 deletion env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
/// <reference types="vite/client" />
declare const VITE_APP_VERSION: string;
interface ImportMetaEnv {
readonly VITE_APP_API_BASE_URL?: string;
readonly VITE_APP_ENABLE_GRAPHQL?: string;
readonly VITE_APP_ENABLE_OPENAPI?: string;
readonly VITE_APP_VERSION: string;
}

interface ImportMeta {
readonly env: ImportMetaEnv;
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
Loading

0 comments on commit 03df889

Please sign in to comment.