Skip to content

Commit

Permalink
test: initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanaden committed Aug 10, 2024
1 parent cd6b6ac commit 6e13486
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 660 deletions.
12 changes: 5 additions & 7 deletions examples/start-tailwind/app.config.timestamp_1723239863379.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// app.config.ts
import { defineConfig } from "@solidjs/start/config";
import { defineConfig } from "@solidjs/start/config"
var app_config_default = defineConfig({
/**
* Toggle between client and server rendering.
Expand Down Expand Up @@ -55,16 +55,14 @@ var app_config_default = defineConfig({
/**
* Enable "islands" mode.
*/
islands: false
islands: false,
},
/**
* Vite config object. Can be configured for each router which has
* the string value "server", "client" or "server-function"`
*
* @see https://vitejs.dev/config/shared-options.html
*/
vite: {}
});
export {
app_config_default as default
};
vite: {},
})
export { app_config_default as default }
1 change: 1 addition & 0 deletions examples/start-tailwind/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@solana-wallets-solid/start-tailwind",
"type": "module",
"private": true,
"scripts": {
"dev": "vinxi dev",
"build": "vinxi build",
Expand Down
53 changes: 28 additions & 25 deletions examples/start-tailwind/src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,45 +1,35 @@
import "./app.css"

import { Router } from "@solidjs/router"
import { FileRoutes } from "@solidjs/start/router"
import { Suspense } from "solid-js"
import Nav from "~/components/Nav"
import "./app.css"
import { Wallet, WalletProvider } from "@solana-wallets-solid/core"

/**
* NOTE: import each wallet adapter idependently due to build
* error when deploying on cloudflare-pages when importing
* them all from @solana/wallet-adapter-wallets
*
* @see https://github.com/unjs/nitro/issues/1821
*/
import { PhantomWalletAdapter } from "@solana/wallet-adapter-phantom"
import { SolflareWalletAdapter } from "@solana/wallet-adapter-solflare"
import {
createDefaultAddressSelector,
createDefaultAuthorizationResultCache,
createDefaultWalletNotFoundHandler,
SolanaMobileWalletAdapter,
// createDefaultAddressSelector,
// createDefaultAuthorizationResultCache,
// createDefaultWalletNotFoundHandler,
} from "@solana-mobile/wallet-adapter-mobile"

import Nav from "~/components/Nav"

export default function App() {
// const {
// PhantomWalletAdapter,
// SlopeWalletAdapter,
// SolflareWalletAdapter,
// SolletExtensionWalletAdapter,
// TorusWalletAdapter,
// } = await import('@solana/wallet-adapter-wallets');j
const adapters = [
new PhantomWalletAdapter(),
new SolflareWalletAdapter(),
// new WalletConnectWalletAdapter({
// network: WalletAdapterNetwork.Mainnet,
// options: {
// relayUrl: "wss://relay.walletconnect.com",
// projectId: WC_PROJECT_ID,
// metadata: {
// name: "Coinhall",
// description: "Coinhall",
// url: "https://coinhall.org",
// icons: ["https://coinhall.org/favicon.svg"],
// },
// },
// }),
/**
* @see https://docs.solanamobile.com/reference/typescript/mobile-wallet-adapter#parameters
*/
new SolanaMobileWalletAdapter({
/**
* The chain identifier for the chain with
Expand All @@ -61,6 +51,19 @@ export default function App() {
authorizationResultCache: createDefaultAuthorizationResultCache(),
onWalletNotFound: createDefaultWalletNotFoundHandler(),
}),
// new WalletConnectWalletAdapter({
// network: WalletAdapterNetwork.Mainnet,
// options: {
// relayUrl: "wss://relay.walletconnect.com",
// projectId: WC_PROJECT_ID,
// metadata: {
// name: "Coinhall",
// description: "Coinhall",
// url: "https://coinhall.org",
// icons: ["https://coinhall.org/favicon.svg"],
// },
// },
// }),
]
const wallets: Wallet[] = adapters.map(a => ({ adapter: a, readyState: a.readyState }))
// createEffect(() => {
Expand Down
13 changes: 3 additions & 10 deletions examples/start-tailwind/tsconfig.typecheck.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
{
"extends": "./tsconfig.json",
"include": [
"index.d.ts",
"src",
"node_modules/@coinhall"
],
"exclude": [
"dist",
"node_modules"
]
"extends": "./tsconfig.json",
"include": ["index.d.ts", "src", "node_modules/@coinhall"],
"exclude": ["dist", "node_modules"]
}
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# @your-repository-name/hello

## 0.1.0

### Minor Changes

- init
124 changes: 62 additions & 62 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
{
"name": "@solana-wallets-solid/core",
"version": "0.0.1",
"description": "Example hello world package in the your-repository-name repository.",
"license": "MIT",
"author": "your-author-name",
"contributors": [],
"homepage": "https://github.com/your-nickname/your-repository-name#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/your-nickname/your-repository-name.git"
},
"bugs": {
"url": "https://github.com/your-nickname/your-repository-name/issues"
},
"keywords": [
"solid"
],
"private": true,
"sideEffects": false,
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"development": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/dev.js"
}
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"browser": {},
"typesVersions": {},
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"test": "concurrently pnpm:test:*",
"test:client": "vitest -c ../../configs/vitest.config.ts",
"test:ssr": "pnpm run test:client --mode ssr",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/web3.js": "^1.95.2",
"@solid-primitives/context": "^0.2.3"
},
"devDependencies": {
"solid-js": "^1.8.18"
},
"peerDependencies": {
"solid-js": "^1.8.18"
}
"name": "@solana-wallets-solid/core",
"version": "0.1.0",
"description": "Example hello world package in the your-repository-name repository.",
"license": "MIT",
"author": "your-author-name",
"contributors": [],
"homepage": "https://github.com/your-nickname/your-repository-name#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/your-nickname/your-repository-name.git"
},
"bugs": {
"url": "https://github.com/your-nickname/your-repository-name/issues"
},
"keywords": [
"solid"
],
"private": true,
"sideEffects": false,
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"development": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/dev.js"
}
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"browser": {},
"typesVersions": {},
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"test": "concurrently pnpm:test:*",
"test:client": "vitest -c ../../configs/vitest.config.ts",
"test:ssr": "pnpm run test:client --mode ssr",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/web3.js": "^1.95.2",
"@solid-primitives/context": "^0.2.3"
},
"devDependencies": {
"solid-js": "^1.8.18"
},
"peerDependencies": {
"solid-js": "^1.8.18"
}
}
Loading

0 comments on commit 6e13486

Please sign in to comment.