Remove Yarn, wrap into Electron app
This commit is contained in:
parent
67565e6296
commit
bd627abca8
9 changed files with 19798 additions and 9280 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,3 +1,6 @@
|
|||
# Dist electron
|
||||
dist-electron
|
||||
|
||||
# Nuxt dev/build outputs
|
||||
.output
|
||||
.data
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
yarn validate
|
||||
npm run validate
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
yarn validate
|
||||
npm run validate
|
||||
|
|
|
|||
|
|
@ -1,35 +1,45 @@
|
|||
{
|
||||
"extends": [
|
||||
"stylelint-config-standard-scss",
|
||||
"stylelint-config-sass-guidelines",
|
||||
"stylelint-config-idiomatic-order",
|
||||
"stylelint-config-recommended-vue"
|
||||
],
|
||||
"files": ["**/*.css", "**/*.scss"],
|
||||
"ignoreFiles": [
|
||||
"**/vendor/*.css",
|
||||
"**/vendor/**/*.css",
|
||||
"**/vendor/*.scss",
|
||||
"**/vendor/**/*.scss",
|
||||
"**/vendor/*.sass",
|
||||
"**/vendor/**/*.sass",
|
||||
"**/vendor/*.less",
|
||||
"**/vendor/**/*.less"
|
||||
],
|
||||
"rules": {
|
||||
"declaration-property-value-no-unknown": true,
|
||||
"selector-max-id": null,
|
||||
"color-no-invalid-hex": true,
|
||||
"order/properties-alphabetical-order": null,
|
||||
"max-nesting-depth": 5,
|
||||
"selector-max-compound-selectors": 5,
|
||||
"declaration-colon-newline-after": null,
|
||||
"value-list-comma-newline-after": null,
|
||||
"scss/double-slash-comment-empty-line-before": [
|
||||
"always",
|
||||
{
|
||||
"ignore": ["between-comments", "stylelint-commands", "inside-block"]
|
||||
}
|
||||
]
|
||||
}
|
||||
"extends": [
|
||||
"stylelint-config-standard-scss",
|
||||
"stylelint-config-sass-guidelines",
|
||||
"stylelint-config-idiomatic-order"
|
||||
],
|
||||
"plugins": [
|
||||
"stylelint-scss"
|
||||
],
|
||||
"files": [
|
||||
"**/*.css",
|
||||
"**/*.scss"
|
||||
],
|
||||
"ignoreFiles": [
|
||||
"**/vendor/*.css",
|
||||
"**/vendor/**/*.css",
|
||||
"**/vendor/*.scss",
|
||||
"**/vendor/**/*.scss",
|
||||
"**/vendor/*.sass",
|
||||
"**/vendor/**/*.sass",
|
||||
"**/vendor/*.less",
|
||||
"**/vendor/**/*.less"
|
||||
],
|
||||
"customSyntax": "postcss-scss",
|
||||
"rules": {
|
||||
"declaration-property-value-no-unknown": true,
|
||||
"selector-max-id": null,
|
||||
"color-no-invalid-hex": true,
|
||||
"order/properties-alphabetical-order": null,
|
||||
"max-nesting-depth": 5,
|
||||
"selector-max-compound-selectors": 5,
|
||||
"declaration-colon-newline-after": null,
|
||||
"value-list-comma-newline-after": null,
|
||||
"scss/double-slash-comment-empty-line-before": [
|
||||
"always",
|
||||
{
|
||||
"ignore": [
|
||||
"between-comments",
|
||||
"stylelint-commands",
|
||||
"inside-block"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
5
electron/main.ts
Executable file
5
electron/main.ts
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
import { app, BrowserWindow } from "electron";
|
||||
|
||||
app.whenReady().then(() => {
|
||||
new BrowserWindow().loadURL(String(process.env.VITE_DEV_SERVER_URL));
|
||||
});
|
||||
|
|
@ -2,6 +2,15 @@ import { resolve } from "path";
|
|||
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
modules: ["nuxt-electron"],
|
||||
electron: {
|
||||
build: [
|
||||
{
|
||||
// Main-Process entry file of the Electron App.
|
||||
entry: "electron/main.ts",
|
||||
},
|
||||
],
|
||||
},
|
||||
devtools: { enabled: false },
|
||||
app: {
|
||||
// Global page headers: https://go.nuxtjs.dev/config-head
|
||||
|
|
|
|||
19718
package-lock.json
generated
Executable file
19718
package-lock.json
generated
Executable file
File diff suppressed because it is too large
Load diff
32
package.json
Normal file → Executable file
32
package.json
Normal file → Executable file
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "nuxt-app",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "dist-electron/main.js",
|
||||
"scripts": {
|
||||
"build": "nuxt build",
|
||||
"dev": "nuxt dev",
|
||||
|
|
@ -10,19 +10,18 @@
|
|||
"postinstall": "nuxt prepare",
|
||||
"lint:js": "eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore .",
|
||||
"lint:style": "node ./node_modules/.bin/stylelint --config './.stylelintrc.json' --max-warnings 0 \"static/**/*.{css,scss,sass,html,vue}\" --ignore-path .gitignore",
|
||||
"lint": "yarn run lint:js && yarn run lint:style",
|
||||
"lint:fix": "yarn run lint:js --fix && yarn run lint:style --fix",
|
||||
"lint": "npm run lint:js && npm run lint:style",
|
||||
"lint:fix": "npm run lint:js --fix && npm run lint:style --fix",
|
||||
"validate": "npm-run-all --parallel lint:js lint:style",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@capacitor/cli": "^5.5.0",
|
||||
"@capacitor/core": "^5.5.0",
|
||||
"@fortawesome/fontawesome-svg-core": "latest",
|
||||
"@fortawesome/free-brands-svg-icons": "latest",
|
||||
"@fortawesome/free-regular-svg-icons": "latest",
|
||||
"@fortawesome/free-solid-svg-icons": "latest",
|
||||
"@fortawesome/vue-fontawesome": "latest-3",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.5.1",
|
||||
"@fortawesome/free-regular-svg-icons": "^6.5.1",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
||||
"@fortawesome/vue-fontawesome": "^3.0.5",
|
||||
"@nuxt/devtools": "^1.0.0-beta.1",
|
||||
"@nuxtjs/eslint-config-typescript": "latest",
|
||||
"@popperjs/core": "^2.11.8",
|
||||
|
|
@ -32,6 +31,8 @@
|
|||
"@vue/eslint-config-typescript": "^12.0.0",
|
||||
"bootstrap": "^5.3.2",
|
||||
"dompurify": "^3.0.6",
|
||||
"electron": "^28.1.1",
|
||||
"electron-builder": "^24.9.1",
|
||||
"eslint": "latest",
|
||||
"eslint-config-prettier": "latest",
|
||||
"eslint-plugin-nuxt": "latest",
|
||||
|
|
@ -41,18 +42,21 @@
|
|||
"konami-code-js": "^0.8.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"nuxt": "^3.7.4",
|
||||
"nuxt-electron": "^0.7.0",
|
||||
"postcss": "^8.4.31",
|
||||
"postcss-html": "^1.5.0",
|
||||
"prettier": "latest",
|
||||
"sass": "latest",
|
||||
"stylelint": "latest",
|
||||
"stylelint-config-idiomatic-order": "https://github.com/ream88/stylelint-config-idiomatic-order",
|
||||
"stylelint-config-recommended-vue": "^1.5.0",
|
||||
"stylelint-config-sass-guidelines": "latest",
|
||||
"stylelint-config-standard-scss": "latest",
|
||||
"stylelint": "^15.11.0",
|
||||
"stylelint-config-idiomatic-order": "github:ream88/stylelint-config-idiomatic-order",
|
||||
"stylelint-config-sass-guidelines": "^10.0.0",
|
||||
"stylelint-config-standard-scss": "^11.1.0",
|
||||
"stylelint-scss": "^5.3.2",
|
||||
"sweetalert2": "^11.7.32",
|
||||
"typescript": "latest",
|
||||
"typescript": ">=4.3.5 <5.3.0",
|
||||
"vite": "^4.4.11",
|
||||
"vite-plugin-electron": "^0.15.5",
|
||||
"vite-plugin-electron-renderer": "^0.14.5",
|
||||
"vue": "^3.3.4",
|
||||
"vue-router": "^4.2.5"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue