mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
✳ added server
package
This commit is contained in:
parent
ac3d2e67cc
commit
f975406092
9463
package-lock.json
generated
Normal file
9463
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -27,6 +27,6 @@
|
|||||||
"jsdoc": "^3.6.5"
|
"jsdoc": "^3.6.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ragestudio/nodecorejs": "^0.14.7"
|
"@ragestudio/nodecorejs": "^0.15.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
# @undefined/comty
|
# @comty
|
||||||
|
11494
packages/comty/package-lock.json
generated
11494
packages/comty/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@icons-pack/react-simple-icons": "^3.8.0",
|
"@icons-pack/react-simple-icons": "^3.8.0",
|
||||||
"@lingui/react": "^3.3.0",
|
"@lingui/react": "^3.3.0",
|
||||||
|
"@ragestudio/nodecorejs": "^0.15.1",
|
||||||
"@types/lodash": "^4.14.165",
|
"@types/lodash": "^4.14.165",
|
||||||
"@umijs/preset-react": "^1.7.9",
|
"@umijs/preset-react": "^1.7.9",
|
||||||
"antd": "^4.8.2",
|
"antd": "^4.8.2",
|
||||||
|
15
packages/server/.babelrc
Normal file
15
packages/server/.babelrc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
[
|
||||||
|
"@babel/preset-env",
|
||||||
|
{
|
||||||
|
"targets": {
|
||||||
|
"node": 4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
"@babel/plugin-transform-runtime"
|
||||||
|
]
|
||||||
|
}
|
1
packages/server/README.md
Normal file
1
packages/server/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# @ragestudio/server
|
11432
packages/server/package-lock.json
generated
Normal file
11432
packages/server/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
31
packages/server/package.json
Normal file
31
packages/server/package.json
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"name": "@ragestudio/server",
|
||||||
|
"version": "0.12.8",
|
||||||
|
"main": "dist/index.js",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"dist",
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"start": "nodemon --inspect --exec babel-node ./src"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/node": "^7.12.10",
|
||||||
|
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
||||||
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
|
||||||
|
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
|
||||||
|
"@babel/plugin-proposal-private-methods": "^7.12.1",
|
||||||
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||||
|
"@babel/plugin-transform-runtime": "^7.12.10",
|
||||||
|
"@babel/runtime": "^7.12.5",
|
||||||
|
"@nodecorejs/cloudlink": "^0.15.1",
|
||||||
|
"@ragestudio/nodecorejs": "^0.15.1",
|
||||||
|
"babel-node": "^0.0.1-security",
|
||||||
|
"nodemon": "^2.0.7"
|
||||||
|
}
|
||||||
|
}
|
24
packages/server/src/index.js
Normal file
24
packages/server/src/index.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import cloudlink from '@nodecorejs/cloudlink'
|
||||||
|
|
||||||
|
let controllers = {
|
||||||
|
TestController: {
|
||||||
|
get: (req, res, next) => {
|
||||||
|
console.log("Testing controller, it works!")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let endpoints = [
|
||||||
|
{
|
||||||
|
"path": "test",
|
||||||
|
"controller": "TestController"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
cloudlink.register({
|
||||||
|
origin: "localhost",
|
||||||
|
originPort: 6050,
|
||||||
|
listenPort: 5050,
|
||||||
|
controllers,
|
||||||
|
endpoints
|
||||||
|
})
|
32
packages/server/tsconfig.json
Normal file
32
packages/server/tsconfig.json
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"ts-node": {
|
||||||
|
"transpileOnly": true
|
||||||
|
},
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "esnext",
|
||||||
|
"module": "commonjs",
|
||||||
|
"sourceMap": true,
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"pretty": true,
|
||||||
|
"declaration": true,
|
||||||
|
"alwaysStrict": true,
|
||||||
|
// "allowSyntheticDefaultImports": true,
|
||||||
|
"strictNullChecks": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"noImplicitThis": true,
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"downlevelIteration": true,
|
||||||
|
"lib": [
|
||||||
|
"dom", // for URLSearchParams
|
||||||
|
"esnext"
|
||||||
|
],
|
||||||
|
"outDir": "dist"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"src/**/*"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules",
|
||||||
|
"text"
|
||||||
|
]
|
||||||
|
}
|
4113
packages/server/yarn.lock
Normal file
4113
packages/server/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user