adding support and scripts to launch easily in dev

This commit is contained in:
Jean Ouina 2020-05-18 20:40:14 +02:00
parent 0dd50609d8
commit d468d130fe
2 changed files with 4 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "lightcord", "name": "lightcord",
"version": "1.0.0", "version": "0.1.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -4,9 +4,10 @@
"description": "", "description": "",
"main": "dist/launcher.js", "main": "dist/launcher.js",
"scripts": { "scripts": {
"test": "tsc && electron .", "test": "tsc && NODE_OPTIONS.bat && electron .",
"run": "NODE_OPTIONS.bat && electron .", "run": "NODE_OPTIONS.bat && electron .",
"build": "electron-packager . --ignore=\"(distApp|builds|\\.ts)\" --arch=ia32 --win32metadata.ProductName=\"Lightcord\" --win32metadata.CompanyName=\"Lightcord Inc.\" --protocol=discord --platform=\"win32\" --out=builds --icon=app.ico --executable-name=\"Lightcord\" --asar.unpack=*.{node,dll} --overwrite" "build": "electron-packager . --ignore=\"(distApp|builds|\\.ts)\" --arch=ia32 --win32metadata.ProductName=\"Lightcord\" --win32metadata.CompanyName=\"Lightcord Inc.\" --protocol=discord --platform=\"win32\" --out=builds --icon=app.ico --executable-name=\"Lightcord\" --asar.unpack=*.{node,dll} --overwrite",
"devInstall": "npm i -g --arch=ia32 electron@7.1.11 && npm i -g typescript && npm i --save-dev && echo \"Everything is installed. You should be able to do `npm run test` to compile everything and launch.\""
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",