@sme.up/kokos-sdk-node 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/init/JS_00_01.txt +1 -1
- package/package.json +64 -61
- package/scripts/init.js +1 -1
- package/scripts/restapi/build-image-restapi.js +1 -1
- package/scripts/restapi/dev.js +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Kokos
|
|
1
|
+
# Kokos SDK Node
|
|
2
2
|
|
|
3
|
-
**Kokos
|
|
3
|
+
**Kokos SDK Node** is the sdk for creating a micro executor based on Node.js with typescript support. It encapsulate all standard features such as:
|
|
4
4
|
|
|
5
5
|
- types
|
|
6
6
|
- interfaces
|
package/init/JS_00_01.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,63 +1,66 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
2
|
+
"name": "@sme.up/kokos-sdk-node",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Kokos SDK Node.js",
|
|
5
|
+
"author": "Smeup LAB <info@smeup.com> (https://www.smeup.com/)",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": "./lib/index.js",
|
|
8
|
+
"module": "./lib/index.js",
|
|
9
|
+
"typings": "./lib/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"lib/",
|
|
12
|
+
"scripts/",
|
|
13
|
+
"bin/",
|
|
14
|
+
"docker/",
|
|
15
|
+
"init/",
|
|
16
|
+
"swagger/",
|
|
17
|
+
"docs/",
|
|
18
|
+
"package.json",
|
|
19
|
+
"tsconfig.json"
|
|
20
|
+
],
|
|
21
|
+
"bin": {
|
|
22
|
+
"kokos": "./bin/kokos.js"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"clean": "rimraf lib",
|
|
26
|
+
"test": "NODE_ENV=test jest",
|
|
27
|
+
"build": "npm run clean && tsc",
|
|
28
|
+
"start:restapi": "NODE_ENV=production node ./lib/entrypoint/restapi/index.js",
|
|
29
|
+
"dev:restapi": "NODE_ENV=development nodemon --watch './**/*.ts' --exec node --experimental-specifier-resolution=node --loader ts-node/esm ./src/entrypoint/restapi/index.ts"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/smeup/kokos-sdk-node.git"
|
|
34
|
+
},
|
|
35
|
+
"license": "ISC",
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/smeup/kokos-sdk-node/issues"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/smeup/kokos-sdk-node#readme",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@types/node": "^18.15.11",
|
|
42
|
+
"class-transformer": "^0.5.1",
|
|
43
|
+
"class-validator": "^0.14.0",
|
|
44
|
+
"express": "^4.18.2",
|
|
45
|
+
"nodemon": "^2.0.22",
|
|
46
|
+
"rimraf": "^4.4.1",
|
|
47
|
+
"ts-node": "^10.9.1",
|
|
48
|
+
"typescript": "^4.9.4"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/express": "^4.17.17",
|
|
52
|
+
"@types/jest": "^29.5.0",
|
|
53
|
+
"axios": "^1.3.4",
|
|
54
|
+
"jest": "^29.5.0",
|
|
55
|
+
"ts-jest": "^29.0.5"
|
|
56
|
+
},
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=18.0.0"
|
|
59
|
+
},
|
|
60
|
+
"jest": {
|
|
61
|
+
"preset": "ts-jest/presets/default-esm",
|
|
62
|
+
"moduleNameMapper": {
|
|
63
|
+
"^(\\.{1,2}/.*)\\.js$": "$1"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
63
66
|
}
|
package/scripts/init.js
CHANGED
|
@@ -25,7 +25,7 @@ try {
|
|
|
25
25
|
const projectName = process.argv[3];
|
|
26
26
|
if (!projectName) {
|
|
27
27
|
console.error(
|
|
28
|
-
"Error: project name not defined \nSyntax: npx @sme.up/kokos-
|
|
28
|
+
"Error: project name not defined \nSyntax: npx @sme.up/kokos-sdk-node init [PROJECT_NAME]"
|
|
29
29
|
);
|
|
30
30
|
process.exit();
|
|
31
31
|
}
|
|
@@ -13,7 +13,7 @@ import fs from "fs";
|
|
|
13
13
|
try {
|
|
14
14
|
// dockerfile path
|
|
15
15
|
const dockerfilePath = path.resolve(
|
|
16
|
-
`${getProjectRoot()}/node_modules/@sme.up/kokos-
|
|
16
|
+
`${getProjectRoot()}/node_modules/@sme.up/kokos-sdk-node/docker/restapi/Dockerfile`
|
|
17
17
|
);
|
|
18
18
|
const destinationDockerfilePath = `${getProjectRoot()}/Dockerfile`;
|
|
19
19
|
|
package/scripts/restapi/dev.js
CHANGED
|
@@ -11,7 +11,7 @@ process.env.NODE_ENV = "development";
|
|
|
11
11
|
|
|
12
12
|
// start nodemon
|
|
13
13
|
const devServer = exec(
|
|
14
|
-
"NODE_ENV=development nodemon --watch src/**/* -e ts,js --exec node --experimental-specifier-resolution=node --loader ts-node/esm node_modules/@sme.up/kokos-
|
|
14
|
+
"NODE_ENV=development nodemon --watch src/**/* -e ts,js --exec node --experimental-specifier-resolution=node --loader ts-node/esm node_modules/@sme.up/kokos-sdk-node/lib/entrypoint/restapi/index.js"
|
|
15
15
|
);
|
|
16
16
|
|
|
17
17
|
// redirect docker build stdout to standard output
|