-
Notifications
You must be signed in to change notification settings - Fork 0
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
7 changed files
with
135 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,60 @@ | ||
# hyperwebjs | ||
|
||
<p align="center"> | ||
<img src="https://user-images.githubusercontent.com/545047/188804067-28e67e5e-0214-4449-ab04-2e0c564a6885.svg" width="80"><br /> | ||
JS client for hyperweb | ||
</p> | ||
|
||
## install | ||
|
||
```sh | ||
npm install @hyperweb/hyperwebjs | ||
``` | ||
## Table of contents | ||
|
||
- [hyperwebjs](#hyperwebjs) | ||
- [Install](#install) | ||
- [Table of contents](#table-of-contents) | ||
- [Developing](#developing) | ||
- [Credits](#credits) | ||
|
||
## Developing | ||
|
||
When first cloning the repo: | ||
|
||
```sh | ||
yarn | ||
# build the prod packages. When devs would like to navigate to the source code, this will only navigate from references to their definitions (.d.ts files) between packages. | ||
yarn build | ||
``` | ||
|
||
Or if you want to make your dev process smoother, you can run: | ||
|
||
```sh | ||
yarn | ||
# build the dev packages with .map files, this enables navigation from references to their source code between packages. | ||
yarn build:dev | ||
``` | ||
|
||
## Related | ||
|
||
Checkout these related projects: | ||
|
||
* [@cosmology/telescope](https://github.com/cosmology-tech/telescope) Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules. | ||
* [@cosmwasm/ts-codegen](https://github.com/CosmWasm/ts-codegen) Convert your CosmWasm smart contracts into dev-friendly TypeScript classes. | ||
* [chain-registry](https://github.com/cosmology-tech/chain-registry) Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application. | ||
* [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit) Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface. | ||
* [create-cosmos-app](https://github.com/cosmology-tech/create-cosmos-app) Set up a modern Cosmos app by running one command. | ||
* [interchain-ui](https://github.com/cosmology-tech/interchain-ui) The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit. | ||
* [starship](https://github.com/cosmology-tech/starship) Unified Testing and Development for the Interchain. | ||
|
||
## Credits | ||
|
||
🛠 Built by Cosmology — if you like our tools, please consider delegating to [our validator ⚛️](https://cosmology.zone/validator) | ||
|
||
|
||
## Disclaimer | ||
|
||
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. | ||
|
||
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. |
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,3 @@ | ||
it('works', () => { | ||
console.log('hello test world!'); | ||
}) |
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,18 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
transform: { | ||
"^.+\\.tsx?$": [ | ||
"ts-jest", | ||
{ | ||
babelConfig: false, | ||
tsconfig: "tsconfig.json", | ||
}, | ||
], | ||
}, | ||
transformIgnorePatterns: [`/node_modules/*`], | ||
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], | ||
modulePathIgnorePatterns: ["dist/*"] | ||
}; |
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,33 @@ | ||
{ | ||
"name": "hyperwebjs", | ||
"version": "0.0.1", | ||
"author": "Hyperweb <[email protected]>", | ||
"description": "JS client for hyperweb", | ||
"main": "index.js", | ||
"module": "esm/index.js", | ||
"types": "index.d.ts", | ||
"homepage": "https://github.com/hyperweb-io/hyperweb-build", | ||
"license": "SEE LICENSE IN LICENSE", | ||
"publishConfig": { | ||
"access": "public", | ||
"directory": "dist" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/hyperweb-io/hyperweb-build" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/hyperweb-io/hyperweb-build/issues" | ||
}, | ||
"scripts": { | ||
"copy": "copyfiles -f ../../LICENSE README.md package.json dist", | ||
"clean": "rimraf dist/**", | ||
"prepare": "npm run build", | ||
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", | ||
"build:dev": "npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy", | ||
"lint": "eslint . --fix", | ||
"test": "jest", | ||
"test:watch": "jest --watch" | ||
}, | ||
"keywords": [] | ||
} |
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,3 @@ | ||
export default () => { | ||
|
||
}; |
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,9 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "dist/esm", | ||
"module": "es2022", | ||
"rootDir": "src/", | ||
"declaration": false | ||
} | ||
} |
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,9 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src/" | ||
}, | ||
"include": ["src/**/*.ts"], | ||
"exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"] | ||
} |