Rename scope @rondo to @rondo.dev
This commit is contained in:
parent
6497bd42ca
commit
dffad844ad
22
package-lock.json
generated
22
package-lock.json
generated
@ -2112,34 +2112,34 @@
|
||||
"url-template": "^2.0.8"
|
||||
}
|
||||
},
|
||||
"@rondo/argparse": {
|
||||
"@rondo.dev/argparse": {
|
||||
"version": "file:packages/argparse"
|
||||
},
|
||||
"@rondo/client": {
|
||||
"@rondo.dev/client": {
|
||||
"version": "file:packages/client"
|
||||
},
|
||||
"@rondo/comments-client": {
|
||||
"@rondo.dev/comments-client": {
|
||||
"version": "file:packages/comments-client"
|
||||
},
|
||||
"@rondo/comments-common": {
|
||||
"@rondo.dev/comments-common": {
|
||||
"version": "file:packages/comments-common"
|
||||
},
|
||||
"@rondo/comments-server": {
|
||||
"@rondo.dev/comments-server": {
|
||||
"version": "file:packages/comments-server"
|
||||
},
|
||||
"@rondo/common": {
|
||||
"@rondo.dev/common": {
|
||||
"version": "file:packages/common"
|
||||
},
|
||||
"@rondo/image-upload": {
|
||||
"@rondo.dev/image-upload": {
|
||||
"version": "file:packages/image-upload"
|
||||
},
|
||||
"@rondo/jsonrpc": {
|
||||
"@rondo.dev/jsonrpc": {
|
||||
"version": "file:packages/jsonrpc"
|
||||
},
|
||||
"@rondo/scripts": {
|
||||
"@rondo.dev/scripts": {
|
||||
"version": "file:packages/scripts"
|
||||
},
|
||||
"@rondo/server": {
|
||||
"@rondo.dev/server": {
|
||||
"version": "file:packages/server",
|
||||
"requires": {
|
||||
"bcrypt": "^3.0.3",
|
||||
@ -2162,7 +2162,7 @@
|
||||
"winston": "^3.1.0"
|
||||
}
|
||||
},
|
||||
"@rondo/tasq": {
|
||||
"@rondo.dev/tasq": {
|
||||
"version": "file:packages/tasq"
|
||||
},
|
||||
"@types/babel__core": {
|
||||
|
||||
22
package.json
22
package.json
@ -1,16 +1,16 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@rondo/client": "file:packages/client",
|
||||
"@rondo/common": "file:packages/common",
|
||||
"@rondo/server": "file:packages/server",
|
||||
"@rondo/comments-server": "file:packages/comments-server",
|
||||
"@rondo/comments-common": "file:packages/comments-common",
|
||||
"@rondo/comments-client": "file:packages/comments-client",
|
||||
"@rondo/image-upload": "file:packages/image-upload",
|
||||
"@rondo/tasq": "file:packages/tasq",
|
||||
"@rondo/jsonrpc": "file:packages/jsonrpc",
|
||||
"@rondo/scripts": "file:packages/scripts",
|
||||
"@rondo/argparse": "file:packages/argparse"
|
||||
"@rondo.dev/client": "file:packages/client",
|
||||
"@rondo.dev/common": "file:packages/common",
|
||||
"@rondo.dev/server": "file:packages/server",
|
||||
"@rondo.dev/comments-server": "file:packages/comments-server",
|
||||
"@rondo.dev/comments-common": "file:packages/comments-common",
|
||||
"@rondo.dev/comments-client": "file:packages/comments-client",
|
||||
"@rondo.dev/image-upload": "file:packages/image-upload",
|
||||
"@rondo.dev/tasq": "file:packages/tasq",
|
||||
"@rondo.dev/jsonrpc": "file:packages/jsonrpc",
|
||||
"@rondo.dev/scripts": "file:packages/scripts",
|
||||
"@rondo.dev/argparse": "file:packages/argparse"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bcrypt": "^3.0.0",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rondo/argparse",
|
||||
"name": "@rondo.dev/argparse",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rondo/client",
|
||||
"name": "@rondo.dev/client",
|
||||
"private": true,
|
||||
"peerDependencies": {
|
||||
"axios": "^0.18.0",
|
||||
|
||||
@ -2,7 +2,7 @@ import React from 'react'
|
||||
import {History, Location} from 'history'
|
||||
import {IWithRouterProps} from './IWithRouterProps'
|
||||
import {Link as RouterLink, LinkProps} from 'react-router-dom'
|
||||
import {URLFormatter} from '@rondo/common'
|
||||
import {URLFormatter} from '@rondo.dev/common'
|
||||
import {withRouter} from 'react-router'
|
||||
|
||||
export interface ILinkProps
|
||||
|
||||
@ -3,7 +3,7 @@ import React from 'react'
|
||||
import {AnyAction} from 'redux'
|
||||
import {CRUDReducer, TCRUDMethod, TCRUDAsyncMethod} from './'
|
||||
import {HTTPClientMock, TestUtils, getError} from '../test-utils'
|
||||
import {TMethod} from '@rondo/common'
|
||||
import {TMethod} from '@rondo.dev/common'
|
||||
import {IPendingAction} from '../actions'
|
||||
|
||||
describe('CRUD', () => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import {IHTTPClient, ITypedRequestParams} from '../http'
|
||||
import {IRoutes, TFilter, TOnlyDefined} from '@rondo/common'
|
||||
import {IRoutes, TFilter, TOnlyDefined} from '@rondo.dev/common'
|
||||
import {TCRUDAction} from './TCRUDAction'
|
||||
import {TCRUDChangeAction} from './TCRUDAction'
|
||||
import {TCRUDCreateAction} from './TCRUDAction'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import {IAction, IResolvedAction} from '../actions'
|
||||
import {TCRUDAction} from './TCRUDAction'
|
||||
import {TCRUDMethod} from './TCRUDMethod'
|
||||
import {indexBy, without, TFilter} from '@rondo/common'
|
||||
import {indexBy, without, TFilter} from '@rondo.dev/common'
|
||||
|
||||
export interface ICRUDEntity {
|
||||
readonly id: number
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import axios from 'axios'
|
||||
import {IHTTPClient} from './IHTTPClient'
|
||||
import {IHeader} from './IHeader'
|
||||
import {TMethod, IRoutes, URLFormatter} from '@rondo/common'
|
||||
import {TMethod, IRoutes, URLFormatter} from '@rondo.dev/common'
|
||||
import {IRequest} from './IRequest'
|
||||
import {IResponse} from './IResponse'
|
||||
import {ITypedRequestParams} from './ITypedRequestParams'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {TMethod, IRoutes} from '@rondo/common'
|
||||
import {TMethod, IRoutes} from '@rondo.dev/common'
|
||||
import {ITypedRequestParams} from './ITypedRequestParams'
|
||||
|
||||
export interface IHTTPClient<T extends IRoutes> {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {TMethod} from '@rondo/common'
|
||||
import {TMethod} from '@rondo.dev/common'
|
||||
|
||||
export interface IRequest {
|
||||
method: TMethod,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IRoutes, TMethod} from '@rondo/common'
|
||||
import {IRoutes, TMethod} from '@rondo.dev/common'
|
||||
|
||||
export interface ITypedRequestParams<
|
||||
T extends IRoutes,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import {TGetAction, TAsyncAction, IAction, PendingAction} from '../actions'
|
||||
import {IAPIDef, ICredentials, INewUser, IUser} from '@rondo/common'
|
||||
import {IAPIDef, ICredentials, INewUser, IUser} from '@rondo.dev/common'
|
||||
import {IHTTPClient} from '../http/IHTTPClient'
|
||||
|
||||
export type TLoginAction =
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import {Connector} from '../redux/Connector'
|
||||
import {ICredentials} from '@rondo/common'
|
||||
import {ICredentials} from '@rondo.dev/common'
|
||||
import {ILoginState} from './LoginReducer'
|
||||
import {TStateSelector} from '../redux'
|
||||
import {LoginActions} from './LoginActions'
|
||||
|
||||
@ -3,7 +3,7 @@ import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import T from 'react-dom/test-utils'
|
||||
import {HTTPClientMock, TestUtils, getError} from '../test-utils'
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
import {MemoryRouter} from 'react-router-dom'
|
||||
|
||||
const test = new TestUtils()
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import {FaUser, FaLock} from 'react-icons/fa'
|
||||
import {ICredentials, IUser} from '@rondo/common'
|
||||
import {ICredentials, IUser} from '@rondo.dev/common'
|
||||
import {Input} from '../components/Input'
|
||||
import {Link} from 'react-router-dom'
|
||||
import {Redirect} from '../components/Redirect'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IUser} from '@rondo/common'
|
||||
import {IUser} from '@rondo.dev/common'
|
||||
import {TLoginAction} from './LoginActions'
|
||||
|
||||
export interface ILoginState {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import {Connector} from '../redux/Connector'
|
||||
import {INewUser} from '@rondo/common'
|
||||
import {INewUser} from '@rondo.dev/common'
|
||||
import {ILoginState} from './LoginReducer'
|
||||
import {TStateSelector} from '../redux'
|
||||
import {LoginActions} from './LoginActions'
|
||||
|
||||
@ -3,7 +3,7 @@ import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import T from 'react-dom/test-utils'
|
||||
import {HTTPClientMock, TestUtils, getError} from '../test-utils'
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
import {MemoryRouter} from 'react-router-dom'
|
||||
|
||||
const test = new TestUtils()
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import {FaEnvelope, FaUser, FaLock} from 'react-icons/fa'
|
||||
import {INewUser, IUser} from '@rondo/common'
|
||||
import {INewUser, IUser} from '@rondo.dev/common'
|
||||
import {Input} from '../components/Input'
|
||||
import {Link} from 'react-router-dom'
|
||||
import {Redirect} from '../components/Redirect'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import {Action} from 'redux'
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
import {IClientConfig} from './IClientConfig'
|
||||
import {IHTTPClient, HTTPClient} from '../http'
|
||||
import {IRenderer} from './IRenderer'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
import {IClientConfig} from './IClientConfig'
|
||||
import {Store} from 'redux'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import ssrPrepass from 'react-ssr-prepass'
|
||||
import {Action} from 'redux'
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
import {IClientConfig} from './IClientConfig'
|
||||
import {IHTTPClient, HTTPClient} from '../http'
|
||||
import {IRenderer} from './IRenderer'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
import {TGetPendingAction, TAsyncAction, PendingAction} from '../actions'
|
||||
import {IHTTPClient} from '../http/IHTTPClient'
|
||||
import {ITeam, IUser, IUserInTeam} from '@rondo/common'
|
||||
import {ITeam, IUser, IUserInTeam} from '@rondo.dev/common'
|
||||
|
||||
export type TTeamAction =
|
||||
TAsyncAction<ITeam[], 'TEAMS'>
|
||||
|
||||
@ -2,7 +2,7 @@ import * as Feature from './'
|
||||
// export ReactDOM from 'react-dom'
|
||||
import T from 'react-dom/test-utils'
|
||||
import {HTTPClientMock, TestUtils, getError} from '../test-utils'
|
||||
import {IAPIDef, ITeam, IUserInTeam} from '@rondo/common'
|
||||
import {IAPIDef, ITeam, IUserInTeam} from '@rondo.dev/common'
|
||||
import React from 'react'
|
||||
import {MemoryRouter} from 'react-router-dom'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import {Button, Control, Heading, Help, Input} from 'bloomer'
|
||||
import {ITeam} from '@rondo/common'
|
||||
import {ITeam} from '@rondo.dev/common'
|
||||
import {TeamActions} from './TeamActions'
|
||||
import {FaPlusSquare, FaCheck, FaEdit} from 'react-icons/fa'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import {Button, Panel, PanelHeading, PanelBlock} from 'bloomer'
|
||||
import {FaPlus, FaEdit, FaTimes} from 'react-icons/fa'
|
||||
import {ITeam, TReadonlyRecord} from '@rondo/common'
|
||||
import {ITeam, TReadonlyRecord} from '@rondo.dev/common'
|
||||
import {Link} from 'react-router-dom'
|
||||
import {TeamActions} from './TeamActions'
|
||||
import {TeamEditor} from './TeamEditor'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import {History, Location} from 'history'
|
||||
import {ITeam, IUserInTeam, TReadonlyRecord} from '@rondo/common'
|
||||
import {ITeam, IUserInTeam, TReadonlyRecord} from '@rondo.dev/common'
|
||||
import {Panel, PanelBlock, PanelHeading} from 'bloomer'
|
||||
import {Route, Switch} from 'react-router-dom'
|
||||
import {TeamActions} from './TeamActions'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {
|
||||
ITeam, IUserInTeam, TReadonlyRecord, indexBy, without,
|
||||
} from '@rondo/common'
|
||||
} from '@rondo.dev/common'
|
||||
import {TTeamAction} from './TeamActions'
|
||||
import {TGetResolvedAction} from '../actions'
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import React from 'react'
|
||||
import {ITeam, IUser, IUserInTeam, TReadonlyRecord} from '@rondo/common'
|
||||
import {ITeam, IUser, IUserInTeam, TReadonlyRecord} from '@rondo.dev/common'
|
||||
import {TeamActions} from './TeamActions'
|
||||
import {FaUser, FaCheck, FaTimes} from 'react-icons/fa'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import {HTTPClient} from '../http/HTTPClient'
|
||||
import {IRequest} from '../http/IRequest'
|
||||
import {IResponse} from '../http/IResponse'
|
||||
import {IRoutes, TMethod} from '@rondo/common'
|
||||
import {IRoutes, TMethod} from '@rondo.dev/common'
|
||||
import {ITypedRequestParams} from '../http/ITypedRequestParams'
|
||||
|
||||
interface IReqRes {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rondo/common",
|
||||
"name": "@rondo.dev/common",
|
||||
"private": true,
|
||||
"main": "lib/index.js",
|
||||
"module": "esm/index.js",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rondo/image-upload",
|
||||
"name": "@rondo.dev/image-upload",
|
||||
"private": true,
|
||||
"peerDependencies": {
|
||||
"react": "^16.7.0",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rondo/jsonrpc",
|
||||
"name": "@rondo.dev/jsonrpc",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
|
||||
@ -2,7 +2,7 @@ import express, {ErrorRequestHandler} from 'express'
|
||||
import {FunctionPropertyNames} from './types'
|
||||
import {IDEMPOTENT_METHOD_REGEX} from './idempotent'
|
||||
import {IErrorResponse} from './error'
|
||||
import {ILogger} from '@rondo/common'
|
||||
import {ILogger} from '@rondo.dev/common'
|
||||
import {ISuccessResponse} from './jsonrpc'
|
||||
import {NextFunction, Request, Response, Router} from 'express'
|
||||
import {createError, isJSONRPCError, IJSONRPCError, IError} from './error'
|
||||
|
||||
@ -10,7 +10,7 @@ import {TPendingActions, TAllActions} from './types'
|
||||
import {combineReducers} from 'redux'
|
||||
import {createActions, createReducer} from './redux'
|
||||
import {createRemoteClient} from './remote'
|
||||
import {createStore} from '@rondo/client'
|
||||
import {createStore} from '@rondo.dev/client'
|
||||
import {jsonrpc} from './express'
|
||||
import {keys} from 'ts-transformer-keys'
|
||||
import {noopLogger} from './test-utils'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {ILogger} from '@rondo/common'
|
||||
import {ILogger} from '@rondo.dev/common'
|
||||
|
||||
const noop = () => undefined
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IPendingAction, IResolvedAction, IRejectedAction} from '@rondo/client'
|
||||
import {IPendingAction, IResolvedAction, IRejectedAction} from '@rondo.dev/client'
|
||||
|
||||
export type ArgumentTypes<T> =
|
||||
T extends (...args: infer U) => infer R ? U : never
|
||||
|
||||
2
packages/scripts/package-lock.json
generated
2
packages/scripts/package-lock.json
generated
@ -1,4 +1,4 @@
|
||||
{
|
||||
"name": "@rondo/scripts",
|
||||
"name": "@rondo.dev/scripts",
|
||||
"lockfileVersion": 1
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rondo/scripts",
|
||||
"name": "@rondo.dev/scripts",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
import * as log from './log'
|
||||
import {TCommand} from './TCommand'
|
||||
import {argparse, arg} from '@rondo/argparse'
|
||||
import {argparse, arg} from '@rondo.dev/argparse'
|
||||
import {resolve} from './resolve'
|
||||
|
||||
async function run(
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
import * as fs from 'fs'
|
||||
import * as log from '../log'
|
||||
import * as path from 'path'
|
||||
import {argparse, arg} from '@rondo/argparse'
|
||||
import {argparse, arg} from '@rondo.dev/argparse'
|
||||
import {run} from '../run'
|
||||
|
||||
export async function add(...argv: string[]) {
|
||||
const {parse} = argparse({
|
||||
name: arg('string', {positional: true, required: true}),
|
||||
namespace: arg('string', {default: '@rondo'}),
|
||||
namespace: arg('string', {default: '@rondo.dev'}),
|
||||
help: arg('boolean', {
|
||||
alias: 'h',
|
||||
description: 'Print help message',
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import * as fs from 'fs'
|
||||
import * as log from '../log'
|
||||
import * as p from 'path'
|
||||
import {argparse, arg} from '@rondo/argparse'
|
||||
import {argparse, arg} from '@rondo.dev/argparse'
|
||||
import {findNodeModules} from '../modules'
|
||||
import {join} from 'path'
|
||||
import {run} from '../run'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import * as fs from 'fs'
|
||||
import * as ts from 'typescript'
|
||||
import {argparse, arg} from '@rondo/argparse'
|
||||
import {argparse, arg} from '@rondo.dev/argparse'
|
||||
import {error, info} from '../log'
|
||||
|
||||
function isObjectType(type: ts.Type): type is ts.ObjectType {
|
||||
@ -50,8 +50,8 @@ interface IClassDefinition {
|
||||
* b) Referenced exported classes from the same file
|
||||
* c) Referenced exported classes from a neighbouring file
|
||||
* d) Referenced imported classes from external modules. Real world example:
|
||||
* entities in @rondo/comments-server import and use entities from
|
||||
* @rondo/comments. These types will have to be processed by this module.
|
||||
* entities in @rondo.dev/comments-server import and use entities from
|
||||
* @rondo.dev/comments. These types will have to be processed by this module.
|
||||
* e) Referenced interfaces should be re-imported in the output file.
|
||||
*
|
||||
*/
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
const {ConfigReader} = require('@rondo/server')
|
||||
const {ConfigReader} = require('@rondo.dev/server')
|
||||
const config = new ConfigReader(__dirname).read()
|
||||
module.exports = JSON.parse(JSON.stringify(config.get('app.db')))
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rondo/server",
|
||||
"name": "@rondo.dev/server",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
|
||||
@ -11,7 +11,7 @@ import {IApplication} from './IApplication'
|
||||
import {IConfig} from './IConfig'
|
||||
import {IDatabase} from '../database/IDatabase'
|
||||
import {ILogger} from '../logger/ILogger'
|
||||
import {IRoutes} from '@rondo/common'
|
||||
import {IRoutes} from '@rondo.dev/common'
|
||||
import {IServices} from './IServices'
|
||||
import {ITransactionManager} from '../database/ITransactionManager'
|
||||
import {loggerFactory, LoggerFactory} from '../logger/LoggerFactory'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import express from 'express'
|
||||
import {AsyncRouter} from '../router'
|
||||
import {IRoutes} from '@rondo/common'
|
||||
import {IRoutes} from '@rondo.dev/common'
|
||||
import {IDatabase} from '../database/IDatabase'
|
||||
|
||||
export interface IApplication {
|
||||
|
||||
@ -1 +1 @@
|
||||
export {ILogger} from '@rondo/common'
|
||||
export {ILogger} from '@rondo.dev/common'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import express, {Application} from 'express'
|
||||
import request from 'supertest'
|
||||
import {Authenticator} from './Authenticator'
|
||||
import {ICredentials} from '@rondo/common'
|
||||
import {ICredentials} from '@rondo.dev/common'
|
||||
import {IUserService} from '../services'
|
||||
import {handlePromise} from './handlePromise'
|
||||
import {urlencoded} from 'body-parser'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IRole} from '@rondo/common'
|
||||
import {IRole} from '@rondo.dev/common'
|
||||
|
||||
export interface IRoleService {
|
||||
create(name: string): Promise<IRole>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import express from 'express'
|
||||
import {IRoutes, TMethod} from '@rondo/common'
|
||||
import {IRoutes, TMethod} from '@rondo.dev/common'
|
||||
import {TTypedHandler, TTypedMiddleware} from './TTypedHandler'
|
||||
|
||||
export class AsyncRouter<R extends IRoutes> {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import express from 'express'
|
||||
import {IRoute} from '@rondo/common'
|
||||
import {IRoute} from '@rondo.dev/common'
|
||||
|
||||
export interface ITypedRequest<T extends IRoute> extends express.Request {
|
||||
body: T['body']
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import express from 'express'
|
||||
import {IRoutes, TMethod} from '@rondo/common'
|
||||
import {IRoutes, TMethod} from '@rondo.dev/common'
|
||||
import {ITypedRequest} from './ITypedRequest'
|
||||
|
||||
export type TTypedMiddleware<
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import express from 'express'
|
||||
import {AsyncRouter} from './AsyncRouter'
|
||||
import {IRoutes, TMethod} from '@rondo/common'
|
||||
import {IRoutes, TMethod} from '@rondo.dev/common'
|
||||
import {ITransactionManager} from '../database/ITransactionManager'
|
||||
import {TTypedHandler} from './TTypedHandler'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {THandler} from '../middleware/THandler'
|
||||
import {AsyncRouter} from '../router'
|
||||
import {IRoutes} from '@rondo/common'
|
||||
import {IRoutes} from '@rondo.dev/common'
|
||||
|
||||
export abstract class BaseRoute<T extends IRoutes> {
|
||||
readonly handle: THandler
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {AsyncRouter} from '../router'
|
||||
import {BaseRoute} from './BaseRoute'
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
import {IUserService} from '../services'
|
||||
import {Authenticator} from '../middleware'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {AsyncRouter} from '../router'
|
||||
import {BaseRoute} from './BaseRoute'
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
import {IUserService} from '../services'
|
||||
import {ensureLoggedInApi} from '../middleware'
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// import React from 'react'
|
||||
// import {CComponent} from '@rondo/client'
|
||||
// import {CComponent} from '@rondo.dev/client'
|
||||
// import {Provider} from 'react-redux'
|
||||
import {Router} from 'express'
|
||||
// import {createReadStream} from 'fs'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {ICredentials, INewUser, IUser} from '@rondo/common'
|
||||
import {ICredentials, INewUser, IUser} from '@rondo.dev/common'
|
||||
|
||||
export interface IUserService {
|
||||
createUser(credentials: INewUser): Promise<IUser>
|
||||
|
||||
@ -7,8 +7,8 @@ import {
|
||||
trim,
|
||||
team as t,
|
||||
IUserInTeam,
|
||||
} from '@rondo/common'
|
||||
import {Contextual} from '@rondo/jsonrpc'
|
||||
} from '@rondo.dev/common'
|
||||
import {Contextual} from '@rondo.dev/jsonrpc'
|
||||
|
||||
type IContext = t.IContext
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import createError from 'http-errors'
|
||||
import {BaseService} from './BaseService'
|
||||
import {DB} from '../database/DB'
|
||||
import {ICredentials, INewUser, IUser, trim} from '@rondo/common'
|
||||
import {ICredentials, INewUser, IUser, trim} from '@rondo.dev/common'
|
||||
import {IUserService} from './IUserService'
|
||||
import {UserEmail} from '../entities/UserEmail'
|
||||
import {User} from '../entities/User'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {Team} from '../entities/Team'
|
||||
import {IUserTeamParams} from './IUserTeamParams'
|
||||
import {IUserInTeam} from '@rondo/common'
|
||||
import {IUserInTeam} from '@rondo.dev/common'
|
||||
|
||||
export interface ITeamService {
|
||||
create(params: {name: string, userId: number}): Promise<Team>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {AsyncRouter} from '../router'
|
||||
import {BaseRoute} from '../routes/BaseRoute'
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
import {ITeamService} from './ITeamService'
|
||||
import {IUserPermissions} from '../user/IUserPermissions'
|
||||
import {ensureLoggedInApi} from '../middleware'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {DB} from '../database/DB'
|
||||
import {ITeamService} from './ITeamService'
|
||||
import {IUserInTeam, trim} from '@rondo/common'
|
||||
import {IUserInTeam, trim} from '@rondo.dev/common'
|
||||
import {IUserTeamParams} from './IUserTeamParams'
|
||||
import {Team} from '../entities/Team'
|
||||
import {UserTeam} from '../entities/UserTeam'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import {RequestTester} from '../test-utils'
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
|
||||
export async function createTeam(t: RequestTester<IAPIDef>, name: string) {
|
||||
const response = await t
|
||||
|
||||
@ -3,7 +3,7 @@ import {
|
||||
TMethod,
|
||||
IRoutes,
|
||||
URLFormatter,
|
||||
} from '@rondo/common'
|
||||
} from '@rondo.dev/common'
|
||||
|
||||
// https://stackoverflow.com/questions/48215950/exclude-property-from-type
|
||||
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
|
||||
|
||||
@ -5,7 +5,7 @@ import {DB} from '../database/DB'
|
||||
import {
|
||||
ENTITY_MANAGER, ITransactionManager,
|
||||
} from '../database/ITransactionManager'
|
||||
import {IRoutes} from '@rondo/common'
|
||||
import {IRoutes} from '@rondo.dev/common'
|
||||
import {IBootstrap} from '../application/IBootstrap'
|
||||
import {RequestTester} from './RequestTester'
|
||||
import {Role} from '../entities/Role'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import {Bootstrap} from './application/Bootstrap'
|
||||
import {IAPIDef} from '@rondo/common'
|
||||
import {IAPIDef} from '@rondo.dev/common'
|
||||
import {NamespaceMock, TestUtils} from './test-utils'
|
||||
import {config} from './config'
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rondo/tasq",
|
||||
"name": "@rondo.dev/tasq",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
|
||||
@ -25,7 +25,7 @@ function getDependencies(root) {
|
||||
isDep: false,
|
||||
}
|
||||
}
|
||||
if (dep.startsWith('@rondo/')) {
|
||||
if (dep.startsWith('@rondo.dev/')) {
|
||||
return {
|
||||
file: require.resolve(dep),
|
||||
isDep: false
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@rondo/package",
|
||||
"name": "@rondo.dev/package",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user