1
0
Fork 0

refactor: rename package

master
MiaoWoo 2019-06-21 16:47:18 +08:00
parent 2f990bc41d
commit 7288d33ce2
39 changed files with 39 additions and 38 deletions

View File

@ -1,20 +1,20 @@
{ {
"private": true, "private": true,
"name": "cc-server-parent", "name": "cc-server-parent",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"author": "MiaoWoo <admin@yumc.pw>", "author": "MiaoWoo <admin@yumc.pw>",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "npx lerna run build", "build": "npx lerna run build",
"lp": "npx lerna publish", "lp": "npx lerna publish --registry=https://repo.yumc.pw/repository/npm-hosted/",
"publish-please": "publish-please", "publish-please": "publish-please",
"prepublishOnly": "publish-please guard" "prepublishOnly": "publish-please guard"
}, },
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
], ],
"devDependencies": { "devDependencies": {
"lerna": "^3.14.1" "lerna": "^3.14.1"
} }
} }

View File

@ -1,5 +1,5 @@
{ {
"name": "cc-server-binding", "name": "@cc-server/binding",
"version": "0.3.1", "version": "0.3.1",
"description": "> TODO: description", "description": "> TODO: description",
"author": "MiaoWoo <admin@yumc.pw>", "author": "MiaoWoo <admin@yumc.pw>",
@ -30,4 +30,4 @@
"bugs": { "bugs": {
"url": "https://github.com/502647092/cc-server-parent/issues" "url": "https://github.com/502647092/cc-server-parent/issues"
} }
} }

View File

@ -1,5 +1,5 @@
{ {
"name": "cc-server-core", "name": "@cc-server/core",
"version": "0.3.1", "version": "0.3.1",
"description": "> TODO: description", "description": "> TODO: description",
"author": "MiaoWoo <admin@yumc.pw>", "author": "MiaoWoo <admin@yumc.pw>",
@ -20,10 +20,10 @@
"url": "git+https://github.com/502647092/cc-server-parent.git" "url": "git+https://github.com/502647092/cc-server-parent.git"
}, },
"dependencies": { "dependencies": {
"@cc-server/binding": "^0.3.1",
"@cc-server/db-mongo": "^0.3.1",
"@cc-server/ioc": "^0.3.1",
"body-parser": "^1.19.0", "body-parser": "^1.19.0",
"cc-server-binding": "^0.3.1",
"cc-server-db-mongo": "^0.3.1",
"cc-server-ioc": "^0.3.1",
"inversify": "^5.0.1", "inversify": "^5.0.1",
"inversify-express-utils": "^6.3.2", "inversify-express-utils": "^6.3.2",
"prettyjson": "^1.2.1", "prettyjson": "^1.2.1",
@ -32,6 +32,7 @@
"devDependencies": { "devDependencies": {
"@types/body-parser": "^1.17.0", "@types/body-parser": "^1.17.0",
"@types/express": "^4.17.0", "@types/express": "^4.17.0",
"@types/prettyjson": "^0.0.29",
"mocha": "^6.1.4", "mocha": "^6.1.4",
"rimraf": "^2.6.3", "rimraf": "^2.6.3",
"ts-node": "^8.2.0", "ts-node": "^8.2.0",

View File

@ -2,8 +2,8 @@ import {
controller, response, requestBody, httpGet, httpPost, queryParam, requestParam controller, response, requestBody, httpGet, httpPost, queryParam, requestParam
} from 'inversify-express-utils'; } from 'inversify-express-utils';
import { inject, postConstruct } from 'inversify'; import { inject, postConstruct } from 'inversify';
import { Vaild, NotBlank, NotNull } from 'cc-server-binding' import { Vaild, NotBlank, NotNull } from '@cc-server/binding'
import { DBClient } from 'cc-server-db' import { DBClient } from '@cc-server/db'
import 'cc-server-db-mongo' import 'cc-server-db-mongo'
//process.env.FAAS_MONGO_URL = 'mongodb://192.168.0.2:27017'; //process.env.FAAS_MONGO_URL = 'mongodb://192.168.0.2:27017';

View File

@ -2,8 +2,8 @@ import 'reflect-metadata';
import * as express from "express"; import * as express from "express";
import { InversifyExpressServer, interfaces, getRouteInfo } from 'inversify-express-utils'; import { InversifyExpressServer, interfaces, getRouteInfo } from 'inversify-express-utils';
import * as bodyParser from 'body-parser'; import * as bodyParser from 'body-parser';
import { buildProviderModule } from 'cc-server-ioc'; import { buildProviderModule } from '@cc-server/ioc';
import { rebuildServer } from 'cc-server-binding' import { rebuildServer } from '@cc-server/binding'
import * as prettyjson from "prettyjson"; import * as prettyjson from "prettyjson";
import { Container } from 'inversify'; import { Container } from 'inversify';

View File

@ -1,5 +1,5 @@
{ {
"name": "cc-server-db-mongo", "name": "@cc-server/db-mongo",
"version": "0.3.1", "version": "0.3.1",
"description": "> TODO: description", "description": "> TODO: description",
"author": "MiaoWoo <admin@yumc.pw>", "author": "MiaoWoo <admin@yumc.pw>",
@ -18,8 +18,8 @@
"url": "git+https://github.com/502647092/cc-server-parent.git" "url": "git+https://github.com/502647092/cc-server-parent.git"
}, },
"dependencies": { "dependencies": {
"cc-server-db": "^0.3.0", "@cc-server/db": "^0.3.0",
"cc-server-ioc": "^0.3.1", "@cc-server/ioc": "^0.3.1",
"inversify": "^5.0.1", "inversify": "^5.0.1",
"mongodb": "^3.2.7", "mongodb": "^3.2.7",
"reflect-metadata": "^0.1.13" "reflect-metadata": "^0.1.13"
@ -31,4 +31,4 @@
"typescript": "^3.5.1" "typescript": "^3.5.1"
}, },
"gitHead": "7d84393a3cb6be6be9ed51d71f12677d2d7d0728" "gitHead": "7d84393a3cb6be6be9ed51d71f12677d2d7d0728"
} }

View File

@ -1,7 +1,7 @@
import { Db, ObjectID, Collection } from 'mongodb'; import { Db, ObjectID, Collection } from 'mongodb';
import { MongoDBConnection } from './connection'; import { MongoDBConnection } from './connection';
import { provide } from 'cc-server-ioc' import { provide } from '@cc-server/ioc'
import { DBClient } from 'cc-server-db' import { DBClient } from '@cc-server/db'
@provide(DBClient) @provide(DBClient)
export class MongoDBClient<T = any> implements DBClient { export class MongoDBClient<T = any> implements DBClient {

View File

@ -1,5 +1,5 @@
{ {
"name": "cc-server-db", "name": "@cc-server/db",
"version": "0.3.0", "version": "0.3.0",
"description": "> TODO: description", "description": "> TODO: description",
"author": "MiaoWoo <admin@yumc.pw>", "author": "MiaoWoo <admin@yumc.pw>",
@ -25,4 +25,4 @@
"rimraf": "^2.6.3", "rimraf": "^2.6.3",
"typescript": "^3.5.1" "typescript": "^3.5.1"
} }
} }

View File

@ -1,5 +1,5 @@
{ {
"name": "cc-server-ioc", "name": "@cc-server/ioc",
"version": "0.3.1", "version": "0.3.1",
"description": "> TODO: description", "description": "> TODO: description",
"author": "MiaoWoo <admin@yumc.pw>", "author": "MiaoWoo <admin@yumc.pw>",
@ -29,4 +29,4 @@
"typescript": "^3.5.1" "typescript": "^3.5.1"
}, },
"gitHead": "7d84393a3cb6be6be9ed51d71f12677d2d7d0728" "gitHead": "7d84393a3cb6be6be9ed51d71f12677d2d7d0728"
} }