create-kda
Advanced tools
Comparing version 0.0.23 to 0.0.24
{ | ||
"name": "create-kda", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"main": "index.mjs", | ||
@@ -15,3 +15,3 @@ "repository": "https://github.com/kdajs/create-kda.git", | ||
"files": [ | ||
"index.js", | ||
"index.mjs", | ||
"template" | ||
@@ -18,0 +18,0 @@ ], |
@@ -10,5 +10,4 @@ { | ||
"scripts": { | ||
"clean": "rimraf dist", | ||
"json.schema": "kda json.schema ./src/@types/json.schema.d.ts", | ||
"build:ts": "swc ./src -d dist", | ||
"build:ts": "kda-build", | ||
"build": "run-s json.schema build:ts", | ||
@@ -22,6 +21,6 @@ "check:type": "tsc", | ||
"server:prod:debug": "kda server production --debug=8080", | ||
"start": "run-s clean build:ts server:test", | ||
"debug": "run-s clean build:ts server:test:debug", | ||
"debug:test": "run-s clean build server:test:debug", | ||
"debug:prod": "run-s clean build server:prod:debug", | ||
"start": "run-s build:ts server:test", | ||
"debug": "run-s build:ts server:test:debug", | ||
"debug:test": "run-s build server:test:debug", | ||
"debug:prod": "run-s build server:prod:debug", | ||
"release:test": "kda pm2exec test --reload --esmodule", | ||
@@ -40,4 +39,2 @@ "release:prod": "kda pm2exec production --reload --esmodule" | ||
"devDependencies": { | ||
"@swc/cli": "^0.1.40", | ||
"@swc/core": "^1.2.57", | ||
"@typescript-eslint/eslint-plugin": "^4.13.0", | ||
@@ -50,4 +47,4 @@ "@typescript-eslint/parser": "^4.13.0", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"kda-build": "{{kdaBuildVersion}}", | ||
"npm-run-all": "^4.1.5", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.3.2", | ||
@@ -54,0 +51,0 @@ "yorkie": "^2.0.0" |
import 'kda' | ||
// import models from '../models' | ||
import utils from '../utils' | ||
import clients from '../clients' | ||
// import models from '@/models' | ||
import utils from '@/utils' | ||
import clients from '@/clients' | ||
@@ -6,0 +6,0 @@ declare module 'kda' { |
@@ -1,8 +0,7 @@ | ||
import './router' | ||
import './clients' | ||
// import models from './models' | ||
import utils from './utils' | ||
import clients from './clients' | ||
import '@/router' | ||
// import models from '@/models' | ||
import utils from '@/utils' | ||
import clients from '@/clients' | ||
import { createServer } from 'kda' | ||
createServer({ utils, clients }).start(3000) |
import { createUDPSocketClient } from 'kda' | ||
import { TestClientSend } from './@types/kda.d'; | ||
import { TestClientSend } from '@/@types/kda.d'; | ||
@@ -4,0 +4,0 @@ export default { |
import { createUDPSocketController } from 'kda' | ||
import { TestClientSendTest1, TestClientSendTest2 } from './../@types/kda.d'; | ||
import { TestClientSendTest1, TestClientSendTest2 } from '@/@types/kda.d'; | ||
@@ -4,0 +4,0 @@ export const Test1 = createUDPSocketController<TestClientSendTest1>(async (ctx, params, resolve, reject) => { |
import { createModels } from 'kda' | ||
import config from './config' | ||
import User from './models/user' | ||
import config from '@/config' | ||
import User from '@/models/user' | ||
@@ -5,0 +5,0 @@ export default await createModels({ |
import { createRouter, createUploadController } from 'kda' | ||
import Hello from './controllers/hello' | ||
import { TestClientPath } from './@types/kda.d' | ||
import { Test1, Test2 } from './controllers/udp' | ||
import Hello from '@/controllers/hello' | ||
import { TestClientPath } from '@/@types/kda.d' | ||
import { Test1, Test2 } from '@/controllers/udp' | ||
@@ -6,0 +6,0 @@ const router = createRouter() |
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"baseUrl": "./src", | ||
"paths": { | ||
"@/*": ["./*"] | ||
}, | ||
"module": "ESNext", | ||
"moduleResolution": "Node", | ||
"allowSyntheticDefaultImports": true, | ||
"target": "ES2017", | ||
"target": "ESNext", | ||
"strictNullChecks": true, | ||
@@ -18,3 +21,3 @@ "emitDecoratorMetadata": true, | ||
"include": [ | ||
"src/**/*.ts" | ||
"./**/*.ts" | ||
], | ||
@@ -21,0 +24,0 @@ "exclude": [ |
Sorry, the diff of this file is not supported yet
265
23119
27