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
46 changed files
with
3,450 additions
and
857 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,5 @@ | ||
--- | ||
"@thirdweb-dev/wallets": minor | ||
--- | ||
|
||
Init wallet package |
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,5 @@ | ||
--- | ||
"@thirdweb-dev/unity-js-bridge": minor | ||
--- | ||
|
||
Initial Release |
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 @@ | ||
--- | ||
"@thirdweb-dev/react": patch | ||
"@thirdweb-dev/sdk": patch | ||
--- | ||
|
||
update deps |
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
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
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
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
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
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,4 @@ | ||
# folders | ||
dist/ | ||
|
||
# files |
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,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ["thirdweb"], | ||
}; |
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,16 @@ | ||
<p align="center"> | ||
<br /> | ||
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/js/blob/main/packages/sdk/logo.svg?raw=true" width="200" alt=""/></a> | ||
<br /> | ||
</p> | ||
<h1 align="center">thirdweb Unity JS bridge</h1> | ||
<p align="center"> | ||
<!-- <a href="https://www.npmjs.com/package/@thirdweb-dev/sdk"><img src="https://img.shields.io/npm/v/@thirdweb-dev/sdk?color=red&label=npm&logo=npm" alt="npm version"/></a> --> | ||
<!-- <a href="https://github.com/thirdweb-dev/js/actions/workflows/CI.yml"><img alt="Build Status" src="https://github.com/thirdweb-dev/js/actions/workflows/CI.yml/badge.svg"/></a> --> | ||
<!-- <a href="https://discord.gg/thirdweb"><img alt="Join our Discord!" src="https://img.shields.io/discord/834227967404146718.svg?color=7289da&label=discord&logo=discord&style=flat"/></a> --> | ||
|
||
</p> | ||
<!-- <p align="center"><strong>Best in class Web3 SDK for Browser, Node and Mobile apps</strong></p> --> | ||
<br /> | ||
|
||
### todo |
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": "@thirdweb-dev/unity-js-bridge", | ||
"version": "0.0.0", | ||
"main": "dist/thirdweb-unity-bridge.js", | ||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/thirdweb-dev/js/issues" | ||
}, | ||
"author": "thirdweb eng <eng@thirdweb.com>", | ||
"files": [ | ||
"dist/" | ||
], | ||
"dependencies": { | ||
"@thirdweb-dev/sdk": "*", | ||
"@thirdweb-dev/storage": "*", | ||
"@thirdweb-dev/wallets": "*", | ||
"ethers": "^5.7.2" | ||
}, | ||
"devDependencies": { | ||
"esbuild": "^0.15.16", | ||
"node-stdlib-browser": "^1.2.0", | ||
"typescript": "^4.7.4" | ||
}, | ||
"scripts": { | ||
"format": "prettier --write 'src/**/*'", | ||
"lint": "eslint src/", | ||
"fix": "eslint src/ --fix", | ||
"clean": "rm -rf dist/", | ||
"build": "yarn clean && tsc && node scripts/build.js", | ||
"push": "yalc push" | ||
} | ||
} |
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,28 @@ | ||
const esbuild = require("esbuild"); | ||
const plugin = require("node-stdlib-browser/helpers/esbuild/plugin"); | ||
const stdLibBrowser = require("node-stdlib-browser"); | ||
|
||
// const DIST_PATH = path.resolve(process.cwd(), "dist/"); | ||
|
||
// fs.rmSync(DIST_PATH, { recursive: true, force: true }); | ||
|
||
esbuild.build({ | ||
jsx: "automatic", | ||
entryPoints: ["src/thirdweb-bridge.ts"], | ||
bundle: true, | ||
minify: true, | ||
platform: "browser", | ||
target: "es2020", | ||
outfile: "dist/thirdweb-unity-bridge.js", | ||
splitting: false, | ||
write: true, | ||
sourcemap: false, | ||
inject: [require.resolve("node-stdlib-browser/helpers/esbuild/shim")], | ||
define: { | ||
process: JSON.stringify({ | ||
env: "production", | ||
}), | ||
Buffer: "Buffer", | ||
}, | ||
plugins: [plugin(stdLibBrowser)], | ||
}); |
Oops, something went wrong.