build: switch from yarn to pnpm

This commit is contained in:
lstoeferle 2024-02-24 22:49:22 +01:00
parent 783b268e42
commit 6cdb293d6d
6 changed files with 3550 additions and 3079 deletions

91
.gitignore vendored
View File

@ -1,5 +1,5 @@
# Created by https://www.toptal.com/developers/gitignore/api/vue,node,macos,windows,linux,vscode,intellij+all
# Edit at https://www.toptal.com/developers/gitignore?templates=vue,node,macos,windows,linux,vscode,intellij+all
# Created by https://www.toptal.com/developers/gitignore/api/vue,node,linux,macos,windows,intellij+all,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=vue,node,linux,macos,windows,intellij+all,visualstudiocode
### Intellij+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
@ -12,6 +12,9 @@
.idea/**/dictionaries
.idea/**/shelf
# AWS User-specific
.idea/**/aws.xml
# Generated files
.idea/**/contentModel.xml
@ -62,6 +65,9 @@ atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# SonarLint plugin
.idea/sonarlint/
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
@ -75,20 +81,13 @@ fabric.properties
.idea/caches/build_file_checksums.ser
### Intellij+all Patch ###
# Ignores the whole .idea folder and all .iml files
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
# Ignore everything but code style settings and run configurations
# that are supposed to be shared within teams.
.idea/
.idea/*
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
*.iml
modules.xml
.idea/misc.xml
*.ipr
# Sonarlint plugin
.idea/sonarlint
!.idea/codeStyles
!.idea/runConfigurations
### Linux ###
*~
@ -134,6 +133,10 @@ Network Trash Folder
Temporary Items
.apdisk
### macOS Patch ###
# iCloud generated files
*.icloud
### Node ###
# Logs
logs
@ -142,6 +145,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@ -178,8 +182,8 @@ build/Release
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
@ -208,9 +212,12 @@ typings/
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env.test
.env*.local
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# parcel-bundler cache (https://parceljs.org/)
.cache
@ -218,6 +225,7 @@ typings/
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
@ -232,6 +240,12 @@ dist
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
@ -247,19 +261,52 @@ dist
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
### vscode ###
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
### Node Patch ###
# Serverless Webpack directories
.webpack/
# Optional stylelint cache
# SvelteKit build / generate output
.svelte-kit
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
### Vue ###
# gitignore template for Vue.js projects
#
# Recommended template: Node.gitignore
# TODO: where does this rule come from?
docs/_book
# TODO: where does this rule come from?
test/
### Windows ###
# Windows thumbnail cache files
Thumbs.db
@ -286,4 +333,4 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk
# End of https://www.toptal.com/developers/gitignore/api/vue,node,macos,windows,linux,vscode,intellij+all
# End of https://www.toptal.com/developers/gitignore/api/vue,node,linux,macos,windows,intellij+all,visualstudiocode

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint
pnpm lint

View File

@ -46,7 +46,7 @@ If you prefer to do it manually with a cleaner git history
```bash
npx degit lstoeferle/vite-vue2-windicss-starter my-vite-vue2-app
cd my-vite-vue2-app
yarn install
pnpm install
```
## Usage
@ -56,7 +56,7 @@ yarn install
Just run and visit [http://localhost:3333](http://localhost:3333)
```bash
yarn dev
pnpm dev
```
### Build
@ -64,7 +64,7 @@ yarn dev
To build the App, run
```bash
yarn build
pnpm build
```
And you will see the generated files in `dist`, which are ready to be served.

View File

@ -4,8 +4,8 @@
"postinstall": "husky install",
"dev": "vite",
"build": "vite build",
"lint": "eslint \"**/*.{vue,ts,js}\"",
"lint:fix": "eslint \"**/*.{vue,ts,js}\" --fix"
"lint": "eslint --ext .vue,.ts,.js",
"lint:fix": "eslint --ext .vue,.ts,.js --fix"
},
"dependencies": {
"@vueuse/core": "^9.13.0",

3475
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

3051
yarn.lock

File diff suppressed because it is too large Load Diff