Skip to content

Commit 9795bd9

Browse files
feat(templates): support vite for mobile-client
1 parent f738f84 commit 9795bd9

67 files changed

Lines changed: 453 additions & 736 deletions

Some content is hidden

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

.lintstagedrc.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"*.@(ts|tsx|js|jsx)": ["npm run lint", "npm run format"],
3-
"*.json": ["npm run format"],
4-
"*.*rc": ["npm run format -- --parser json"]
2+
"./!(templates)/**/*.@(ts|tsx|js|jsx)": ["npm run lint"],
3+
"*.@(ts|tsx|js|jsx)": ["npm run format"],
4+
".json": ["npm run format"],
5+
".*rc": ["npm run format -- --parser json"]
56
}

templates/mantis-todo/.eslintrc.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
},
3636
{
3737
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
38-
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
39-
"env": {
40-
"jest": true
41-
},
38+
"extends": ["plugin:vitest/recommended"],
4239
"rules": {}
4340
}
4441
]

templates/mantis-todo/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ npm-debug.log
3333
yarn-error.log
3434
testem.log
3535
/typings
36+
vite.config.ts.timestamp-*
3637

3738
# System Files
3839
.DS_Store

templates/mantis-todo/.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"recommendations": [
33
"nrwl.angular-console",
44
"esbenp.prettier-vscode",
5-
"firsttris.vscode-jest-runner",
65
"dbaeumer.vscode-eslint",
76
"angular.ng-template",
8-
"ionic.ionic"
7+
"ionic.ionic",
8+
"vitest.explorer"
99
]
1010
}

templates/mantis-todo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ We recommend the following extensions:
110110
- [Angular Language Service](https://marketplace.visualstudio.com/items?itemName=Angular.ng-template): Provides a rich editing experience for Angular templates, both inline and external templates.
111111
- [Eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint): Integrates [ESLint](https://eslint.org/) into VS Code.
112112
- [Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode): Integrates [Prettier](https://prettier.io/) into VS Code.
113-
- [Jest Runner](https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner): Makes it easy to debug Jest tests within VS Code.
113+
- [Vitest](https://marketplace.visualstudio.com/items?itemName=vitest.explorer): Makes it easy to debug Vitest tests within VS Code.

templates/mantis-todo/_gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ npm-debug.log
3333
yarn-error.log
3434
testem.log
3535
/typings
36+
vite.config.ts.timestamp-*
3637

3738
# System Files
3839
.DS_Store
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_PUBLIC_BACKEND_URL="http://localhost:4200"

templates/mantis-todo/apps/mobile-client/.eslintrc.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,7 @@
2424
"prefix": "app",
2525
"style": "kebab-case"
2626
}
27-
],
28-
"@angular-eslint/component-class-suffix": [
29-
"error",
30-
{
31-
"suffixes": ["Page", "Component"]
32-
}
33-
],
34-
"@angular-eslint/no-empty-lifecycle-method": 0,
35-
"@typescript-eslint/no-empty-function": 0
27+
]
3628
}
3729
},
3830
{

templates/mantis-todo/apps/mobile-client/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

templates/mantis-todo/apps/mobile-client/.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import CopyPlugin from 'copy-webpack-plugin';
44
const config: StorybookConfig = {
55
stories: ['../src/app/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
66
addons: ['@storybook/addon-essentials', '@storybook/addon-interactions'],
7-
staticDirs: ['../src/assets'],
7+
staticDirs: ['../src/public'],
88
framework: {
99
name: '@storybook/angular',
1010
options: {},

0 commit comments

Comments
 (0)