-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: switch to pnpm * chore: version * fix: lockfile
- Loading branch information
1 parent
14d457e
commit 0af1f9e
Showing
16 changed files
with
7,963 additions
and
8,692 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Setup PNPM with Dependencies | ||
description: Reusable composition of setup-node, cache, and pnpm install actions | ||
inputs: | ||
nodejs-version: | ||
description: 'Version of NodeJS to use (ex: 20.16.0)' | ||
default: '20.16.0' | ||
force-install: | ||
description: When 'true', pnpm install will be executed regardless of a cache hit | ||
required: false | ||
default: 'false' | ||
frozen-lockfile: | ||
description: When false, pnpm install will use the --no-frozen-lockfile flag | ||
required: false | ||
default: 'true' | ||
outputs: | ||
cache-hit: | ||
description: Whether or not there was a cache hit | ||
value: ${{ steps.dependency-cache.outputs.cache-hit }} | ||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: get Node version | ||
id: node-version | ||
shell: bash | ||
run: | | ||
voltaNodeVersion=$(cat package.json|jq -r ".volta.node") | ||
if [[ $voltaNodeVersion == null ]]; then | ||
voltaNodeVersion="${{ inputs.nodejs-version }}" | ||
fi | ||
packageManagerVersion=$(cat package.json|jq -r ".packageManager") | ||
if [[ $packageManagerVersion == null ]]; then | ||
packageManagerVersion="9.7.0" | ||
fi | ||
echo "node-version=${voltaNodeVersion}">> $GITHUB_OUTPUT | ||
echo "package-manager-version=${packageManagerVersion}">> $GITHUB_OUTPUT | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ steps.node-version.outputs.node-version }} | ||
|
||
- name: Install PNPM | ||
shell: bash | ||
run: | | ||
npm i -g ${{ steps.node-version.outputs.package-manager-version }} | ||
pnpm --version | ||
- name: Dependency Cache | ||
id: dependency-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ steps.node-version.outputs.package-manager-version }}-${{ steps.node-version.outputs.node-version }}-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
|
||
- name: Install Dependencies | ||
if: ${{ inputs.force-install == 'true' || steps.dependency-cache.outputs.cache-hit != 'true' }} | ||
shell: bash | ||
run: pnpm i${{ inputs.frozen-lockfile == 'false' && ' --no-frozen-lockfile' || '' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false | ||
auto-install-peers=true | ||
side-effects-cache=false # Ensure the postinstall script of the lefthook package is executed and hooks are installed | ||
manage-package-manager-versions=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,14 +24,14 @@ | |
"access": "public" | ||
}, | ||
"scripts": { | ||
"dev": "yarn generate && USE_SANDBOX=true vite", | ||
"build": "yarn delete:generated && yarn stylelint && yarn lint && yarn build:components", | ||
"build:components": "yarn generate && yarn typecheck && vite build && rimraf ./dist/style.css && vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly && tsc-alias -p './tsconfig.build.json'", | ||
"build:visualize": "yarn generate && cross-env BUILD_VISUALIZER=true vite build -m production", | ||
"generate": "yarn delete:generated && npx --yes tsx --tsconfig './scripts/tsconfig.json' './scripts/generate.ts' && yarn fix:generated", | ||
"update-component-list": "npx --yes tsx --tsconfig './scripts/tsconfig.json' './scripts/component-list.ts' && yarn fix:generated", | ||
"dev": "pnpm generate && USE_SANDBOX=true vite", | ||
"build": "pnpm delete:generated && pnpm stylelint && pnpm lint && pnpm build:components", | ||
"build:components": "pnpm generate && pnpm typecheck && vite build && rimraf ./dist/style.css && vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly && tsc-alias -p './tsconfig.build.json'", | ||
"build:visualize": "pnpm generate && cross-env BUILD_VISUALIZER=true vite build -m production", | ||
"generate": "pnpm delete:generated && npx --yes tsx --tsconfig './scripts/tsconfig.json' './scripts/generate.ts' && pnpm fix:generated", | ||
"update-component-list": "npx --yes tsx --tsconfig './scripts/tsconfig.json' './scripts/component-list.ts' && pnpm fix:generated", | ||
"delete:generated": "rimraf './src/components' && rimraf './dist'", | ||
"build:sandbox": "yarn generate && yarn typecheck && cross-env USE_SANDBOX=true vite build", | ||
"build:sandbox": "pnpm generate && pnpm typecheck && cross-env USE_SANDBOX=true vite build", | ||
"preview:sandbox": "cross-env USE_SANDBOX=true vite preview", | ||
"test": "cross-env FORCE_COLOR=1 vitest run", | ||
"test:open": "vitest --ui", | ||
|
@@ -42,7 +42,7 @@ | |
"stylelint": "stylelint './src/**/*.{css,scss,vue}'", | ||
"stylelint:fix": "stylelint './src/**/*.{css,scss,vue}' --fix", | ||
"stylelint:fix:generated": "stylelint './src/components/**/*.vue' --fix", | ||
"fix:generated": "yarn lint:fix:generated && yarn stylelint:fix:generated", | ||
"fix:generated": "pnpm lint:fix:generated && pnpm stylelint:fix:generated", | ||
"semantic-release": "semantic-release", | ||
"commit": "cz" | ||
}, | ||
|
@@ -145,12 +145,13 @@ | |
"@semantic-release/github" | ||
] | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=18.17.0" | ||
"node": ">=18.17.0", | ||
"pnpm": ">=9.7.0" | ||
}, | ||
"volta": { | ||
"node": "20.16.0", | ||
"yarn": "1.22.22" | ||
"node": "20.16.0" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
|
Oops, something went wrong.