Skip to content

Commit

Permalink
CI: Improves npm install performances (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 authored Mar 14, 2024
2 parents fff2466 + 023a15b commit 0fbe13f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
node-version: 18.12.1
cache: npm
- name: Install
run: npm ci
run: npm ci --omit=dev --prefer-offline
- name: Build
run: npm run build
- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
node-version: 18.12.1
cache: npm
- name: Install
run: npm ci
run: npm ci --prefer-offline
- name: Run tests
run: npm run test:unit
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
},
"type": "module",
"scripts": {
"build": "run-p type-check \"build-only {@}\" --",
"build": "vite build",
"test:unit": "vitest",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/",
Expand All @@ -22,6 +21,9 @@
},
"dependencies": {
"vite-plugin-css-injected-by-js": "^3.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"@tsconfig/node20": "^20.1.2",
"@vue/tsconfig": "^0.5.1",
"vue": "^3.4.21"
},
"devDependencies": {
Expand All @@ -34,14 +36,11 @@
"@storybook/test": "^8.0.0",
"@storybook/vue3": "^8.0.0",
"@storybook/vue3-vite": "^8.0.0",
"@tsconfig/node20": "^20.1.2",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.11.25",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.4.4",
"@vue/tsconfig": "^0.5.1",
"eslint": "^8.49.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-vue": "^9.17.0",
Expand Down

0 comments on commit 0fbe13f

Please sign in to comment.