@joinbankroll/create-app 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,9 @@ cd my-app
|
|
|
8
8
|
npm run bankroll
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
`npm create bankroll-app@latest` works too — it is a published alias that
|
|
12
|
+
forwards here, kept because it is what a developer guesses.
|
|
13
|
+
|
|
11
14
|
`npm run bankroll` raises a public tunnel and prints a QR code. Scan it and your
|
|
12
15
|
app opens inside Bankroll on your phone, which is the only place it runs — the
|
|
13
16
|
host holds the user's money, identity, and location, and refuses any origin that
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var TEMPLATE_REPO = "inplayinnovation/bankroll-starter";
|
|
|
11
11
|
var DEFAULT_REF = "main";
|
|
12
12
|
var DOWNLOAD_TIMEOUT_MS = 6e4;
|
|
13
13
|
var ENV_FILE = ".env.local";
|
|
14
|
+
var PUBLIC_MAINNET_RPC = "https://api.mainnet-beta.solana.com";
|
|
14
15
|
var IGNORABLE = /* @__PURE__ */ new Set([
|
|
15
16
|
".DS_Store",
|
|
16
17
|
".git",
|
|
@@ -91,6 +92,7 @@ async function main() {
|
|
|
91
92
|
created = true;
|
|
92
93
|
}
|
|
93
94
|
const name = await ask("App name", basename(target));
|
|
95
|
+
const rpc = await ask("Solana RPC", PUBLIC_MAINNET_RPC);
|
|
94
96
|
console.log(`
|
|
95
97
|
Downloading the template\u2026`);
|
|
96
98
|
try {
|
|
@@ -111,6 +113,11 @@ async function main() {
|
|
|
111
113
|
"",
|
|
112
114
|
"# Shown when someone connects the app.",
|
|
113
115
|
`BANKROLL_APP_NAME=${name}`,
|
|
116
|
+
"",
|
|
117
|
+
"# The public endpoint is rate-limited \u2014 confirming a payout against it",
|
|
118
|
+
"# takes tens of seconds. Any provider works; this is the one thing here",
|
|
119
|
+
"# worth upgrading.",
|
|
120
|
+
`SOLANA_RPC_URL=${rpc}`,
|
|
114
121
|
""
|
|
115
122
|
].join("\n")
|
|
116
123
|
);
|