diff --git a/package.json b/package.json index 87ab9d474..b027e9cc3 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,19 @@ { "name": "meetalva", "version": "0.1.0", - "description": "", - "main": "dist/electron/index.js", + "description": + "Alva is a radically new design tool that enables cross-functional teams to design digital products.", + "main": "./dist/electron/index.js", "scripts": { "build": "tslint --project . -c tslint.json 'src/**/*.ts' && tsc --project .", - "start": "npm run build && concurrently \"electron dist/electron\" \"tsc --project . --watch\"", + "start": + "npm run build && concurrently \"electron dist/electron\" \"tsc --project . --watch\"", "build-lsg": "tsc --project src/lsg --outDir dist/lsg/patterns --sourceMap", - "start-lsg": "npm run build-lsg && concurrently \"npm run build-lsg -- -w\" \"patternplate start\"" + "start-lsg": + "npm run build-lsg && concurrently \"npm run build-lsg -- -w\" \"patternplate start\"", + "copy-html": "cp src/electron/*.html dist/electron/", + "pack": "npm run copy-html && npm run build && electron-builder --dir", + "dist": "npm run copy-html && npm run build && electron-builder" }, "repository": { "type": "git", @@ -24,6 +30,17 @@ "tabWidth": 3, "singleQuote": true }, + "build": { + "appId": "io.github.meetalva", + "mac": { + "category": "public.app-category.graphics-design" + }, + "files": ["dist/**/*", "package.json"], + "directories": { + "buildResources": "resources", + "output": "build" + } + }, "devDependencies": { "@patternplate/cli": "^2.0.0-4", "@patternplate/render-styled-components": "^2.0.0-3", @@ -34,16 +51,15 @@ "@types/react-dom": "^16.0.3", "concurrently": "^3.5.1", "cz-conventional-changelog": "^2.1.0", - "electron-devtools-installer": "^2.2.1", - "mobx-react-devtools": "^4.2.15", + "electron": "^1.7.9", + "electron-builder": "^19.49.0", "ts-config": "^15.0.0", - "tslib": "^1.8.0", - "tslint": "^5.8.0", - "typescript": "^2.6.2" + "tslint": "^5.8.0" }, "dependencies": { "cli": "^1.0.1", - "electron": "^1.7.9", + "electron-devtools-installer": "^2.2.1", + "mobx-react-devtools": "^4.2.15", "js-yaml": "^3.10.0", "mobx": "^3.3.2", "mobx-react": "^4.3.5", @@ -52,7 +68,9 @@ "react-router": "^4.2.0", "readts": "^0.1.0", "styled-components": "^2.2.3", - "systemjs": "^0.20.19" + "systemjs": "^0.20.19", + "tslib": "^1.8.0", + "typescript": "^2.6.2" }, "homepage": "https://meetalva.github.io/", "config": {