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 # 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,macos,windows,linux,vscode,intellij+all # Edit at https://www.toptal.com/developers/gitignore?templates=vue,node,linux,macos,windows,intellij+all,visualstudiocode
### Intellij+all ### ### Intellij+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
@ -12,6 +12,9 @@
.idea/**/dictionaries .idea/**/dictionaries
.idea/**/shelf .idea/**/shelf
# AWS User-specific
.idea/**/aws.xml
# Generated files # Generated files
.idea/**/contentModel.xml .idea/**/contentModel.xml
@ -62,6 +65,9 @@ atlassian-ide-plugin.xml
# Cursive Clojure plugin # Cursive Clojure plugin
.idea/replstate.xml .idea/replstate.xml
# SonarLint plugin
.idea/sonarlint/
# Crashlytics plugin (for Android Studio and IntelliJ) # Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml com_crashlytics_export_strings.xml
crashlytics.properties crashlytics.properties
@ -75,20 +81,13 @@ fabric.properties
.idea/caches/build_file_checksums.ser .idea/caches/build_file_checksums.ser
### Intellij+all Patch ### ### Intellij+all Patch ###
# Ignores the whole .idea folder and all .iml files # Ignore everything but code style settings and run configurations
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360 # that are supposed to be shared within teams.
.idea/ .idea/*
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023 !.idea/codeStyles
!.idea/runConfigurations
*.iml
modules.xml
.idea/misc.xml
*.ipr
# Sonarlint plugin
.idea/sonarlint
### Linux ### ### Linux ###
*~ *~
@ -134,6 +133,10 @@ Network Trash Folder
Temporary Items Temporary Items
.apdisk .apdisk
### macOS Patch ###
# iCloud generated files
*.icloud
### Node ### ### Node ###
# Logs # Logs
logs logs
@ -142,6 +145,7 @@ npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
lerna-debug.log* lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html) # Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@ -178,8 +182,8 @@ build/Release
node_modules/ node_modules/
jspm_packages/ jspm_packages/
# TypeScript v1 declaration files # Snowpack dependency directory (https://snowpack.dev/)
typings/ web_modules/
# TypeScript cache # TypeScript cache
*.tsbuildinfo *.tsbuildinfo
@ -208,9 +212,12 @@ typings/
# Yarn Integrity file # Yarn Integrity file
.yarn-integrity .yarn-integrity
# dotenv environment variables file # dotenv environment variable files
.env.test .env
.env*.local .env.development.local
.env.test.local
.env.production.local
.env.local
# parcel-bundler cache (https://parceljs.org/) # parcel-bundler cache (https://parceljs.org/)
.cache .cache
@ -218,6 +225,7 @@ typings/
# Next.js build output # Next.js build output
.next .next
out
# Nuxt.js build / generate output # Nuxt.js build / generate output
.nuxt .nuxt
@ -232,6 +240,12 @@ dist
# vuepress build output # vuepress build output
.vuepress/dist .vuepress/dist
# vuepress v2.x temp and cache directory
.temp
# Docusaurus cache and generated files
.docusaurus
# Serverless directories # Serverless directories
.serverless/ .serverless/
@ -247,19 +261,52 @@ dist
# Stores VSCode versions used for testing VSCode extensions # Stores VSCode versions used for testing VSCode extensions
.vscode-test .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/*
!.vscode/settings.json !.vscode/settings.json
!.vscode/tasks.json !.vscode/tasks.json
!.vscode/launch.json !.vscode/launch.json
!.vscode/extensions.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 ### ### Vue ###
# gitignore template for Vue.js projects # gitignore template for Vue.js projects
# #
# Recommended template: Node.gitignore # Recommended template: Node.gitignore
# TODO: where does this rule come from?
docs/_book
# TODO: where does this rule come from?
test/
### Windows ### ### Windows ###
# Windows thumbnail cache files # Windows thumbnail cache files
Thumbs.db Thumbs.db
@ -286,4 +333,4 @@ $RECYCLE.BIN/
# Windows shortcuts # Windows shortcuts
*.lnk *.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 #!/bin/sh
. "$(dirname "$0")/_/husky.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 ```bash
npx degit lstoeferle/vite-vue2-windicss-starter my-vite-vue2-app npx degit lstoeferle/vite-vue2-windicss-starter my-vite-vue2-app
cd my-vite-vue2-app cd my-vite-vue2-app
yarn install pnpm install
``` ```
## Usage ## Usage
@ -56,7 +56,7 @@ yarn install
Just run and visit [http://localhost:3333](http://localhost:3333) Just run and visit [http://localhost:3333](http://localhost:3333)
```bash ```bash
yarn dev pnpm dev
``` ```
### Build ### Build
@ -64,7 +64,7 @@ yarn dev
To build the App, run To build the App, run
```bash ```bash
yarn build pnpm build
``` ```
And you will see the generated files in `dist`, which are ready to be served. And you will see the generated files in `dist`, which are ready to be served.

View File

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