From b8153843823a4e127c88ef93bce8131df07b87d1 Mon Sep 17 00:00:00 2001 From: nameczz Date: Mon, 21 Feb 2022 15:12:08 +0800 Subject: [PATCH 1/2] update server package.json Signed-off-by: nameczz --- express/package.json | 141 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 express/package.json diff --git a/express/package.json b/express/package.json new file mode 100644 index 00000000..51e7ddcc --- /dev/null +++ b/express/package.json @@ -0,0 +1,141 @@ +{ + "name": "attu", + "version": "2.0.2", + "license": "MIT", + "author": { + "name": "zilliz", + "email": "zilliz@zilliz.com" + }, + "description": "Attu help to manage Milvus easily", + "repository": { + "type": "git", + "url": "https://github.com/zilliztech/attu" + }, + "dependencies": { + "@zilliz/milvus2-sdk-node": "^2.0.0", + "chalk": "^4.1.2", + "class-sanitizer": "^1.0.1", + "class-transformer": "^0.4.0", + "class-validator": "^0.13.1", + "cors": "^2.8.5", + "cross-env": "^7.0.3", + "csv-writer": "^1.6.0", + "express": "^4.17.1", + "glob": "^7.2.0", + "helmet": "^4.6.0", + "http-errors": "^1.8.1", + "lru-cache": "^6.0.0", + "morgan": "^1.10.0", + "node-cron": "^3.0.0", + "rimraf": "^3.0.2", + "socket.io": "^4.3.1", + "swagger-jsdoc": "^6.1.0", + "swagger-ui-express": "^4.1.6" + }, + "jest": { + "testEnvironment": "node", + "testTimeout": 10000, + "coveragePathIgnorePatterns": [ + "/node_modules/" + ], + "rootDir": "src", + "testRegex": ".*\\.test\\.ts$", + "collectCoverageFrom": [ + "**/*.service.{js,ts}" + ], + "transform": { + "^.+\\.(t|j)s$": "ts-jest" + }, + "coverageDirectory": "../coverage/" + }, + "devDependencies": { + "@types/chalk": "^2.2.0", + "@types/cors": "^2.8.12", + "@types/express": "^4.17.13", + "@types/glob": "^7.2.0", + "@types/http-errors": "^1.8.1", + "@types/jest": "^27.0.2", + "@types/lru-cache": "^5.1.1", + "@types/morgan": "^1.9.3", + "@types/node": "^16.11.6", + "@types/node-cron": "^3.0.0", + "@types/supertest": "^2.0.11", + "@types/swagger-jsdoc": "^6.0.1", + "@types/swagger-ui-express": "^4.1.3", + "@types/ws": "^8.2.0", + "electron": "^16.0.2", + "electron-builder": "^22.14.5", + "jest": "^27.3.1", + "nodemon": "^2.0.14", + "prettier": "^2.4.1", + "supertest": "^6.1.6", + "ts-jest": "^27.0.7", + "ts-node": "^10.4.0", + "tslint": "^6.1.3", + "typescript": "^4.4.4" + }, + "scripts": { + "prebuild": "tslint -c tslint.json -p tsconfig.json --fix", + "build": "yarn clean && tsc", + "prestart": "rm -rf dist && yarn build", + "start": "nodemon dist/app.js", + "start:plugin": "yarn build && cross-env PLUGIN_DEV=1 node dist/attu/express/src/app.js", + "start:prod": "node dist/app.js", + "test": "cross-env NODE_ENV=test jest --passWithNoTests", + "test:watch": "jest --watch", + "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage", + "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'", + "clean": "rimraf dist", + "format": "prettier --write '**/*.{ts,js}'", + "mac": "electron-builder --mac", + "linux": "electron-builder --linux", + "win": "electron-builder --win" + }, + "nodemonConfig": { + "ignore": [ + "**/*.test.ts", + "**/*.spec.ts", + "build", + ".git", + "node_modules" + ], + "watch": [ + "src" + ], + "ext": "ts yml" + }, + "homepage": "./", + "main": "electron-starter.js", + "build": { + "appId": "milvus", + "directories": { + "output": "electron-app" + }, + "files": [ + "build/**/*", + "dist/**/*", + "node_modules/**/*", + "electron-starter.js", + "package.json", + "preload.js" + ], + "linux": { + "icon": "./build/zilliz.icns", + "target": [ + "deb" + ] + }, + "mac": { + "icon": "./build/zilliz.icns", + "target": "dmg" + }, + "win": { + "icon": "./build/zilliz.png", + "target": [ + { + "target": "nsis" + } + ] + } + } +} \ No newline at end of file From d43dedb7a92c0acd99ffd6f8ff45dd978c9c9945 Mon Sep 17 00:00:00 2001 From: nameczz Date: Mon, 21 Feb 2022 15:14:30 +0800 Subject: [PATCH 2/2] update package.json Signed-off-by: nameczz --- express/package.json | 141 ------------------------------------------- server/package.json | 6 +- 2 files changed, 3 insertions(+), 144 deletions(-) delete mode 100644 express/package.json diff --git a/express/package.json b/express/package.json deleted file mode 100644 index 51e7ddcc..00000000 --- a/express/package.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "name": "attu", - "version": "2.0.2", - "license": "MIT", - "author": { - "name": "zilliz", - "email": "zilliz@zilliz.com" - }, - "description": "Attu help to manage Milvus easily", - "repository": { - "type": "git", - "url": "https://github.com/zilliztech/attu" - }, - "dependencies": { - "@zilliz/milvus2-sdk-node": "^2.0.0", - "chalk": "^4.1.2", - "class-sanitizer": "^1.0.1", - "class-transformer": "^0.4.0", - "class-validator": "^0.13.1", - "cors": "^2.8.5", - "cross-env": "^7.0.3", - "csv-writer": "^1.6.0", - "express": "^4.17.1", - "glob": "^7.2.0", - "helmet": "^4.6.0", - "http-errors": "^1.8.1", - "lru-cache": "^6.0.0", - "morgan": "^1.10.0", - "node-cron": "^3.0.0", - "rimraf": "^3.0.2", - "socket.io": "^4.3.1", - "swagger-jsdoc": "^6.1.0", - "swagger-ui-express": "^4.1.6" - }, - "jest": { - "testEnvironment": "node", - "testTimeout": 10000, - "coveragePathIgnorePatterns": [ - "/node_modules/" - ], - "rootDir": "src", - "testRegex": ".*\\.test\\.ts$", - "collectCoverageFrom": [ - "**/*.service.{js,ts}" - ], - "transform": { - "^.+\\.(t|j)s$": "ts-jest" - }, - "coverageDirectory": "../coverage/" - }, - "devDependencies": { - "@types/chalk": "^2.2.0", - "@types/cors": "^2.8.12", - "@types/express": "^4.17.13", - "@types/glob": "^7.2.0", - "@types/http-errors": "^1.8.1", - "@types/jest": "^27.0.2", - "@types/lru-cache": "^5.1.1", - "@types/morgan": "^1.9.3", - "@types/node": "^16.11.6", - "@types/node-cron": "^3.0.0", - "@types/supertest": "^2.0.11", - "@types/swagger-jsdoc": "^6.0.1", - "@types/swagger-ui-express": "^4.1.3", - "@types/ws": "^8.2.0", - "electron": "^16.0.2", - "electron-builder": "^22.14.5", - "jest": "^27.3.1", - "nodemon": "^2.0.14", - "prettier": "^2.4.1", - "supertest": "^6.1.6", - "ts-jest": "^27.0.7", - "ts-node": "^10.4.0", - "tslint": "^6.1.3", - "typescript": "^4.4.4" - }, - "scripts": { - "prebuild": "tslint -c tslint.json -p tsconfig.json --fix", - "build": "yarn clean && tsc", - "prestart": "rm -rf dist && yarn build", - "start": "nodemon dist/app.js", - "start:plugin": "yarn build && cross-env PLUGIN_DEV=1 node dist/attu/express/src/app.js", - "start:prod": "node dist/app.js", - "test": "cross-env NODE_ENV=test jest --passWithNoTests", - "test:watch": "jest --watch", - "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage", - "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'", - "clean": "rimraf dist", - "format": "prettier --write '**/*.{ts,js}'", - "mac": "electron-builder --mac", - "linux": "electron-builder --linux", - "win": "electron-builder --win" - }, - "nodemonConfig": { - "ignore": [ - "**/*.test.ts", - "**/*.spec.ts", - "build", - ".git", - "node_modules" - ], - "watch": [ - "src" - ], - "ext": "ts yml" - }, - "homepage": "./", - "main": "electron-starter.js", - "build": { - "appId": "milvus", - "directories": { - "output": "electron-app" - }, - "files": [ - "build/**/*", - "dist/**/*", - "node_modules/**/*", - "electron-starter.js", - "package.json", - "preload.js" - ], - "linux": { - "icon": "./build/zilliz.icns", - "target": [ - "deb" - ] - }, - "mac": { - "icon": "./build/zilliz.icns", - "target": "dmg" - }, - "win": { - "icon": "./build/zilliz.png", - "target": [ - { - "target": "nsis" - } - ] - } - } -} \ No newline at end of file diff --git a/server/package.json b/server/package.json index 482f93b8..51e7ddcc 100644 --- a/server/package.json +++ b/server/package.json @@ -1,10 +1,10 @@ { "name": "attu", - "version": "2.0.1", + "version": "2.0.2", "license": "MIT", "author": { - "name": "ued", - "email": "ued@zilliz.com" + "name": "zilliz", + "email": "zilliz@zilliz.com" }, "description": "Attu help to manage Milvus easily", "repository": {