Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
9f3706e
Add Yarn v2 config and release
willclarktech Apr 21, 2021
b809f54
Update .gitignore for Yarn v2
willclarktech Apr 21, 2021
b31d3c7
Update yarn.lock
willclarktech Apr 21, 2021
2529701
Update CircleCI config for Yarn v2
willclarktech Apr 21, 2021
03dd809
Add yarn workspace-tools plugin
willclarktech Apr 22, 2021
48b3da9
Set yarn berry to v2.4.1
willclarktech Apr 22, 2021
3cc4158
Add Yarn config options
willclarktech Apr 22, 2021
9660971
Update pre/post scripts
willclarktech Apr 27, 2021
9e2a997
Remove shx dependency
willclarktech Apr 27, 2021
3eaa408
Add eslint to packages’ dev dependencies
willclarktech Apr 27, 2021
016fed4
Update root lint commands
willclarktech Apr 27, 2021
97ca7da
Add prettier to packages’ dev dependencies
willclarktech Apr 27, 2021
59179ad
Update root format commands
willclarktech Apr 27, 2021
8350a5c
Add webpack to packages’ dev dependencies
willclarktech Apr 28, 2021
5eef7b9
Add nyc to packages’ dev dependencies
willclarktech Apr 28, 2021
dd2bb76
Update root coverage command
willclarktech Apr 28, 2021
1133a97
Add typedoc to packages’ dev dependencies
willclarktech Apr 28, 2021
cc892e9
Update root docs command
willclarktech Apr 28, 2021
b3a5ca8
Add root pack-web command
willclarktech Apr 28, 2021
1f10a45
Make root workspaces commands topological
willclarktech Apr 28, 2021
7c35fd3
Update root build command
willclarktech Apr 28, 2021
6d28846
Make root workspaces commands parallel
willclarktech Apr 28, 2021
9e57f0b
Add karma to packages’ dev dependencies
willclarktech Apr 28, 2021
d202ec1
Update root test commands
willclarktech Apr 28, 2021
93e4351
Set preferInteractive in .yarnrc.yml
willclarktech Apr 28, 2021
713152a
Add yarn typescript plugin
willclarktech Apr 28, 2021
676770e
Add yarn version plugin
willclarktech Apr 28, 2021
d9545ac
Add changesetBaseRefs to main in .yarnrc.yml
willclarktech Apr 28, 2021
df32a4b
Add typescript to packages’ dev dependencies
willclarktech Apr 28, 2021
bbc89f6
amino: Add missing dev dependencies
willclarktech Apr 28, 2021
b026119
cli: Add missing dev dependencies
willclarktech Apr 28, 2021
2e4d1ad
cli: Fix import path in Stargate example
willclarktech Apr 28, 2021
bcf531d
cosmwasm-launchpad: Add missing dev dependencies
willclarktech Apr 28, 2021
623c6b1
cosmwasm-stargate: Add missing dev dependencies
willclarktech Apr 28, 2021
732a73b
crypto: Add missing dev dependencies
willclarktech Apr 28, 2021
51975cd
encoding: Add missing dev dependencies
willclarktech Apr 28, 2021
9dd65a1
faucet: Add missing dev dependencies
willclarktech Apr 28, 2021
1792b34
faucet-client: Add missing dev dependencies
willclarktech Apr 28, 2021
038e90b
json-rpc: Add missing dev dependencies
willclarktech Apr 28, 2021
5dc46c3
launchpad: Add missing dev dependencies
willclarktech Apr 28, 2021
09a497c
ledger-amino: Add missing dev dependencies
willclarktech Apr 28, 2021
3dff356
ledger-amino: Add missing dependencies
willclarktech Apr 28, 2021
9ddea71
math: Add missing dev dependencies
willclarktech Apr 28, 2021
4b58c85
proto-signing: Add missing dependencies
willclarktech Apr 28, 2021
cab9ce9
proto-signing: Add missing dev dependencies
willclarktech Apr 28, 2021
382567e
socket: Add missing dev dependencies
willclarktech Apr 28, 2021
aa6dac1
stargate: Add missing dependency
willclarktech Apr 28, 2021
4839ebe
stargate: Add missing dev dependencies
willclarktech Apr 28, 2021
8420ad9
stream: Add missing dev dependencies
willclarktech Apr 28, 2021
92ac74d
tendermint-rpc: Add missing dev dependencies
willclarktech Apr 28, 2021
e79b29a
utils: Add missing dev dependencies
willclarktech Apr 28, 2021
fcc2ca3
Remove pre/post scripts entirely
willclarktech Apr 28, 2021
07495c4
Add missing dev dependencies to root
willclarktech Apr 28, 2021
bc71a10
Specify local dependencies as workspaces
willclarktech Apr 28, 2021
bcf769c
Make root yarn scripts verbose
willclarktech Apr 28, 2021
1d880ee
Set Yarn Node linker to PnP
willclarktech Apr 29, 2021
7b19729
Update .gitignore for Yarn PnP
willclarktech Apr 29, 2021
a760529
Remove unused dev dependencies from root
willclarktech Apr 29, 2021
b07f6ba
ledger-amino: Move custom types into src
willclarktech May 4, 2021
0ac05b7
Add missing type definitions to packages
willclarktech May 4, 2021
d0a61cb
Use yarn node instead of node to run dev scripts
willclarktech May 4, 2021
6585940
ledger-amino: Add missing .nycrc.yml
willclarktech May 4, 2021
840293c
Add nyc plugin dependency to packages
willclarktech May 4, 2021
5392482
Add md docs to prettier targets
willclarktech May 4, 2021
e2caf9b
Sort out eslint
willclarktech May 4, 2021
f7a5cc5
Add .zip files to LFS
willclarktech May 5, 2021
f9bf558
Add yarn cache
willclarktech May 5, 2021
58fa270
Add first draft Yarn documentation
willclarktech May 4, 2021
10cddb1
Support unix in yarn node shebangs
willclarktech May 5, 2021
b9f582b
Add Git-LFS to lint job on CircleCI
willclarktech May 5, 2021
5900d09
Run CLI self tests with yarn node on CI
willclarktech May 5, 2021
8bb362f
Add webpack-cli dev dependencies
willclarktech May 5, 2021
34cc74a
Add karma dev dependencies
willclarktech May 5, 2021
9046c37
PnPify karma confs
willclarktech May 5, 2021
4089b25
Remove lerna.json
willclarktech May 6, 2021
1f2675b
Prepare CHANGELOG for 0.25.3
webmaster128 May 18, 2021
9cff86d
Add nonces
webmaster128 May 18, 2021
00cfc1d
v0.25.3
webmaster128 May 18, 2021
bd48014
Format
willclarktech May 19, 2021
94445b0
Fix lint
willclarktech May 19, 2021
0faa96b
Clear webpack Node.js polyfills
willclarktech May 19, 2021
47cadd3
Test Secp256k1Signature.fromDer with 70, 71 and 72 bytes
webmaster128 May 19, 2021
205a676
Update YARN.md
willclarktech May 19, 2021
f5266e7
Add buffer webpack plugin
willclarktech May 19, 2021
9401584
crypto: Standardise log level in karma config
willclarktech May 20, 2021
6c5fd13
Fix webpack resolution
willclarktech May 20, 2021
5b88223
Refresh yarn
willclarktech May 20, 2021
d1108ee
Use Yarn PnPify
willclarktech May 20, 2021
fd7ade0
Remove yarn typescript plugin
willclarktech May 20, 2021
9c5f72b
Fix lint issue in jasmine testrunners
willclarktech May 25, 2021
7590982
Merge protobufjs dependencies
willclarktech May 25, 2021
2096146
Update CI config
willclarktech May 25, 2021
139fe5b
Fix webpack configs in stargate/cosmwasm-stargate
willclarktech May 25, 2021
49e0329
Support ESM with yarn node
willclarktech May 26, 2021
d9547da
cli: Update run_examples.sh to use yarn node
willclarktech May 26, 2021
c62c478
Add typescript to root
willclarktech May 26, 2021
2a08145
Add yarn typescript sdk
willclarktech May 26, 2021
4114739
Update YARN.md
willclarktech May 26, 2021
b1e829b
Merge branch 'main' into 301-yarn2
willclarktech May 26, 2021
a3b2024
Add additional resources to YARN.md
willclarktech May 26, 2021
495eec8
Remove executable flag from jasmine testrunners
willclarktech Jun 1, 2021
c4bd925
Merge branch 'main' into 301-yarn2
willclarktech Jun 1, 2021
0bfe75d
Regenerate yarn cache etc
willclarktech Jun 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
116 changes: 17 additions & 99 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,38 +44,18 @@ jobs:
- run:
name: Version information
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install libusb
command: sudo apt-get install libusb-1.0-0-dev
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
command: yarn install --immutable --immutable-cache --check-cache
- run:
command: yarn build
- persist_to_workspace:
root: .
paths:
- packages/*/build/*
- run:
name: Check for clean workspace
command: |
SOURCE_CHANGES=$(git status --porcelain)
if [[ -n "$SOURCE_CHANGES" ]]; then
echo "Error: repository contains changes."
echo "Showing 'git status' and 'git diff' for debugging now:"
git status
git --no-pager diff
exit 1
fi
test:
machine:
# We can't use a containerized environment since it requires remote docker to start custom containers.
Expand Down Expand Up @@ -138,10 +118,6 @@ jobs:
- run:
name: Version information
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install libusb
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
Expand All @@ -150,12 +126,7 @@ jobs:
sudo dpkg -i "$HOME/libusb.deb"
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
command: yarn install --immutable --immutable-cache --check-cache
- run:
name: Initialize launchpad (deploy contracts and friends)
command: ./scripts/launchpad/init.sh
Expand Down Expand Up @@ -188,13 +159,13 @@ jobs:
environment:
SKIP_BUILD: 1
command: |
./bin/cosmwasm-cli --init examples/coralnet.ts --code "process.exit(0)"
./bin/cosmwasm-cli --init examples/delegate.ts --code "process.exit(0)"
./bin/cosmwasm-cli --init examples/faucet_addresses.ts --code "process.exit(0)"
./bin/cosmwasm-cli --init examples/generate_address.ts --code "process.exit(0)"
./bin/cosmwasm-cli --init examples/helpers.ts --code "process.exit(0)"
./bin/cosmwasm-cli --init examples/local_faucet.ts --code "process.exit(0)"
./bin/cosmwasm-cli --init examples/mask.ts --code "process.exit(0)"
yarn node ./bin/cosmwasm-cli --init examples/coralnet.ts --code "process.exit(0)"
yarn node ./bin/cosmwasm-cli --init examples/delegate.ts --code "process.exit(0)"
yarn node ./bin/cosmwasm-cli --init examples/faucet_addresses.ts --code "process.exit(0)"
yarn node ./bin/cosmwasm-cli --init examples/generate_address.ts --code "process.exit(0)"
yarn node ./bin/cosmwasm-cli --init examples/helpers.ts --code "process.exit(0)"
yarn node ./bin/cosmwasm-cli --init examples/local_faucet.ts --code "process.exit(0)"
yarn node ./bin/cosmwasm-cli --init examples/mask.ts --code "process.exit(0)"
- run:
name: Stop chains
command: |
Expand Down Expand Up @@ -266,10 +237,6 @@ jobs:
- run:
name: Version information
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install libusb
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
Expand All @@ -278,12 +245,7 @@ jobs:
sudo dpkg -i "$HOME/libusb.deb"
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
command: yarn install --immutable --immutable-cache --check-cache
- run:
name: Initialize launchpad (deploy contracts and friends)
command: ./scripts/launchpad/init.sh
Expand Down Expand Up @@ -388,10 +350,6 @@ jobs:
- run:
name: Version information
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install libusb
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
Expand All @@ -400,12 +358,7 @@ jobs:
sudo dpkg -i "$HOME/libusb.deb"
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
command: yarn install --immutable --immutable-cache --check-cache
- run:
name: Initialize launchpad (deploy contracts and friends)
command: ./scripts/launchpad/init.sh
Expand Down Expand Up @@ -497,10 +450,6 @@ jobs:
- run:
name: Version information
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install libusb
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
Expand All @@ -509,12 +458,7 @@ jobs:
sudo dpkg -i "$HOME/libusb.deb"
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
command: yarn install --immutable --immutable-cache --check-cache
- run:
name: Initialize launchpad (deploy contracts and friends)
command: ./scripts/launchpad/init.sh
Expand Down Expand Up @@ -563,21 +507,12 @@ jobs:
- run:
name: Version information
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install libusb
command: sudo apt-get install libusb-1.0-0-dev
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
command: yarn install --immutable --immutable-cache --check-cache
- run:
name: Build package docs
command: yarn docs
Expand Down Expand Up @@ -609,6 +544,9 @@ jobs:
docker:
- image: circleci/node:10-buster
steps:
- run:
name: Install Git Large File Storage (LFS)
command: sudo apt-get install git-lfs
- checkout
- attach_workspace:
at: /tmp/builds
Expand All @@ -624,21 +562,12 @@ jobs:
- run:
name: Version information
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install libusb
command: sudo apt-get install libusb-1.0-0-dev
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
command: yarn install --immutable --immutable-cache --check-cache
- run:
name: Lint
command: yarn lint
Expand All @@ -648,14 +577,3 @@ jobs:
- run:
name: Format shell scripts
command: yarn format-shell
- run:
name: Check for clean workspace
command: |
SOURCE_CHANGES=$(git status --porcelain)
if [[ -n "$SOURCE_CHANGES" ]]; then
echo "Error: repository contains changes."
echo "Showing 'git status' and 'git diff' for debugging now:"
git status
git --no-pager diff
exit 1
fi
92 changes: 92 additions & 0 deletions .eslintrc.base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
module.exports = {
env: {
es6: true,
jasmine: true,
node: true,
worker: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
project: "./tsconfig.eslint.json",
tsconfigRootDir: __dirname,
},
plugins: ["@typescript-eslint", "prettier", "simple-import-sort", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:import/typescript",
],
rules: {
curly: ["warn", "multi-line", "consistent"],
"no-bitwise": "warn",
"no-console": ["warn", { allow: ["error", "info", "table", "warn"] }],
"no-param-reassign": "warn",
"no-shadow": "off", // disabled in favour of @typescript-eslint/no-shadow, see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-shadow.md
"no-unused-vars": "off", // disabled in favour of @typescript-eslint/no-unused-vars, see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
"prefer-const": "warn",
radix: ["warn", "always"],
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn",
"simple-import-sort/imports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/explicit-function-return-type": ["warn", { allowExpressions: true }],
"@typescript-eslint/explicit-member-accessibility": "warn",
"@typescript-eslint/naming-convention": [
"warn",
{
selector: "default",
format: ["strictCamelCase"],
},
{
selector: "typeLike",
format: ["StrictPascalCase"],
},
{
selector: "enumMember",
format: ["StrictPascalCase"],
},
{
selector: "variable",
format: ["strictCamelCase"],
leadingUnderscore: "allow",
},
{
selector: "parameter",
format: ["strictCamelCase"],
leadingUnderscore: "allow",
},
],
"@typescript-eslint/no-dynamic-delete": "warn",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-parameter-properties": "warn",
"@typescript-eslint/no-shadow": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/prefer-readonly": "warn",
},
overrides: [
{
files: "**/*.js",
rules: {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
},
},
{
files: "**/*.spec.ts",
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
},
},
],
};
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.png filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ coverage/

# Documentation builds
/docs_deployment/

# Yarn v2
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Loading