Skip to content

Commit 7156578

Browse files
authored
Merge pull request #8 from DevExpress-Examples/Vue
Update the Vue example
2 parents 678a452 + 42e19f9 commit 7156578

26 files changed

Lines changed: 9186 additions & 0 deletions

Vue/.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
!.vscode/settings.json
24+
.idea
25+
*.suo
26+
*.ntvs*
27+
*.njsproj
28+
*.sln
29+
*.sw?

Vue/.prettierrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"endOfLine": "auto",
3+
"embeddedLanguageFormatting": "auto"
4+
}

Vue/.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3+
}

Vue/.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": true
4+
}
5+
}

Vue/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Vue 3 + TypeScript + Vite + DevExtreme
2+
3+
For more information about this example check the [Readme](../README.md).
4+
5+
## Build and Lint
6+
7+
Install dependencies:
8+
```sh
9+
npm install
10+
```
11+
12+
Build the production bundle:
13+
```sh
14+
npm run build
15+
```
16+
17+
Run the linter:
18+
```sh
19+
npm run lint
20+
```
21+
22+
Dev server to preview locally:
23+
```sh
24+
npm run dev
25+
```
26+
27+
## Further help
28+
29+
You can learn more about Vue in the [Vue documentation](https://vuejs.org/guide/introduction.html).
30+
You can learn more about Vite in the [Vite documentation](https://vite.dev/).
31+
You can learn more about DevExtreme Vue components in the [DevExtreme Vue documentation](https://js.devexpress.com/Vue/).
32+
33+
To get more help with DevExtreme, submit a ticket through the [Support Center](https://supportcenter.devexpress.com/ticket/create).

Vue/env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

Vue/eslint.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import spellCheck from 'eslint-config-devextreme/spell-check';
2+
import vueConfig from 'eslint-config-devextreme/vue';
3+
import tsParser from '@typescript-eslint/parser';
4+
5+
export default [
6+
{
7+
ignores: ['node_modules/**', 'dist/**', 'eslint.config.js', 'stylelint.config.mjs'],
8+
},
9+
...spellCheck,
10+
...vueConfig,
11+
{
12+
files: ['**/*.vue'],
13+
languageOptions: {
14+
parserOptions: {
15+
parser: tsParser,
16+
},
17+
},
18+
},
19+
];

Vue/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Vite App</title>
8+
</head>
9+
<body class="dx-viewport">
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)