basic changes

This commit is contained in:
Labhansh Agrawal 2022-11-16 19:18:20 +05:30
parent 45fe2a6b15
commit de9dd1433a
13 changed files with 261 additions and 237 deletions

View file

@ -7,19 +7,20 @@
"app": "cross-env ELECTRONMON_LOGLEVEL=error electronmon target",
"dev": "concurrently -n \"Webpack,TypeScript\" -c \"cyan.bold,blue.bold\" \"webpack -w\" \"tsc --build -v --pretty --watch --preserveWatchOutput\" -k",
"build": "cross-env NODE_ENV=production webpack && tsc -b -v",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.json",
"test": "yarn run lint && yarn run test:unit",
"test:unit": "ava",
"test:unit:watch": "yarn run test:unit -- --watch",
"test:e2e": "ava --config ava-e2e.config.js",
"postinstall": "yarn run v8-snapshot && webpack --config-name hyper-app && electron-builder install-app-deps && yarn run rebuild-node-pty && cpy --cwd=target --parents \"node_modules/**/*\" \"../app/\" && husky install",
"postinstall": "yarn run v8-snapshot && webpack --config-name hyper-app && electron-builder install-app-deps && yarn run rebuild-node-pty && cpy --cwd=target --parents \"node_modules/**/*\" \"../app/\" && husky install && yarn run generate-schema",
"rebuild-node-pty": "electron-rebuild -f -o node-pty -m target",
"dist": "yarn run build && cross-env BABEL_ENV=production babel target/renderer/bundle.js --out-file target/renderer/bundle.js --no-comments --minified && electron-builder",
"clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer",
"v8-snapshot": "cross-env npm_config_arch=x64 yarn run v8-snapshot:arch && cross-env npm_config_arch=arm64 yarn run v8-snapshot:arch",
"v8-snapshot:arch":"yarn run mk-snapshot && yarn run cp-snapshot",
"v8-snapshot:arch": "yarn run mk-snapshot && yarn run cp-snapshot",
"mk-snapshot": "cross-env ELECTRON_CUSTOM_VERSION=$npm_package_devDependencies_electron node node_modules/electron-mksnapshot/download-mksnapshot.js && node bin/mk-snapshot.js",
"cp-snapshot": "node bin/cp-snapshot.js"
"cp-snapshot": "node bin/cp-snapshot.js",
"generate-schema": "typescript-json-schema ./lib/config.d.ts rawConfig -o ./app/config/schema.json --required"
},
"license": "MIT",
"author": {
@ -55,6 +56,7 @@
"shebang-loader": "0.0.1",
"styled-jsx": "5.1.1",
"stylis": "3.5.4",
"typescript-json-schema": "0.54.0",
"uuid": "9.0.0",
"webpack-cli": "5.0.1",
"xterm": "4.19.0",
@ -114,6 +116,8 @@
"eslint": "7.32.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-json-schema-validator": "^4.0.2",
"eslint-plugin-jsonc": "^2.5.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.31.1",
"husky": "8.0.2",