pack: vutron now uses the vite compiler

This commit is contained in:
leejooy96 committed 2022-10-06 10:26:30 +09:00
1 parent fce96211ba
commit 02b13d8fb7
30 files changed
+2064 -11005

No files matched your search

+18 -40
View File
@@ -1,31 +1,28 @@
{
"name": "vutron",
"version": "1.0.0",
"description": "Quick Start Templates for Vue 3 + Electron",
"main": "./dist/electron/main.js",
"description": "Quick Start Templates for Vite + Vue 3 + Electron",
"main": "dist/main/index.js",
"scripts": {
"build:dir": "node .runner/build/build.mjs && electron-builder --dir",
"build": "node .runner/build/build.mjs && electron-builder",
"build:mac": "node .runner/build/build.mjs && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac",
"build:linux": "node .runner/build/build.mjs && electron-builder --linux",
"build:win": "node .runner/build/build.mjs && electron-builder --windows",
"dev": "node .runner/dev.mjs --ignore-gpu-blacklist",
"pack": "npm run pack:main && npm run pack:renderer",
"pack:main": "node -r dotenv/config webpack --progress --colors --config .runner/webpack.main.mjs dotenv_config_path=.env.pack",
"pack:renderer": "node -r dotenv/config webpack --progress --colors --config .runner/webpack.renderer.mjs dotenv_config_path=.env.pack",
"dev": "NODE_ENV=development vite",
"build": "NODE_ENV=production vite build && electron-builder",
"build:dir": "NODE_ENV=production vite build && electron-builder --dir",
"build:mac": "NODE_ENV=production vite build && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac",
"build:linux": "NODE_ENV=production vite build && electron-builder --linux",
"build:win": "NODE_ENV=production vite build && electron-builder --windows",
"lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src",
"lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src",
"postinstall": "npm run lint:fix && electron-builder install-app-deps"
},
"engines": {
"node": ">=17.1.0"
"node": ">=16.0.0"
},
"author": "jooy2 <jootc.help@gmail.com>",
"license": "MIT",
"dependencies": {
"@electron/remote": "^2.0.8",
"eslint-friendly-formatter": "^4.0.1",
"pinia": "^2.0.22",
"v8-compile-cache": "^2.3.0",
"vue": "^3.2.39",
"vue-i18n": "^9.2.2",
"vue-router": "^4.1.5",
@@ -34,49 +31,30 @@
"devDependencies": {
"@babel/core": "^7.19.1",
"@babel/eslint-parser": "^7.19.1",
"@babel/plugin-syntax-import-assertions": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.19.1",
"@babel/preset-env": "^7.19.1",
"@vitejs/plugin-vue": "^3.1.2",
"@vue/babel-plugin-jsx": "^1.1.1",
"babel-loader": "^8.2.5",
"chalk": "^5.0.1",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.1",
"dotenv": "^16.0.2",
"electron": "^21.0.0",
"electron-builder": "^23.3.3",
"electron-devtools-installer": "^3.2.0",
"eslint": "^8.24.0",
"eslint-config-standard": "^17.0.0",
"eslint-friendly-formatter": "^4.0.1",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-vue": "^9.5.1",
"eslint-webpack-plugin": "^3.2.0",
"fsman": "^1.5.0",
"html-webpack-plugin": "^5.5.0",
"listr": "^0.14.3",
"node-loader": "^2.0.0",
"qsu": "^1.1.0",
"terser-webpack-plugin": "^5.3.6",
"vue-eslint-parser": "^9.1.0",
"vue-html-loader": "^1.2.4",
"vue-loader": "^17.0.0",
"vue-style-loader": "^4.1.3",
"vue-template-compiler": "^2.7.10",
"webpack": "^5.74.0",
"webpack-dev-server": "^4.11.1",
"webpack-hot-middleware": "^2.25.2"
"vite": "^3.1.4",
"vite-plugin-electron": "^0.9.3",
"vue-eslint-parser": "^9.1.0"
},
"build": {
"productName": "Vutron",
"appId": "com.vutron.vutron",
"compression": "maximum",
"directories": {
"output": "dist",
"buildResources": "buildRes"
"buildResources": "buildRes",
"output": "./dist/release/${version}"
},
"files": [
"dist/electron/**/*"
"dist/**/*",
"!dist/release/**/*"
],
"artifactName": "${productName} ${version}.${ext}",
"mac": {