Compare commits
2 commits
canary
...
screenshot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d63c724b8 | ||
|
|
c5860f3174 |
2 changed files with 18 additions and 37 deletions
|
|
@ -31,7 +31,7 @@ if (isDev) {
|
||||||
const plugins = resolve(cfgDir, '.hyper_plugins');
|
const plugins = resolve(cfgDir, '.hyper_plugins');
|
||||||
const plugs = {
|
const plugs = {
|
||||||
base: plugins,
|
base: plugins,
|
||||||
local: resolve(plugins, 'local'),
|
local: process.env.LOCAL_PLUGINS_PATH || resolve(plugins, 'local'),
|
||||||
cache: resolve(plugins, 'cache')
|
cache: resolve(plugins, 'cache')
|
||||||
};
|
};
|
||||||
const yarn = resolve(__dirname, '../../bin/yarn-standalone.js');
|
const yarn = resolve(__dirname, '../../bin/yarn-standalone.js');
|
||||||
|
|
|
||||||
53
package.json
53
package.json
|
|
@ -1,5 +1,8 @@
|
||||||
{
|
{
|
||||||
|
"name": "hyper",
|
||||||
|
"version": "1.0.0",
|
||||||
"repository": "zeit/hyper",
|
"repository": "zeit/hyper",
|
||||||
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "echo 'please run `yarn run dev` in one tab and then `yarn run app` in another one'",
|
"start": "echo 'please run `yarn run dev` in one tab and then `yarn run app` in another one'",
|
||||||
"app": "electron app",
|
"app": "electron app",
|
||||||
|
|
@ -12,19 +15,14 @@
|
||||||
"prepush": "yarn test",
|
"prepush": "yarn test",
|
||||||
"postinstall": "electron-builder install-app-deps && yarn run rebuild-node-pty && yarn --cwd node_modules/xterm",
|
"postinstall": "electron-builder install-app-deps && yarn run rebuild-node-pty && yarn --cwd node_modules/xterm",
|
||||||
"rebuild-node-pty": "electron-rebuild -f -w app/node_modules/node-pty -m app",
|
"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",
|
"dist":
|
||||||
"clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer"
|
"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"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"plugins": [
|
"plugins": ["react", "prettier"],
|
||||||
"react",
|
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
|
||||||
"prettier"
|
|
||||||
],
|
|
||||||
"extends": [
|
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:react/recommended",
|
|
||||||
"prettier"
|
|
||||||
],
|
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 8,
|
"ecmaVersion": 8,
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
|
|
@ -41,10 +39,7 @@
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"func-names": [
|
"func-names": ["error", "as-needed"],
|
||||||
"error",
|
|
||||||
"as-needed"
|
|
||||||
],
|
|
||||||
"no-shadow": "error",
|
"no-shadow": "error",
|
||||||
"no-extra-semi": 0,
|
"no-extra-semi": 0,
|
||||||
"react/prop-types": 0,
|
"react/prop-types": 0,
|
||||||
|
|
@ -90,9 +85,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"babel": {
|
"babel": {
|
||||||
"presets": [
|
"presets": ["react"],
|
||||||
"react"
|
|
||||||
],
|
|
||||||
"env": {
|
"env": {
|
||||||
"production": {
|
"production": {
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
|
@ -129,9 +122,7 @@
|
||||||
{
|
{
|
||||||
"from": "./build/${os}/",
|
"from": "./build/${os}/",
|
||||||
"to": "./bin/",
|
"to": "./bin/",
|
||||||
"filter": [
|
"filter": ["hyper*"]
|
||||||
"hyper*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"linux": {
|
"linux": {
|
||||||
|
|
@ -139,28 +130,20 @@
|
||||||
"target": [
|
"target": [
|
||||||
{
|
{
|
||||||
"target": "deb",
|
"target": "deb",
|
||||||
"arch": [
|
"arch": ["x64"]
|
||||||
"x64"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"target": "AppImage",
|
"target": "AppImage",
|
||||||
"arch": [
|
"arch": ["x64"]
|
||||||
"x64"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"target": "rpm",
|
"target": "rpm",
|
||||||
"arch": [
|
"arch": ["x64"]
|
||||||
"x64"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"win": {
|
"win": {
|
||||||
"target": [
|
"target": ["squirrel"]
|
||||||
"squirrel"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"mac": {
|
"mac": {
|
||||||
"category": "public.app-category.developer-tools",
|
"category": "public.app-category.developer-tools",
|
||||||
|
|
@ -174,9 +157,7 @@
|
||||||
},
|
},
|
||||||
"protocols": {
|
"protocols": {
|
||||||
"name": "ssh URL",
|
"name": "ssh URL",
|
||||||
"schemes": [
|
"schemes": ["ssh"]
|
||||||
"ssh"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue