Ind.ie is now Small Technology Foundation.
package.json 2.07 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)",
Stanley Shyiko's avatar
Stanley Shyiko committed
4
  "version": "0.1.5",
Stanley Shyiko's avatar
Stanley Shyiko committed
5 6 7 8 9 10 11 12 13 14 15 16
  "author": "Stanley Shyiko <stanley.shyiko@gmail.com>",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/shyiko/electron-har"
  },
  "bin": "./bin/electron-har",
  "dependencies": {
    "yargs": "^3.31.0",
    "json-stable-stringify": "^1.0.0",
    "electron-prebuilt": "^0.35.4"
  },
17
  "devDependencies": {
18 19 20 21 22 23 24
    "electron-packager": "^5.1.1",
    "chai": "^3.4.1",
    "mocha": "^2.3.4",
    "semistandard": "^7.0.4"
  },
  "semistandard": {
    "globals": ["chrome", "describe", "it", "before"]
25
  },
Stanley Shyiko's avatar
Stanley Shyiko committed
26
  "scripts": {
27 28 29
    "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",
30
    "build:linux": "electron-packager build/app electron-har --platform=linux --arch=x64,ia32 --version=0.35.4 --out=build --overwrite",
31
    "build": "npm run clean && npm run build:app && npm run build:macosx && npm run build:linux",
32 33
    "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 *\"",
34
    "tar": "npm run tar:macosx && npm run tar:linux",
35 36
    "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
37 38 39 40 41 42
  },
  "keywords": [
    "electron",
    "har"
  ]
}