launchpad-ledger: Refactor demo structure
This commit is contained in:
parent
2ef93a0b26
commit
4b9b40f69b
@ -4,8 +4,8 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Ledger Demo</title>
|
||||
<link rel="stylesheet" href="ledger-demo.css"></style>
|
||||
<script src="dist/demo/ledger.js"></script>
|
||||
<link rel="stylesheet" href="index.css"></style>
|
||||
<script src="../dist/demo/ledger.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
@ -28,7 +28,7 @@
|
||||
"format-text": "prettier --write --prose-wrap always --print-width 80 \"./*.md\"",
|
||||
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\"",
|
||||
"lint-fix": "eslint --max-warnings 0 \"**/*.{js,ts}\" --fix",
|
||||
"move-types": "shx rm -rf ./types/* && shx mv build/types/* ./types && rm -rf ./types/testdata && shx rm -f ./types/*.demo.d.ts",
|
||||
"move-types": "shx rm -rf ./types/* && shx mv build/types/* ./types && rm -rf ./types/testdata && shx rm -rf ./types/demo",
|
||||
"format-types": "prettier --write --loglevel warn \"./types/**/*.d.ts\"",
|
||||
"prebuild": "shx rm -rf ./build",
|
||||
"build": "tsc",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { toHex, toUtf8 } from "@cosmjs/encoding";
|
||||
|
||||
import { LedgerSigner } from "./ledgersigner";
|
||||
import { LedgerSigner } from "../ledgersigner";
|
||||
|
||||
declare const window: any;
|
||||
declare const document: any;
|
||||
@ -20,7 +20,7 @@ module.exports = [
|
||||
{
|
||||
// bundle used for Ledger demo
|
||||
target: target,
|
||||
entry: glob.sync("./build/**/*.demo.js"),
|
||||
entry: glob.sync("./build/demo/index.js"),
|
||||
output: {
|
||||
path: demodir,
|
||||
filename: "ledger.js",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user