Skip to content

Commit

Permalink
rm non-used files
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Aug 20, 2024
1 parent d0ef673 commit b51ff09
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 61 deletions.
14 changes: 8 additions & 6 deletions examples/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@
"main": "src/index.ts",
"repository": "https://github.com/topology-foundation/ts-topology.git",
"license": "MIT",
"scripts": {
"asbuild": "asc --config asconfig.json --target release",
"build": "vite build",
"clean": "rm -rf dist/ node_modules/",
"dev": "vite serve",
"start": "ts-node ./src/index.ts"
},
"dependencies": {
"@topology-foundation/crdt": "0.0.23-5",
"@topology-foundation/network": "0.0.23-5",
"@topology-foundation/node": "0.0.23-5",
"@topology-foundation/object": "0.0.23-5",
"assemblyscript": "^0.27.29",
"crypto-browserify": "^3.12.0",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
Expand All @@ -25,11 +33,5 @@
"webpack": "^5.74.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
},
"scripts": {
"build": "vite build",
"clean": "rm -rf dist/ node_modules/",
"dev": "vite serve",
"start": "ts-node ./src/index.ts"
}
}
41 changes: 0 additions & 41 deletions examples/chat/public/chat.ts

This file was deleted.

10 changes: 0 additions & 10 deletions examples/chat/src/utils.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/node/src/run.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { program } from "./cli/index.js";
import { TopologyNode, TopologyNodeConfig } from "./index.js";
import { newTopologyObject, TopologyObject } from "@topology-foundation/object";
import fs from "fs";

async function startNode(config?: TopologyNodeConfig) {
Expand All @@ -11,8 +10,6 @@ async function startNode(config?: TopologyNodeConfig) {
const run = () => {
program.parse(process.argv);
const opts = program.opts();
let a = newTopologyObject("");

let config: TopologyNodeConfig | undefined;
if (opts.config) {
config = JSON.parse(fs.readFileSync(opts.config, "utf8"));
Expand Down
2 changes: 1 addition & 1 deletion packages/object/asconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"entries": ["./src/chat.ts"],
"entries": ["./src/index.ts"],
"targets": {
"debug": {
"outFile": "dist/asc/debug.wasm",
Expand Down

0 comments on commit b51ff09

Please sign in to comment.