Skip to content

Commit 5f5ea92

Browse files
authored
chore: upgrade project, add Vite, resolve sec advisories (#171)
* chore: upgrade project, add Vite, resolve sec advisories * chore: update project README, replace public dir * chore: replace lodash.uniqueId with nanoid * feat: bump vite * feat: update package.json * feat: sync with [email protected]
1 parent abf93df commit 5f5ea92

14 files changed

+1752
-19272
lines changed

.browserslistrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-prettier/skip-formatting'
10+
],
11+
parserOptions: {
12+
ecmaVersion: 'latest'
13+
}
14+
}

.eslintrc.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Build
3333
uses: actions/setup-node@v4
3434
with:
35-
node-version: 18
35+
node-version-file: ".nvmrc"
3636
cache: "npm"
3737
- run: npm i
3838
- run: npm run build

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v20

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Sample todo app built with the Vue framework.
44
For the accompanying documentation, see
55
[Understanding client-side JavaScript frameworks: Vue tutorials](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks#vue_tutorials).
66

7-
For the live version, see https://mdn.github.io/todo-vue/.
7+
For the live version, see <https://mdn.github.io/todo-vue/>.
88

99
## Getting Started
1010

@@ -17,7 +17,7 @@ npm install
1717
### Compile and hot-reload for development
1818

1919
```bash
20-
npm run serve
20+
npm run dev
2121
```
2222

2323
### Compile and minify for production
@@ -26,15 +26,21 @@ npm run serve
2626
npm run build
2727
```
2828

29-
### Lint and fix files
29+
### Lint files
3030

3131
```bash
3232
npm run lint
3333
```
3434

35+
### Format using Prettier
36+
37+
```bash
38+
npm run format
39+
```
40+
3541
### Customize configuration
3642

37-
See [Configuration Reference](https://cli.vuejs.org/config/).
43+
See [Configuration Reference](https://vuejs.org/guide/essentials/application.html#app-configurations).
3844

3945
## Contributing
4046

babel.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

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>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)