hyper/package.json

244 lines
6.3 KiB
JSON
Raw Normal View History

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",
Add Windows support and first-class Linux support (#946) * `child_pty` => `pty.js` * Create a frameless window on Windows and Linux * Add a brand new UI for Linux and Windows :nail_care: * [Windows] Fix plugin installation * [Windows] Fix the `build` script * [Windows] Add a bigger `icon.ico` * [Mac] Add `WebKitAppRegion: drag` when running on macOS * Fix code style :thinking: * Add `appveyor.yml` * Fix code style (again) * [Windows] Fix AppVeyor's `install` script * [Windows] Try a new AppVeyor config * [Windows] Set the binary path so Spectron can run the tests * [Windows] Try to build on x64 * Try again to build on x64 * Try one more time :weary: * Throw an error to indicate that `pty.js` was built incorrectly * [Win/Linux] Add `display: hidden` to <Tabs /> if tabs.length === 1 * [Win/Linux] Reorganize SVGs – via @CodeTheory * [Win/Linux] Fix the hamburger menu height * Make the SVGs look better with `shape-rendering: crispEdges;` * [Win/Linux] Add config options for the window controls and the :hamburger: menu * Add `electron-squirrel-startup` dependency * [Win] Handle Squirrel commands * [Win/Linux] Fix default color for the :hamburger: and window controls – via @CodeTheory * [Win/Linux] Add some padding - via @CodeTheory * [Win/Linux] Add hover states – via @CodeTheory * [Win] Fix empty window/tab titles * [Win] Fix opening Preferences (#978) * [Win] Fix opening Preferences * Update ui.js * Update ui.js * Enhance messages and default editor * [Win] Add dependency instructions to the README.md [skip ci] * Fix code style * [Win/Linux] Check the number of open windows before quitting the app
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 .",
"test": "yarn run lint && yarn run test:unit",
"test:unit": "ava test/unit",
"test:unit:watch": "yarn run test:unit -- --watch",
"prepush": "yarn test",
"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",
"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": {
"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": {
"func-names": ["error", "as-needed"],
2017-06-11 02:42:39 -08:00
"no-shadow": "error",
"no-extra-semi": 0,
"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,
"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
}
]
},
"overrides": [
{
"files": ["app/config/config-default.js", ".hyper.js"],
"rules": {
"prettier/prettier": [
"error",
{
"printWidth": 120,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": false,
"semi": true,
"useTabs": false,
"parser": "babylon",
"jsxBracketSameLine": false
}
]
}
}
]
2016-06-30 22:01:04 -08:00
},
"babel": {
"presets": ["react"],
"plugins": [
[
"styled-jsx/babel",
{
"vendorPrefixes": false
}
]
],
"env": {
"production": {
"plugins": [
"minify-constant-folding",
"minify-dead-code-elimination",
"minify-flip-comparisons",
"minify-guarded-expressions",
"minify-infinity",
[
"minify-mangle-names",
{
"keepClassName": true,
"keepFnName": true
}
],
"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"
]
}
}
},
"build": {
2016-10-06 07:28:43 -08:00
"appId": "co.zeit.hyper",
"extraResources": [
"./bin/yarn-standalone.js",
"./bin/cli.js",
{
"from": "./build/${os}/",
"to": "./bin/",
"filter": ["hyper*"]
}
],
2016-07-25 15:41:24 -08:00
"linux": {
"category": "TerminalEmulator",
"target": [
{
"target": "deb",
"arch": ["x64"]
},
{
"target": "AppImage",
"arch": ["x64"]
},
{
"target": "rpm",
"arch": ["x64"]
},
{
"target": "snap",
"arch": ["x64"]
}
]
2016-09-14 23:36:48 -08:00
},
"win": {
"target": ["squirrel"],
"rfc3161TimeStampServer": "http://timestamp.comodoca.com"
},
2016-09-14 23:36:48 -08:00
"mac": {
"category": "public.app-category.developer-tools",
"extendInfo": "build/Info.plist"
},
"deb": {
"afterInstall": "./build/linux/after-install.tpl"
},
"rpm": {
"afterInstall": "./build/linux/after-install.tpl"
2018-02-12 11:20:45 -09:00
},
"snap": {
"confinement": "classic"
},
2018-02-12 11:20:45 -09:00
"protocols": {
"name": "ssh URL",
"schemes": ["ssh"]
2016-07-25 15:41:24 -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": {
"args": "3.0.8",
"chalk": "2.3.2",
2017-12-12 01:54:20 -09:00
"color": "2.0.1",
"columnify": "1.5.4",
"css-loader": "0.28.11",
"got": "7.1.0",
"json-loader": "0.5.7",
"mousetrap": "chabou/mousetrap#useCapture",
2017-12-12 01:54:20 -09:00
"ms": "2.1.1",
"opn": "5.3.0",
"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",
"pify": "3.0.0",
2017-12-12 01:54:20 -09:00
"react": "16.2.0",
"react-deep-force-update": "2.1.1",
2019-01-04 12:05:35 -09:00
"react-dom": "16.2.1",
"react-redux": "5.0.7",
"recast": "0.13.0",
"redux": "3.7.2",
"redux-thunk": "2.2.0",
"reselect": "3.0.1",
"seamless-immutable": "7.1.3",
"semver": "5.5.0",
"shebang-loader": "0.0.1",
"styled-jsx": "2.2.6",
"stylis": "3.5.0",
"uuid": "3.1.0",
"xterm": "https://registry.npmjs.org/@zeit/xterm/-/xterm-3.10.1-2.tgz"
2016-10-17 00:29:12 -08:00
},
"devDependencies": {
"ava": "0.25.0",
"babel-cli": "6.26.0",
"babel-core": "6.26.0",
"babel-loader": "7.1.2",
"babel-preset-babili": "0.1.4",
"babel-preset-react": "6.24.1",
"copy-webpack-plugin": "4.3.1",
"cross-env": "5.1.4",
"electron": "3.1.1",
"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",
"husky": "0.14.3",
"inquirer": "5.1.0",
"node-gyp": "3.6.2",
"prettier": "1.11.1",
"proxyquire": "1.8.0",
"spectron": "3.8.0",
"style-loader": "0.19.1",
2017-12-12 01:54:20 -09:00
"webpack": "3.10.0"
},
"resolutions": {
"rc": "1.2.3"
2016-06-30 22:01:04 -08:00
}
}