Skip to content

Commit

Permalink
chore: upgrade vite to v5
Browse files Browse the repository at this point in the history
for better error tracebacks
  • Loading branch information
netchampfaris committed Feb 3, 2024
1 parent b474ddd commit b28d528
Show file tree
Hide file tree
Showing 6 changed files with 267 additions and 156 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
let fs = require('fs');
let resolveConfig = require('tailwindcss/resolveConfig');
let config = require('./tailwind.config');
let config = require('./tailwind.config.cjs');
let { theme } = resolveConfig(config);

fs.writeFileSync('./tailwind.theme.json', JSON.stringify(theme, null, 2));
7 changes: 4 additions & 3 deletions dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "dashboard",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "yarn generate-theme-config && vite",
"build": "yarn generate-theme-config && vite build --base=/assets/press/dashboard/ && yarn copy-html-entry && yarn copy-html-entry2",
"copy-html-entry": "cp ../press/public/dashboard/index.html ../press/www/dashboard.html",
"copy-html-entry2": "cp ../press/public/dashboard/dashboard-beta.html ../press/www/dashboard-beta.html",
"generate-theme-config": "node ./generateThemeConfig.js",
"generate-theme-config": "node ./generateThemeConfig.cjs",
"test": "vitest",
"coverage": "vitest run --coverage",
"lint": "eslint src"
Expand Down Expand Up @@ -48,7 +49,7 @@
"@tailwindcss/postcss7-compat": "^2.0.2",
"@tailwindcss/typography": "^0.5.1",
"@vitejs/plugin-legacy": "^4.1.1",
"@vitejs/plugin-vue": "^4.2.3",
"@vitejs/plugin-vue": "^5.0.3",
"@vue/compiler-sfc": "^3.1.0",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/test-utils": "^2.0.0-rc.19",
Expand All @@ -67,7 +68,7 @@
"prettier": "^2.5.1",
"prettier-plugin-tailwindcss": "^0.1.8",
"tailwindcss": "^3.2",
"vite": "^4.4.9",
"vite": "^5.0.12",
"vite-plugin-rewrite-all": "^1.0.1",
"vitest": "^0.9.3",
"yorkie": "^2.0.0"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion dashboard/src/components/global/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from 'frappe-ui';
import outsideClickDirective from './outsideClickDirective';

let components = import.meta.globEager('./*.vue'); // To get each component inside this folder
let components = import.meta.glob('./*.vue', { eager: true }); // To get each component inside this folder

let globalFrappeUIComponents = {
Button,
Expand Down
File renamed without changes.
Loading

0 comments on commit b28d528

Please sign in to comment.