@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 CHANGED
@@ -1,6 +1,6 @@
1
- # Kokos Template Node
1
+ # Kokos SDK Node
2
2
 
3
- **Kokos Template Node** is the template for creating a micro executor based on Node.js with typescript support. It encapsulate all standard features such as:
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
@@ -5,7 +5,7 @@ import {
5
5
  SmeupTree,
6
6
  SmeupTable,
7
7
  SmeupDataStructureType,
8
- } from "@sme.up/kokos-template-node";
8
+ } from "@sme.up/kokos-sdk-node";
9
9
 
10
10
  const JS_00_01: KokosService = {
11
11
  methods: {
package/package.json CHANGED
@@ -1,63 +1,66 @@
1
1
  {
2
- "name": "@sme.up/kokos-sdk-node",
3
- "version": "0.0.1",
4
- "description": "Node.js Kokos SDK",
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.git"
34
- },
35
- "license": "ISC",
36
- "bugs": {
37
- "url": "https://github.com/smeup/kokos/issues"
38
- },
39
- "homepage": "https://github.com/smeup/kokos#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
- "jest": {
58
- "preset": "ts-jest/presets/default-esm",
59
- "moduleNameMapper": {
60
- "^(\\.{1,2}/.*)\\.js$": "$1"
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-template-node init [PROJECT_NAME]"
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-template-node/docker/restapi/Dockerfile`
16
+ `${getProjectRoot()}/node_modules/@sme.up/kokos-sdk-node/docker/restapi/Dockerfile`
17
17
  );
18
18
  const destinationDockerfilePath = `${getProjectRoot()}/Dockerfile`;
19
19
 
@@ -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-template-node/lib/entrypoint/restapi/index.js"
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