Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup-examples #344

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions JS/edgechains/examples/Test01/esbuild.build.js

This file was deleted.

14 changes: 10 additions & 4 deletions JS/edgechains/examples/Test01/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,24 @@
"version": "1.0.0",
"description": "",
"main": "dist/index.js",
"type": "module",
"scripts": {
"build": "rm -rf dist && node esbuild.build.js",
"start": "node dist/index.js",
"start": "node --experimental-wasm-modules ./src/index.js",
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
"test": "npx jest"
},
"jest": {
"setupFiles": [
"<rootDir>/setupTests.js"
]
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@arakoodev/jsonnet": "^0.1.2",
"@hono/node-server": "^1.2.0",
"@types/dotenv": "^8.2.0",
"hono": "^3.9.2",
Expand All @@ -23,7 +30,7 @@
"typescript": "^5.3.2"
},
"devDependencies": {
"@hanazuki/node-jsonnet": "^2.1.0",
"@arakoodev/edgechains.js": "0.1.22",
"@types/jest": "^29.5.8",
"@types/node": "^20.9.4",
"@typescript-eslint/eslint-plugin": "^6.11.0",
Expand All @@ -40,10 +47,9 @@
"jest": "^29.7.0",
"prettier": "^3.1.0",
"react": "^18.2.0",
"@arakoodev/edgechains.js": "0.1.22",
"ts-jest": "^29.1.1",
"tsx": "^3.12.2",
"typeorm": "^0.3.17",
"typescript": "^5.0.2"
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Jsonnet } from "@hanazuki/node-jsonnet";
import Jsonnet from "@arakoodev/jsonnet";
import { OpenAiEndpoint } from "@arakoodev/edgechains.js";
import { PostgresClient } from "@arakoodev/edgechains.js";
import type { ArkRequest } from "@arakoodev/edgechains.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Jsonnet } from "@hanazuki/node-jsonnet";
import Jsonnet from "@arakoodev/jsonnet";
import * as path from "path";
import { OpenAiEndpoint } from "@arakoodev/edgechains.js";

Expand Down
13 changes: 0 additions & 13 deletions JS/edgechains/examples/react-chain/jest.config.js

This file was deleted.

4 changes: 1 addition & 3 deletions JS/edgechains/examples/react-chain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"build": "rm -rf dist/ && tsc",
"start": "node --experimental-wasm-modules dist/index.js",
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
"test": "npx jest"
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\""
},
"keywords": [],
"author": "",
Expand All @@ -26,7 +25,6 @@
"@arakoodev/edgechains.js": "0.1.22",
"@babel/preset-env": "^7.23.8",
"@babel/preset-typescript": "^7.23.3",
"@hanazuki/node-jsonnet": "^2.1.0",
"@types/jest": "^29.5.8",
"@types/node": "^20.9.4",
"@typescript-eslint/eslint-plugin": "^6.11.0",
Expand Down
16 changes: 0 additions & 16 deletions JS/edgechains/examples/react-chain/src/ReactChain.test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion JS/edgechains/examples/react-chain/src/ReactChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const gpt3Endpoint = new OpenAiEndpoint(
"https://api.openai.com/v1/chat/completions",
process.env.OPENAI_API_KEY!,
"",
"gpt-4",
"gpt-3.5-turbo",
"user",
parseInt("0.7")
);
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/react-chain/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"types": ["dotenv/config", "jest", "node"],
"types": ["dotenv/config", "node"],
"outDir": "dist",
"target": "ES2022",
"module": "NodeNext",
Expand Down
1 change: 0 additions & 1 deletion JS/edgechains/examples/wikiExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
},
"devDependencies": {
"@arakoodev/edgechains.js": "0.1.22",
"@hanazuki/node-jsonnet": "^2.1.0",
"@types/jest": "^29.5.8",
"@types/node": "^20.9.4",
"@typescript-eslint/eslint-plugin": "^6.11.0",
Expand Down
Loading