-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Topology Logger | ||
|
||
This package makes it easy to log messages in a structured way. | ||
|
||
## Usage | ||
|
||
This package is intended to be used as a dependency for the Topology Protocol. However, you can use it as a standalone package. For that, you can install it using: | ||
|
||
```bash | ||
# yarn | ||
yarn add @topology-foundation/logger | ||
|
||
# npm | ||
npm install @topology-foundation/logger | ||
``` | ||
|
||
### Build | ||
|
||
To build the package, you can run: | ||
|
||
```bash | ||
yarn build | ||
``` | ||
|
||
### Tests | ||
|
||
To run the tests, you can run: | ||
|
||
```bash | ||
yarn test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"entries": ["./src/index.asc.ts"], | ||
"targets": { | ||
"debug": { | ||
"outFile": "dist/asc/debug.wasm", | ||
"textFile": "dist/asc/debug.wat", | ||
"sourceMap": true, | ||
"debug": true | ||
}, | ||
"release": { | ||
"outFile": "dist/asc/release.wasm", | ||
"textFile": "dist/asc/release.wat", | ||
"sourceMap": true, | ||
"optimizeLevel": 3, | ||
"shrinkLevel": 0, | ||
"converge": false, | ||
"noAssert": false | ||
} | ||
}, | ||
"options": { | ||
"bindings": "esm", | ||
"disableWarning": [235] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "@topology-foundation/logger", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/topology-foundation/ts-topology.git" | ||
}, | ||
"type": "module", | ||
"types": "./dist/src/index.d.ts", | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
}, | ||
"./wasm": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./src/index.asc.ts" | ||
} | ||
}, | ||
"scripts": { | ||
"asbuild": "yarn asbuild:debug && yarn asbuild:release", | ||
"asbuild:debug": "asc --config asconfig.json --target debug", | ||
"asbuild:release": "asc --config asconfig.json --target release", | ||
"build": "tsc -b", | ||
"clean": "rm -rf dist/ node_modules/", | ||
"prepack": "tsc -b", | ||
"test": "vitest" | ||
}, | ||
"devDependencies": { | ||
"assemblyscript": "^0.27.29" | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "dist" | ||
}, | ||
"references": [ | ||
{ | ||
"path": "../object" | ||
} | ||
], | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["src/**/*.asc.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"$schema": "https://typedoc.org/schema.json", | ||
"includeVersion": true, | ||
"entryPoints": ["src/index.ts"], | ||
"readme": "README.md" | ||
} |