mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
simplify local dev env (#35)
This commit is contained in:
parent
0dfa3339a3
commit
3a0076c86f
@ -14,13 +14,11 @@ In order to achieve those goals Symphony is participating and working in close c
|
|||||||
|
|
||||||
## Run demo:
|
## Run demo:
|
||||||
- npm install
|
- npm install
|
||||||
- on mac: npm run demo:mac
|
- npm run demo
|
||||||
- on windows: npm run demo:win
|
|
||||||
|
|
||||||
## Build Instructions:
|
## Build Instructions:
|
||||||
- to pick up dependencies: npm install
|
- npm install
|
||||||
- to locally run mac version: npm run dev:mac
|
- to run locally: npm run dev
|
||||||
- to locally run windows (64 bit) version: npm run dev:win
|
|
||||||
- to build mac dmg: npm run dist-mac
|
- to build mac dmg: npm run dist-mac
|
||||||
- to build win squirrel installer exe (64 bit): npm run dist-win
|
- to build win squirrel installer exe (64 bit): npm run dist-win
|
||||||
- to build win squirrel installer exe (32 bit): npm run dist-win-x86
|
- to build win squirrel installer exe (32 bit): npm run dist-win-x86
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
To start the demo from command line do:
|
To start the demo from command line do:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run demo:mac (on mac)
|
- npm run demo
|
||||||
- npm run demo:win (on windows)
|
|
||||||
|
22
package.json
22
package.json
@ -6,17 +6,16 @@
|
|||||||
"author": "Symphony",
|
"author": "Symphony",
|
||||||
"main": "js/main.js",
|
"main": "js/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev:mac": "ELECTRON_DEV=true npm run start",
|
"dev": "npm run browserify-preload && cross-env ELECTRON_DEV=true electron .",
|
||||||
"dev:win": "SET ELECTRON_DEV=true && npm run start",
|
"demo": "npm run browserify-preload && cross-env ELECTRON_DEV=true electron . --url=file://$(pwd)/demo/index.html",
|
||||||
"start": "npm run browserify-preload && electron .",
|
|
||||||
"demo:mac": "ELECTRON_DEV=true npm run start:demo",
|
|
||||||
"demo:win": "SET ELECTRON_DEV=true && npm run start:demo",
|
|
||||||
"start:demo": "npm run browserify-preload && electron . --url=file://$(pwd)/demo/index.html",
|
|
||||||
"dist-mac": "npm run prebuild && build --mac",
|
"dist-mac": "npm run prebuild && build --mac",
|
||||||
"dist-win": "npm run prebuild && build --win --x64",
|
"dist-win": "npm run prebuild && build --win --x64",
|
||||||
"dist-win-x86": "npm run prebuild && build --win --ia32",
|
"dist-win-x86": "npm run prebuild && build --win --ia32",
|
||||||
|
|
||||||
"unpacked-win": "npm run prebuild && build --win --x64 --dir",
|
"unpacked-win": "npm run prebuild && build --win --x64 --dir",
|
||||||
"unpacked-win-x86": "npm run prebuild && build --win --ia32 --dir",
|
"unpacked-win-x86": "npm run prebuild && build --win --ia32 --dir",
|
||||||
|
|
||||||
"prebuild": "npm run lint && npm run test && npm run browserify-preload",
|
"prebuild": "npm run lint && npm run test && npm run browserify-preload",
|
||||||
"lint": "eslint js/**",
|
"lint": "eslint js/**",
|
||||||
"test": "jest --coverage --testPathPattern tests",
|
"test": "jest --coverage --testPathPattern tests",
|
||||||
@ -24,9 +23,9 @@
|
|||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"files": [
|
"files": [
|
||||||
"!coverage/*",
|
"!coverage/*",
|
||||||
"!installer/*",
|
"!installer/*",
|
||||||
"!tests/*"
|
"!tests/*"
|
||||||
],
|
],
|
||||||
"extraFiles": "config/Symphony.config",
|
"extraFiles": "config/Symphony.config",
|
||||||
"appId": "symphony-electron-desktop",
|
"appId": "symphony-electron-desktop",
|
||||||
@ -65,6 +64,8 @@
|
|||||||
"url": "https://support.symphony.com"
|
"url": "https://support.symphony.com"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"browserify": "^14.1.0",
|
||||||
|
"cross-env": "^3.2.4",
|
||||||
"electron": "1.5.1",
|
"electron": "1.5.1",
|
||||||
"electron-builder": "^13.9.0",
|
"electron-builder": "^13.9.0",
|
||||||
"electron-builder-squirrel-windows": "^12.3.0",
|
"electron-builder-squirrel-windows": "^12.3.0",
|
||||||
@ -74,8 +75,7 @@
|
|||||||
"eslint-plugin-import": "^2.2.0",
|
"eslint-plugin-import": "^2.2.0",
|
||||||
"eslint-plugin-jsx-a11y": "^4.0.0",
|
"eslint-plugin-jsx-a11y": "^4.0.0",
|
||||||
"eslint-plugin-react": "^6.10.0",
|
"eslint-plugin-react": "^6.10.0",
|
||||||
"jest": "^19.0.2",
|
"jest": "^19.0.2"
|
||||||
"browserify": "^14.1.0"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"electron-squirrel-startup": "^1.0.0",
|
"electron-squirrel-startup": "^1.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user