New launch scripts, basically at this point package.json it just for building but not for running anything

This commit is contained in:
shockrah 2021-01-01 17:14:36 -08:00
parent 430e10e6b6
commit 12e9c07d60
3 changed files with 22 additions and 4 deletions

17
freechat-client/make Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# Script to help build and run this fucking thing because apparantly npm sucks for
# projects that use cli arguments
[[ -z "$1" ]] && echo Options: run - make && exit 0
run() {
./node_modules/electron/dist/electron main.js $@
}
build() {
sh scrips/build-sass.sh build
}
"$@"

View File

@ -584,9 +584,9 @@
"dev": true "dev": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.8",
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
"dev": true, "dev": true,
"optional": true "optional": true
}, },

View File

@ -3,7 +3,8 @@
"version": "0.1.0", "version": "0.1.0",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"start": "sh scripts/build-sass.sh build && electron ." "build": "sh scripts/build-sass.sh build",
"start": "electron . --"
}, },
"dependencies": { "dependencies": {
"argparse": "^2.0.1", "argparse": "^2.0.1",