refactor: rename package
This commit is contained in:
parent
2f990bc41d
commit
7288d33ce2
@ -7,7 +7,7 @@
|
|||||||
"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"
|
||||||
},
|
},
|
||||||
|
@ -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>",
|
@ -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",
|
@ -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';
|
@ -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';
|
||||||
|
|
@ -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"
|
@ -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 {
|
@ -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>",
|
@ -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>",
|
Loading…
Reference in New Issue
Block a user