2016-06-30 22:01:04 -08:00
|
|
|
{
|
2016-10-06 07:28:43 -08:00
|
|
|
"repository": "zeit/hyper",
|
2016-10-17 00:29:12 -08:00
|
|
|
"scripts": {
|
2018-09-23 12:15:14 -08:00
|
|
|
"start":
|
|
|
|
|
"echo 'please run `yarn run dev` in one tab and then `yarn run app` in another one'",
|
2016-10-17 00:29:12 -08:00
|
|
|
"app": "electron app",
|
|
|
|
|
"dev": "webpack -w",
|
2016-11-11 08:18:04 -09:00
|
|
|
"build": "cross-env NODE_ENV=production webpack",
|
2017-06-11 02:42:39 -08:00
|
|
|
"lint": "eslint .",
|
2018-02-24 12:59:51 -09:00
|
|
|
"test": "yarn run lint && yarn run test:unit",
|
2017-02-16 09:44:44 -09:00
|
|
|
"test:unit": "ava test/unit",
|
2017-08-15 06:08:45 -08:00
|
|
|
"test:unit:watch": "yarn run test:unit -- --watch",
|
|
|
|
|
"prepush": "yarn test",
|
2019-01-11 04:31:11 -09:00
|
|
|
"postinstall": "electron-builder install-app-deps && yarn run rebuild-node-pty",
|
|
|
|
|
"rebuild-node-pty": "electron-rebuild -f -w app/node_modules/node-pty -m app",
|
2018-03-17 15:24:26 -08:00
|
|
|
"dist":
|
|
|
|
|
"yarn run build && cross-env BABEL_ENV=production babel --out-file app/renderer/bundle.js --no-comments --minified app/renderer/bundle.js && build",
|
|
|
|
|
"clean":
|
|
|
|
|
"node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer"
|
2016-06-30 22:01:04 -08:00
|
|
|
},
|
2017-06-11 02:42:39 -08:00
|
|
|
"eslintConfig": {
|
2018-03-17 15:24:26 -08:00
|
|
|
"plugins": ["react", "prettier"],
|
|
|
|
|
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
|
2017-06-11 02:42:39 -08:00
|
|
|
"parserOptions": {
|
|
|
|
|
"ecmaVersion": 8,
|
|
|
|
|
"sourceType": "module",
|
|
|
|
|
"ecmaFeatures": {
|
|
|
|
|
"jsx": true,
|
|
|
|
|
"impliedStrict": true,
|
|
|
|
|
"experimentalObjectRestSpread": true
|
|
|
|
|
},
|
|
|
|
|
"allowImportExportEverywhere": true
|
|
|
|
|
},
|
|
|
|
|
"env": {
|
|
|
|
|
"es6": true,
|
|
|
|
|
"browser": true,
|
|
|
|
|
"node": true
|
|
|
|
|
},
|
2016-06-30 22:01:04 -08:00
|
|
|
"rules": {
|
2018-03-17 15:24:26 -08:00
|
|
|
"func-names": ["error", "as-needed"],
|
2017-06-11 02:42:39 -08:00
|
|
|
"no-shadow": "error",
|
|
|
|
|
"no-extra-semi": 0,
|
2016-10-12 17:35:44 -08:00
|
|
|
"react/prop-types": 0,
|
2017-06-11 02:42:39 -08:00
|
|
|
"react/react-in-jsx-scope": 0,
|
|
|
|
|
"react/no-unescaped-entities": 0,
|
|
|
|
|
"react/jsx-no-target-blank": 0,
|
2017-09-10 05:35:10 -08:00
|
|
|
"react/no-string-refs": 0,
|
|
|
|
|
"prettier/prettier": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"printWidth": 120,
|
|
|
|
|
"tabWidth": 2,
|
|
|
|
|
"singleQuote": true,
|
|
|
|
|
"trailingComma": "none",
|
|
|
|
|
"bracketSpacing": false,
|
|
|
|
|
"semi": true,
|
|
|
|
|
"useTabs": false,
|
|
|
|
|
"parser": "babylon",
|
|
|
|
|
"jsxBracketSameLine": false
|
|
|
|
|
}
|
|
|
|
|
]
|
2017-10-18 10:17:55 -08:00
|
|
|
},
|
2017-11-02 18:51:18 -08:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
2019-01-11 04:31:11 -09:00
|
|
|
"files": ["app/config/config-default.js", ".hyper.js"],
|
2017-11-02 18:51:18 -08:00
|
|
|
"rules": {
|
|
|
|
|
"prettier/prettier": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"printWidth": 120,
|
|
|
|
|
"tabWidth": 2,
|
|
|
|
|
"singleQuote": true,
|
|
|
|
|
"trailingComma": "es5",
|
|
|
|
|
"bracketSpacing": false,
|
|
|
|
|
"semi": true,
|
|
|
|
|
"useTabs": false,
|
|
|
|
|
"parser": "babylon",
|
|
|
|
|
"jsxBracketSameLine": false
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2017-10-18 10:17:55 -08:00
|
|
|
}
|
2017-11-02 18:51:18 -08:00
|
|
|
]
|
2016-06-30 22:01:04 -08:00
|
|
|
},
|
2016-07-24 09:59:21 -08:00
|
|
|
"babel": {
|
2018-03-17 15:24:26 -08:00
|
|
|
"presets": ["react"],
|
2018-03-17 04:51:36 -08:00
|
|
|
"plugins": [
|
|
|
|
|
[
|
|
|
|
|
"styled-jsx/babel",
|
|
|
|
|
{
|
|
|
|
|
"vendorPrefixes": false
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
],
|
2017-01-09 12:32:15 -09:00
|
|
|
"env": {
|
|
|
|
|
"production": {
|
2017-02-15 17:09:14 -09:00
|
|
|
"plugins": [
|
|
|
|
|
"minify-constant-folding",
|
|
|
|
|
"minify-dead-code-elimination",
|
|
|
|
|
"minify-flip-comparisons",
|
|
|
|
|
"minify-guarded-expressions",
|
|
|
|
|
"minify-infinity",
|
2017-05-20 13:35:11 -08:00
|
|
|
[
|
|
|
|
|
"minify-mangle-names",
|
|
|
|
|
{
|
|
|
|
|
"keepClassName": true,
|
|
|
|
|
"keepFnName": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2017-02-15 17:09:14 -09:00
|
|
|
"minify-replace",
|
|
|
|
|
"minify-simplify",
|
|
|
|
|
"minify-type-constructors",
|
|
|
|
|
"transform-member-expression-literals",
|
|
|
|
|
"transform-merge-sibling-variables",
|
|
|
|
|
"transform-minify-booleans",
|
|
|
|
|
"transform-property-literals",
|
|
|
|
|
"transform-simplify-comparison-operators",
|
|
|
|
|
"transform-undefined-to-void"
|
2017-01-09 12:32:15 -09:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-07-24 09:59:21 -08:00
|
|
|
},
|
|
|
|
|
"build": {
|
2016-10-06 07:28:43 -08:00
|
|
|
"appId": "co.zeit.hyper",
|
2018-01-09 06:05:19 -09:00
|
|
|
"extraResources": [
|
|
|
|
|
"./bin/yarn-standalone.js",
|
|
|
|
|
"./bin/cli.js",
|
|
|
|
|
{
|
|
|
|
|
"from": "./build/${os}/",
|
|
|
|
|
"to": "./bin/",
|
2018-03-17 15:24:26 -08:00
|
|
|
"filter": ["hyper*"]
|
2018-01-09 06:05:19 -09:00
|
|
|
}
|
|
|
|
|
],
|
2016-07-25 15:41:24 -08:00
|
|
|
"linux": {
|
2017-09-10 05:35:10 -08:00
|
|
|
"category": "TerminalEmulator",
|
2016-07-26 16:11:40 -08:00
|
|
|
"target": [
|
2017-05-21 14:44:50 -08:00
|
|
|
{
|
|
|
|
|
"target": "deb",
|
2018-03-17 15:24:26 -08:00
|
|
|
"arch": ["x64"]
|
2017-05-21 14:44:50 -08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"target": "AppImage",
|
2018-03-17 15:24:26 -08:00
|
|
|
"arch": ["x64"]
|
2017-05-21 14:44:50 -08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"target": "rpm",
|
2018-03-17 15:24:26 -08:00
|
|
|
"arch": ["x64"]
|
2018-10-13 06:50:20 -08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"target": "snap",
|
|
|
|
|
"arch": ["x64"]
|
2017-05-21 14:44:50 -08:00
|
|
|
}
|
2016-07-26 16:11:40 -08:00
|
|
|
]
|
2016-09-14 23:36:48 -08:00
|
|
|
},
|
2016-11-16 03:01:02 -09:00
|
|
|
"win": {
|
2018-04-16 07:34:39 -08:00
|
|
|
"target": ["squirrel"],
|
2018-04-20 15:17:18 -08:00
|
|
|
"rfc3161TimeStampServer": "http://timestamp.comodoca.com"
|
2016-11-16 03:01:02 -09:00
|
|
|
},
|
2016-09-14 23:36:48 -08:00
|
|
|
"mac": {
|
2017-05-21 14:44:50 -08:00
|
|
|
"category": "public.app-category.developer-tools",
|
2019-06-13 15:28:02 -08:00
|
|
|
"extendInfo": "build/Info.plist",
|
|
|
|
|
"darkModeSupport": true
|
2018-01-09 06:05:19 -09:00
|
|
|
},
|
|
|
|
|
"deb": {
|
|
|
|
|
"afterInstall": "./build/linux/after-install.tpl"
|
|
|
|
|
},
|
|
|
|
|
"rpm": {
|
|
|
|
|
"afterInstall": "./build/linux/after-install.tpl"
|
2018-02-12 11:20:45 -09:00
|
|
|
},
|
2019-01-02 04:39:29 -09:00
|
|
|
"snap": {
|
|
|
|
|
"confinement": "classic"
|
|
|
|
|
},
|
2018-02-12 11:20:45 -09:00
|
|
|
"protocols": {
|
|
|
|
|
"name": "ssh URL",
|
2018-03-17 15:24:26 -08:00
|
|
|
"schemes": ["ssh"]
|
2016-07-25 15:41:24 -08:00
|
|
|
}
|
2016-07-24 09:59:21 -08:00
|
|
|
},
|
2016-10-17 00:29:12 -08:00
|
|
|
"license": "MIT",
|
|
|
|
|
"author": {
|
2018-01-17 06:58:49 -09:00
|
|
|
"name": "ZEIT, Inc.",
|
2016-10-17 00:29:12 -08:00
|
|
|
"email": "team@zeit.co"
|
|
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2018-01-21 00:21:41 -09:00
|
|
|
"args": "3.0.8",
|
2018-03-17 14:15:13 -08:00
|
|
|
"chalk": "2.3.2",
|
2017-12-12 01:54:20 -09:00
|
|
|
"color": "2.0.1",
|
2018-01-09 06:05:19 -09:00
|
|
|
"columnify": "1.5.4",
|
2018-03-17 14:15:13 -08:00
|
|
|
"css-loader": "0.28.11",
|
2018-01-09 06:05:19 -09:00
|
|
|
"got": "7.1.0",
|
2017-08-31 05:20:39 -08:00
|
|
|
"json-loader": "0.5.7",
|
2017-11-02 18:51:18 -08:00
|
|
|
"mousetrap": "chabou/mousetrap#useCapture",
|
2017-12-12 01:54:20 -09:00
|
|
|
"ms": "2.1.1",
|
2018-03-17 14:15:13 -08:00
|
|
|
"opn": "5.3.0",
|
2018-01-09 06:05:19 -09:00
|
|
|
"ora": "1.3.0",
|
2018-02-12 11:20:45 -09:00
|
|
|
"parse-url": "3.0.2",
|
2016-10-17 00:29:12 -08:00
|
|
|
"php-escape-shell": "1.0.0",
|
2018-01-09 06:05:19 -09:00
|
|
|
"pify": "3.0.0",
|
2017-12-12 01:54:20 -09:00
|
|
|
"react": "16.2.0",
|
2018-01-21 00:21:41 -09:00
|
|
|
"react-deep-force-update": "2.1.1",
|
2019-01-04 12:05:35 -09:00
|
|
|
"react-dom": "16.2.1",
|
2018-03-17 14:15:13 -08:00
|
|
|
"react-redux": "5.0.7",
|
2018-01-21 00:21:41 -09:00
|
|
|
"recast": "0.13.0",
|
2017-08-08 12:29:54 -08:00
|
|
|
"redux": "3.7.2",
|
2017-06-02 05:47:58 -08:00
|
|
|
"redux-thunk": "2.2.0",
|
|
|
|
|
"reselect": "3.0.1",
|
2018-03-17 14:15:13 -08:00
|
|
|
"seamless-immutable": "7.1.3",
|
|
|
|
|
"semver": "5.5.0",
|
2018-01-22 00:21:01 -09:00
|
|
|
"shebang-loader": "0.0.1",
|
2018-03-17 04:51:36 -08:00
|
|
|
"styled-jsx": "2.2.6",
|
|
|
|
|
"stylis": "3.5.0",
|
2017-09-03 12:04:03 -08:00
|
|
|
"uuid": "3.1.0",
|
2019-03-22 09:27:40 -08:00
|
|
|
"xterm": "https://registry.npmjs.org/@zeit/xterm/-/xterm-3.12.0-1.tgz"
|
2016-10-17 00:29:12 -08:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2018-03-17 14:15:13 -08:00
|
|
|
"ava": "0.25.0",
|
2017-08-31 05:20:39 -08:00
|
|
|
"babel-cli": "6.26.0",
|
|
|
|
|
"babel-core": "6.26.0",
|
|
|
|
|
"babel-loader": "7.1.2",
|
2017-08-08 12:29:54 -08:00
|
|
|
"babel-preset-babili": "0.1.4",
|
2017-05-20 13:35:11 -08:00
|
|
|
"babel-preset-react": "6.24.1",
|
2018-01-21 00:21:41 -09:00
|
|
|
"copy-webpack-plugin": "4.3.1",
|
2018-03-17 14:15:13 -08:00
|
|
|
"cross-env": "5.1.4",
|
2019-02-04 17:28:20 -09:00
|
|
|
"electron": "3.1.3",
|
2018-12-25 17:15:25 -09:00
|
|
|
"electron-builder": "20.38.2",
|
|
|
|
|
"electron-builder-squirrel-windows": "20.38.2",
|
|
|
|
|
"electron-devtools-installer": "2.2.4",
|
|
|
|
|
"electron-rebuild": "1.8.2",
|
2018-06-03 22:51:57 -08:00
|
|
|
"eslint": "4.7.2",
|
|
|
|
|
"eslint-config-prettier": "2.6.0",
|
|
|
|
|
"eslint-plugin-prettier": "2.3.1",
|
|
|
|
|
"eslint-plugin-react": "7.3.0",
|
2017-08-08 12:29:54 -08:00
|
|
|
"husky": "0.14.3",
|
2018-03-17 14:15:13 -08:00
|
|
|
"inquirer": "5.1.0",
|
2017-06-13 16:44:33 -08:00
|
|
|
"node-gyp": "3.6.2",
|
2018-03-17 14:15:13 -08:00
|
|
|
"prettier": "1.11.1",
|
2018-03-02 12:11:33 -09:00
|
|
|
"proxyquire": "1.8.0",
|
2018-03-17 14:15:13 -08:00
|
|
|
"spectron": "3.8.0",
|
2018-01-21 00:21:41 -09:00
|
|
|
"style-loader": "0.19.1",
|
2017-12-12 01:54:20 -09:00
|
|
|
"webpack": "3.10.0"
|
2018-01-09 06:05:19 -09:00
|
|
|
},
|
|
|
|
|
"resolutions": {
|
|
|
|
|
"rc": "1.2.3"
|
2016-06-30 22:01:04 -08:00
|
|
|
}
|
|
|
|
|
}
|