diff --git a/package.json b/package.json index f56ab4b31..042a7c2f9 100644 --- a/package.json +++ b/package.json @@ -1,308 +1,155 @@ { - "name": "bitburner", - "license": "SEE LICENSE IN license.txt", - "version": "0.53.0", - "main": "electron-main.js", - "author": { - "name": "Daniel Xie" - }, - "bugs": { - "url": "https://github.com/danielyxie/bitburner/issues" - }, - "dependencies": { - "@material-ui/core": "^4.11.3", - "@material-ui/icons": "^4.11.2", - "@monaco-editor/react": "^4.2.2", - "@types/js-beautify": "^1.13.2", - "@types/numeral": "0.0.25", - "@types/react": "^16.8.6", - "@types/react-dom": "^16.8.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "ajv": "^5.1.5", - "ajv-keywords": "^2.0.0", - "arg": "^5.0.0", - "async": "^2.6.1", - "autosize": "^4.0.2", - "brace": "^0.11.1", - "codemirror": "^5.58.2", - "decimal.js": "7.2.3", - "enhanced-resolve": "^4.0.0", - "escodegen": "^1.11.0", - "escope": "^3.6.0", - "file-saver": "^1.3.8", - "interpret": "^1.0.0", - "jquery": "^3.5.0", - "jshint": "^2.10.2", - "json-loader": "^0.5.4", - "jsplumb": "^2.6.8", - "jszip": "^3.7.0", - "loader-runner": "^2.3.0", - "loader-utils": "^1.1.0", - "mathjax-full": "^3.2.0", - "mathjax-react": "^1.0.6", - "memory-fs": "~0.4.1", - "monaco-editor": "^0.27.0", - "node-sass": "^6.0.1", - "normalize.css": "^8.0.0", - "numeral": "2.0.6", - "react": "^16.8.3", - "react-dom": "^16.8.3", - "react-modal": "^3.12.1", - "sprintf-js": "^1.1.1", - "tapable": "^1.0.0", - "treant-js": "^1.0.1", - "unused-webpack-plugin": "^2.4.0", - "uuid": "^3.2.1", - "w3c-blob": "0.0.1" - }, - "description": "A cyberpunk-themed incremental game", - "devDependencies": { - "@babel/core": "^7.3.4", - "@babel/preset-env": "^7.15.0", - "@babel/preset-react": "^7.0.0", - "@babel/preset-typescript": "^7.15.0", - "@testing-library/cypress": "^8.0.1", - "@types/file-saver": "^2.0.3", - "@types/jest": "^27.0.1", - "@types/lodash": "^4.14.168", - "@types/node": "^16.9.1", - "@typescript-eslint/eslint-plugin": "^4.22.0", - "@typescript-eslint/parser": "^4.22.0", - "babel-jest": "^27.0.6", - "babel-loader": "^8.0.5", - "beautify-lint": "^1.0.3", - "benchmark": "^2.1.1", - "bundle-loader": "~0.5.0", - "css-loader": "^0.28.11", - "cypress": "^8.3.1", - "electron": "^14.0.1", - "electron-packager": "^15.4.0", - "es6-promise-polyfill": "^1.1.1", - "eslint": "^7.24.0", - "eslint-plugin-node": "^11.1.0", - "file-loader": "^1.1.11", - "fork-ts-checker-webpack-plugin": "^6.3.3", - "html-webpack-plugin": "^3.2.0", - "http-server": "^13.0.1", - "i18n-webpack-plugin": "^1.0.0", - "istanbul": "^0.4.5", - "jest": "^27.1.0", - "js-beautify": "^1.5.10", - "jsdom": "^15.0.0", - "jsdom-global": "^3.0.2", - "json5": "^1.0.1", - "less": "^3.9.0", - "less-loader": "^4.1.0", - "lodash": "^4.17.21", - "mini-css-extract-plugin": "^0.4.1", - "mkdirp": "^0.5.1", - "null-loader": "^1.0.0", - "prettier": "^2.3.2", - "raw-loader": "~0.5.0", - "regenerator-runtime": "^0.13.9", - "sass-loader": "^7.0.3", - "script-loader": "~0.7.0", - "should": "^11.1.1", - "simple-git": "^1.96.0", - "sinon": "^2.3.2", - "source-map": "^0.7.3", - "start-server-and-test": "^1.14.0", - "style-loader": "^0.21.0", - "stylelint": "^9.2.1", - "stylelint-declaration-use-variable": "^1.6.1", - "stylelint-order": "^0.8.1", - "typescript": "^4.2.4", - "uglify-es": "^3.3.9", - "uglifyjs-webpack-plugin": "^1.3.0", - "url-loader": "^1.0.1", - "watchpack": "^1.6.0", - "webpack": "^4.46.0", - "webpack-cli": "^3.3.12", - "webpack-dev-middleware": "^3.7.3", - "webpack-dev-server": "^3.11.2", - "worker-loader": "^2.0.0" - }, - "engines": { - "node": ">=8 || <=9" - }, - "homepage": "https://github.com/danielyxie/bitburner", - "repository": { - "type": "git", - "url": "git+https://github.com/danielyxie/bitburner.git" - }, - "scripts": { - "cy:test": "start-server-and-test start http://localhost:8000 cy:run", - "cy:dev": "start-server-and-test start:dev http://localhost:8000 cy:open", - "cy:open": "cypress open", - "cy:run": "cypress run", - "format": "prettier --write .", - "start": "http-server -p 8000", - "start:dev": "webpack-dev-server --progress --env.devServer --mode development", - "start:container": "webpack-dev-server --progress --env.devServer --mode development --env.runInContainer", - + "build": "webpack --mode production", "build:dev": "webpack --mode development", - "lint": "npm run lint:jsts & npm run lint:style", - "lint:jsts": "eslint --fix . --ext js,jsx,ts,tsx", - "lint:style": "stylelint --fix ./css/*", - "preinstall": "node ./scripts/engines-check.js", - "test": "jest", - "test:watch": "jest --watch", - "watch": "webpack --watch --mode production", - "watch:dev": "webpack --watch --mode development", - "package-electron": "electron-packager .package bitburner --all --out .build --overwrite --icon .package/icon.png" - } - } - diff --git a/src/Terminal/Terminal.ts b/src/Terminal/Terminal.ts index bd2ab3b0d..e7fd4acff 100644 --- a/src/Terminal/Terminal.ts +++ b/src/Terminal/Terminal.ts @@ -68,7 +68,6 @@ import { theme } from "./commands/theme"; import { top } from "./commands/top"; import { unalias } from "./commands/unalias"; import { wget } from "./commands/wget"; -import { clear } from "./commands/clear"; export class Terminal implements ITerminal { hasChanges = false; diff --git a/src/Terminal/commands/clear.ts b/src/Terminal/commands/clear.ts deleted file mode 100644 index c61090a11..000000000 --- a/src/Terminal/commands/clear.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { ITerminal } from "../ITerminal"; -import { IEngine } from "../../IEngine"; -import { IPlayer } from "../../PersonObjects/IPlayer"; -import { BaseServer } from "../../Server/BaseServer"; - -export function clear( - terminal: ITerminal, - engine: IEngine, - player: IPlayer, - server: BaseServer, - args: (string | number)[], -): void { - if (args.length !== 0) { - terminal.error("Incorrect usage of clear/cls command. Usage: clear/cls"); - return; - } - $("#terminal tr:not(:last)").remove(); -}