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 plugs = {
|
||||
base: plugins,
|
||||
local: resolve(plugins, 'local'),
|
||||
local: process.env.LOCAL_PLUGINS_PATH || resolve(plugins, 'local'),
|
||||
cache: resolve(plugins, 'cache')
|
||||
};
|
||||
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",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "echo 'please run `yarn run dev` in one tab and then `yarn run app` in another one'",
|
||||
"app": "electron app",
|
||||
|
|
@ -12,19 +15,14 @@
|
|||
"prepush": "yarn test",
|
||||
"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",
|
||||
"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"
|
||||
"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"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"plugins": [
|
||||
"react",
|
||||
"prettier"
|
||||
],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:react/recommended",
|
||||
"prettier"
|
||||
],
|
||||
"plugins": ["react", "prettier"],
|
||||
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 8,
|
||||
"sourceType": "module",
|
||||
|
|
@ -41,10 +39,7 @@
|
|||
"node": true
|
||||
},
|
||||
"rules": {
|
||||
"func-names": [
|
||||
"error",
|
||||
"as-needed"
|
||||
],
|
||||
"func-names": ["error", "as-needed"],
|
||||
"no-shadow": "error",
|
||||
"no-extra-semi": 0,
|
||||
"react/prop-types": 0,
|
||||
|
|
@ -90,9 +85,7 @@
|
|||
]
|
||||
},
|
||||
"babel": {
|
||||
"presets": [
|
||||
"react"
|
||||
],
|
||||
"presets": ["react"],
|
||||
"env": {
|
||||
"production": {
|
||||
"plugins": [
|
||||
|
|
@ -129,9 +122,7 @@
|
|||
{
|
||||
"from": "./build/${os}/",
|
||||
"to": "./bin/",
|
||||
"filter": [
|
||||
"hyper*"
|
||||
]
|
||||
"filter": ["hyper*"]
|
||||
}
|
||||
],
|
||||
"linux": {
|
||||
|
|
@ -139,28 +130,20 @@
|
|||
"target": [
|
||||
{
|
||||
"target": "deb",
|
||||
"arch": [
|
||||
"x64"
|
||||
]
|
||||
"arch": ["x64"]
|
||||
},
|
||||
{
|
||||
"target": "AppImage",
|
||||
"arch": [
|
||||
"x64"
|
||||
]
|
||||
"arch": ["x64"]
|
||||
},
|
||||
{
|
||||
"target": "rpm",
|
||||
"arch": [
|
||||
"x64"
|
||||
]
|
||||
"arch": ["x64"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"win": {
|
||||
"target": [
|
||||
"squirrel"
|
||||
]
|
||||
"target": ["squirrel"]
|
||||
},
|
||||
"mac": {
|
||||
"category": "public.app-category.developer-tools",
|
||||
|
|
@ -174,9 +157,7 @@
|
|||
},
|
||||
"protocols": {
|
||||
"name": "ssh URL",
|
||||
"schemes": [
|
||||
"ssh"
|
||||
]
|
||||
"schemes": ["ssh"]
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue