package.json 2.35 KB
Newer Older
Stanley Shyiko's avatar
Stanley Shyiko committed
1 2 3
{
  "name": "electron-har",
  "description": "A command-line tool for generating HTTP Archive (HAR) (based on Electron)",
4
  "version": "0.2.0",
Stanley Shyiko's avatar
Stanley Shyiko committed
5 6 7 8 9 10
  "author": "Stanley Shyiko <stanley.shyiko@gmail.com>",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/shyiko/electron-har"
  },
11 12 13 14 15 16
  "contributors": [
    {
      "name": "Brandtley McMinn",
      "email": "labs@gbox.name"
    }
  ],
Stanley Shyiko's avatar
Stanley Shyiko committed
17
  "bin": "./bin/electron-har",
18
  "main": "./src/index.js",
Stanley Shyiko's avatar
Stanley Shyiko committed
19
  "dependencies": {
20
    "cross-exec-file": "^1.0.0",
Aral Balkan's avatar
Aral Balkan committed
21
    "cross-spawn-async": "^2.1.9",
22
    "electron-prebuilt": "^0.35.6",
23
    "json-stable-stringify": "^1.0.0",
24
    "object-assign": "^4.0.1",
25 26
    "tmp": "^0.0.28",
    "yargs": "^3.31.0"
Stanley Shyiko's avatar
Stanley Shyiko committed
27
  },
28
  "devDependencies": {
29 30 31 32 33 34
    "electron-packager": "^5.1.1",
    "chai": "^3.4.1",
    "mocha": "^2.3.4",
    "semistandard": "^7.0.4"
  },
  "semistandard": {
35 36 37 38 39 40
    "globals": [
      "chrome",
      "describe",
      "it",
      "before"
    ]
41
  },
Stanley Shyiko's avatar
Stanley Shyiko committed
42
  "scripts": {
43 44 45
    "clean": "rm -rf build",
    "build:app": "mkdir -p build && cp -r src build/app && cp package.json build/app && cd build/app && npm i --production && npm un electron-prebuilt",
    "build:macosx": "electron-packager build/app electron-har --platform=darwin --arch=x64 --version=0.35.4 --out=build --overwrite --app-bundle-id=com.github.shyiko.ElectronHAR --app-category-type=public.app-category.developer-tools --app-version=$npm_package_version && mv build/electron-har-darwin-x64/electron-har.app/Contents/MacOS/{Electron,electron-har} && sed -i 's/>Electron</>electron-har</g' build/electron-har-darwin-x64/electron-har.app/Contents/Info.plist",
46
    "build:linux": "electron-packager build/app electron-har --platform=linux --arch=x64,ia32 --version=0.35.4 --out=build --overwrite",
47
    "build": "npm run clean && npm run build:app && npm run build:macosx && npm run build:linux",
48 49
    "tar:macosx": "cd build/electron-har-darwin-x64 && tar -cvzf ../electron-har-$npm_package_version-darwin-x64.tar.gz *",
    "tar:linux": "echo x64 ia32 | xargs -n1 -I{} sh -c \"cd build/electron-har-linux-{} && tar -cvzf ../electron-har-$npm_package_version-linux-{}.tar.gz *\"",
50
    "tar": "npm run tar:macosx && npm run tar:linux",
51 52
    "release": "npm run build && npm run tar",
    "test": "semistandard src/**/*.js test/**/*.js && ./node_modules/mocha/bin/mocha -R spec"
Stanley Shyiko's avatar
Stanley Shyiko committed
53 54 55 56 57 58
  },
  "keywords": [
    "electron",
    "har"
  ]
}