Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build/",
"*.md",
"!*.spec.*",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/amino/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (config) {
frameworks: ["jasmine"],

// list of files / patterns to load in the browser
files: ["dist/web/tests.js"],
files: ["build/karma-bundle/tests.js"],

client: {
jasmine: {
Expand Down
1 change: 1 addition & 0 deletions packages/amino/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"*.md",
"!*.spec.*",
"!*testutils.*",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/amino/webpack.web.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { globSync } = require("glob");
const path = require("path");

const target = "web";
const distdir = path.join(__dirname, "dist", "web");
const bundleDir = path.join(__dirname, "build", "karma-bundle");

module.exports = [
{
Expand All @@ -11,7 +11,7 @@ module.exports = [
entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(),
output: {
asyncChunks: false,
path: distdir,
path: bundleDir,
filename: "tests.js",
},
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion packages/cosmwasm-stargate/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (config) {
frameworks: ["jasmine"],

// list of files / patterns to load in the browser
files: ["dist/web/tests.js"],
files: ["build/karma-bundle/tests.js"],

client: {
jasmine: {
Expand Down
1 change: 1 addition & 0 deletions packages/cosmwasm-stargate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"*.md",
"!*.spec.*",
"!*testutils.*",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/cosmwasm-stargate/webpack.web.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require("path");
const webpack = require("webpack");

const target = "web";
const distdir = path.join(__dirname, "dist", "web");
const bundleDir = path.join(__dirname, "build", "karma-bundle");

module.exports = [
{
Expand All @@ -12,7 +12,7 @@ module.exports = [
entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(),
output: {
asyncChunks: false,
path: distdir,
path: bundleDir,
filename: "tests.js",
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (config) {
frameworks: ["jasmine"],

// list of files / patterns to load in the browser
files: ["dist/web/tests.js"],
files: ["build/karma-bundle/tests.js"],

client: {
jasmine: {
Expand Down
1 change: 1 addition & 0 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"build/",
"*.md",
"!*.spec.*",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/crypto/webpack.web.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { globSync } = require("glob");
const path = require("path");

const target = "web";
const distdir = path.join(__dirname, "dist", "web");
const bundleDir = path.join(__dirname, "build", "karma-bundle");

module.exports = [
{
Expand All @@ -11,7 +11,7 @@ module.exports = [
entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(),
output: {
asyncChunks: false,
path: distdir,
path: bundleDir,
filename: "tests.js",
},
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion packages/encoding/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (config) {
frameworks: ["jasmine"],

// list of files / patterns to load in the browser
files: ["dist/web/tests.js"],
files: ["build/karma-bundle/tests.js"],

client: {
jasmine: {
Expand Down
1 change: 1 addition & 0 deletions packages/encoding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"build/",
"*.md",
"!*.spec.*",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/encoding/webpack.web.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { globSync } = require("glob");
const path = require("path");

const target = "web";
const distdir = path.join(__dirname, "dist", "web");
const bundleDir = path.join(__dirname, "build", "karma-bundle");

module.exports = [
{
Expand All @@ -11,7 +11,7 @@ module.exports = [
entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(),
output: {
asyncChunks: false,
path: distdir,
path: bundleDir,
filename: "tests.js",
},
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion packages/faucet-client/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (config) {
frameworks: ["jasmine"],

// list of files / patterns to load in the browser
files: ["dist/web/tests.js"],
files: ["build/karma-bundle/tests.js"],

client: {
jasmine: {
Expand Down
1 change: 1 addition & 0 deletions packages/faucet-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"build/",
"*.md",
"!*.spec.*",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/faucet-client/webpack.web.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require("path");
const webpack = require("webpack");

const target = "web";
const distdir = path.join(__dirname, "dist", "web");
const bundleDir = path.join(__dirname, "build", "karma-bundle");

module.exports = [
{
Expand All @@ -12,7 +12,7 @@ module.exports = [
entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(),
output: {
asyncChunks: false,
path: distdir,
path: bundleDir,
filename: "tests.js",
},
plugins: [new webpack.EnvironmentPlugin({ FAUCET_ENABLED: "" })],
Expand Down
2 changes: 1 addition & 1 deletion packages/faucet/bin/cosmos-faucet-dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
const path = require("path");

// attempt to call in main file....
const faucet = require(path.join(__dirname, "..", "dist", "node", "cli.js"));
const faucet = require(path.join(__dirname, "..", "build", "cli-bundle", "cli.js"));
faucet.main(process.argv.slice(2));
2 changes: 2 additions & 0 deletions packages/faucet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"*.md",
"!*.spec.*",
"!*testutils.*",
"!**/cli-bundle/",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand Down
7 changes: 3 additions & 4 deletions packages/faucet/webpack.node.config.cjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
const path = require("path");

const target = "node";
const distdir = path.join(__dirname, "dist", target);
const cliBundleDir = path.join(__dirname, "build", "cli-bundle");

module.exports = [
{
target: target,
target: "node",
entry: "./build/cli.js",
output: {
asyncChunks: false,
path: distdir,
path: cliBundleDir,
filename: "cli.js",
library: {
type: "commonjs",
Expand Down
4 changes: 2 additions & 2 deletions packages/json-rpc/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ module.exports = function (config) {

// list of files / patterns to load in the browser
files: [
"dist/web/tests.js",
"build/karma-bundle/tests.js",
{
pattern: "dist/web/dummyservice.worker.js",
pattern: "build/karma-bundle/dummyservice.worker.js",
included: false,
served: true,
watched: false,
Expand Down
1 change: 1 addition & 0 deletions packages/json-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build/",
"*.md",
"!*.spec.*",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/json-rpc/src/jsonrpcclient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function makeSimpleMessagingConnection(
}

(typeof Worker !== "undefined" ? describe : xdescribe)("JsonRpcClient", () => {
const dummyserviceKarmaUrl = "/base/dist/web/dummyservice.worker.js";
const dummyserviceKarmaUrl = "/base/build/karma-bundle/dummyservice.worker.js";

it("can be constructed with a Worker", () => {
const worker = new Worker(dummyserviceKarmaUrl);
Expand Down
6 changes: 3 additions & 3 deletions packages/json-rpc/webpack.web.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { globSync } = require("glob");
const path = require("path");

const target = "web";
const distdir = path.join(__dirname, "dist", "web");
const bundleDir = path.join(__dirname, "build", "karma-bundle");

module.exports = [
{
Expand All @@ -11,7 +11,7 @@ module.exports = [
entry: "./build/workers/dummyservice.worker.js",
output: {
asyncChunks: false,
path: distdir,
path: bundleDir,
filename: "dummyservice.worker.js",
},
},
Expand All @@ -21,7 +21,7 @@ module.exports = [
entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(),
output: {
asyncChunks: false,
path: distdir,
path: bundleDir,
filename: "tests.js",
},
},
Expand Down
4 changes: 2 additions & 2 deletions packages/ledger-amino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ yarn demo-node
Serve the project locally:

```sh
# Build the package for web
yarn pack-web
# Build and bundle the demo for web
yarn pack-demo-web

# Host the `ledger-amino` package directory, for example using Python 3
python3 -m http.server
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-amino/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ledger Demo</title>
<link rel="stylesheet" href="index.css"></style>
<script src="../dist/demo/ledger.js"></script>
<script src="../build/demo-bundle/ledger.js"></script>
</head>
<body>
<section>
Expand Down
5 changes: 4 additions & 1 deletion packages/ledger-amino/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"*.md",
"!*.spec.*",
"!*testutils.*",
"!**/demo/",
"!**/demo-bundle/",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand All @@ -35,7 +38,7 @@
"test": "yarn build-or-skip && yarn test-node",
"demo-node": "yarn build-or-skip && node ./demo/node.cjs",
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.demo.config.cjs"
"pack-demo-web": "yarn build-or-skip && webpack --mode development --config webpack.demo.config.cjs"
},
"dependencies": {
"@cosmjs/amino": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions packages/ledger-amino/webpack.demo.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ const path = require("path");
const webpack = require("webpack");

const target = "web";
const demodir = path.join(__dirname, "dist", "demo");
const demoBundleDir = path.join(__dirname, "build", "demo-bundle");

module.exports = [
{
// bundle used for Ledger demo
target: target,
entry: globSync("./build/demo/web.js"),
entry: globSync("./build/demo/web.js", { dotRelative: true }).sort(),
output: {
asyncChunks: false,
path: demodir,
path: demoBundleDir,
filename: "ledger.js",
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion packages/math/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (config) {
frameworks: ["jasmine"],

// list of files / patterns to load in the browser
files: ["dist/web/tests.js"],
files: ["build/karma-bundle/tests.js"],

client: {
jasmine: {
Expand Down
1 change: 1 addition & 0 deletions packages/math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"build/",
"*.md",
"!*.spec.*",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/math/webpack.web.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { globSync } = require("glob");
const path = require("path");

const target = "web";
const distdir = path.join(__dirname, "dist", "web");
const bundleDir = path.join(__dirname, "build", "karma-bundle");

module.exports = [
{
Expand All @@ -11,7 +11,7 @@ module.exports = [
entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(),
output: {
asyncChunks: false,
path: distdir,
path: bundleDir,
filename: "tests.js",
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/proto-signing/karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (config) {
frameworks: ["jasmine"],

// list of files / patterns to load in the browser
files: ["dist/web/tests.js"],
files: ["build/karma-bundle/tests.js"],

client: {
jasmine: {
Expand Down
1 change: 1 addition & 0 deletions packages/proto-signing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"*.md",
"!*.spec.*",
"!*testutils.*",
"!**/karma-bundle/",
"!**/testdata/"
],
"repository": {
Expand Down
Loading
Loading