Cleaned up package.json commands and readme.md

This commit is contained in:
Elvanos 2023-08-26 13:39:49 +02:00
parent a50671c3c1
commit 808ddaafc1
2 changed files with 14 additions and 11 deletions

View file

@ -6,6 +6,15 @@ Use Yarn 1.22.19 or stuff is gonna bug out.
Make sure you are running this with Node v16.17.0 ("nvm" is great for these older versions) Make sure you are running this with Node v16.17.0 ("nvm" is great for these older versions)
## Install Quasar CLI for smoothest experience
##### Details found here: https://quasar.dev/start/quasar-cli
##### Ensure that the Yarn global install location is in your PATH after install. (details in article linked above)
```bash
yarn global add @quasar/cli
```
## Install the dependencies and set up the project ## Install the dependencies and set up the project
```bash ```bash
yarn yarn
@ -16,11 +25,6 @@ yarn
quasar dev -m electron quasar dev -m electron
``` ```
### Lint the files manually (you can do this, but like... use an plugin of some kind in your IDE please T_T)
```bash
yarn lint
```
### Build the app for production ### Build the app for production
```bash ```bash
quasar build quasar build
@ -28,19 +32,19 @@ quasar build
### Testing: ### Testing:
##### Unit test - with pretty web-UI #### Unit test - with pretty web-UI
```bash ```bash
test:unit:ui test:unit:ui
``` ```
##### Unit test - without any UI, fully in a terminal #### Unit test - without any UI, fully in a terminal
```bash ```bash
test:unit test:unit
``` ```
##### Component test - via Cypress, pick Electron on the config screen (I suggest turning on the electron dev window first, the test is a bit buggy sometimes) #### Component test - via Cypress, pick Electron on the config screen (I suggest turning on the electron dev window first, the test is a bit buggy sometimes)
```bash ```bash
test:component test:component
``` ```
##### e2e test - via Cypress, pick Electron on the config screen (I suggest turning on the electron dev window first, the test is a bit buggy sometimes) #### e2e test - via Cypress, pick Electron on the config screen (I suggest turning on the electron dev window first, the test is a bit buggy sometimes)
```bash ```bash
test:e2e test:e2e
``` ```

View file

@ -7,8 +7,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"lint": "eslint --ext .js,.ts,.vue ./", "lint": "eslint --ext .js,.ts,.vue ./",
"test": "echo \"See package.json => scripts for available tests.\" && exit 0", "dev:electron": "quasar dev -m electron",
"dev": "quasar dev",
"build": "quasar build", "build": "quasar build",
"test:unit:ui": "vitest --ui", "test:unit:ui": "vitest --ui",
"test:unit": "vitest", "test:unit": "vitest",