Skip to content

Commit

Permalink
Xf/v4.0.0 (#49)
Browse files Browse the repository at this point in the history
* Initial restructure.

* web3x-codegen and web3x-evm packages.

* web3x-evm import paths fix.

* Add rlp to web3x. LICENCE files.

* CircleCI

* Update web3x README

* CHANGELOG

* README typo.

* Add MIT license header to web3x-evm source files.

* Fix tests in example projects.

* Add MIT license header to example projects.

* README

* README

* Fix personal module.

* Circle only publishes if versions don't match. Update web3x package versions.

* Interesting attempt at version/build/test/publish ci solution.

* Use extends in tsconfigs.

* README

* Versioning.

* README

* Webpack example update.
  • Loading branch information
xf00f committed Jun 23, 2019
1 parent 0c32503 commit 9b1fb49
Show file tree
Hide file tree
Showing 364 changed files with 10,166 additions and 1,688 deletions.
57 changes: 48 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,80 @@ jobs:
git submodule update
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages

- run:
name: Build
name: Build web3x
working_directory: web3x
command: |
yarn install
yarn build
- run:
name: Test
name: Test web3x
working_directory: web3x
command: yarn test --maxWorkers=2 --coverage --coverageReporters=text-lcov | ./node_modules/.bin/coveralls

- run:
name: Build web3x-evm
working_directory: web3x-evm
command: |
yarn install
yarn build
- run:
name: Test web3x-evm
working_directory: web3x-evm
command: yarn test

- run:
name: Build web3x-codegen
working_directory: web3x-codegen
command: |
yarn install
yarn build
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages
paths:
- ~/.cache/yarn

- persist_to_workspace:
root: ~/project
paths: dest*
paths:
- "*/dest*"

deploy:
docker:
- image: circleci/node:10
steps:
- attach_workspace:
at: ~/project

- run:
name: Publish Packages
command: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/project/.npmrc
npm publish dest && npm publish dest-es
name: Configure registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/project/.npmrc

- run:
name: Publish web3x
working_directory: web3x/dest
command: "[ $(node -e \"console.log(require('./package.json').version)\") == $(npm view web3x dist-tags.latest) ] || npm publish"

- run:
name: Publish web3x-es
working_directory: web3x/dest-es
command: "[ $(node -e \"console.log(require('./package.json').version)\") == $(npm view web3x-es dist-tags.latest) ] || npm publish"

- run:
name: Publish web3x-evm
working_directory: web3x-evm/dest
command: "[ $(node -e \"console.log(require('./package.json').version)\") == $(npm view web3x-evm dist-tags.latest) ] || npm publish"

- run:
name: Publish web3x-codegen
working_directory: web3x-codegen/dest
command: "[ $(node -e \"console.log(require('./package.json').version)\") == $(npm view web3x-codegen dist-tags.latest) ] || npm publish"

workflows:
version: 2
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "src/evm/test/test-data"]
path = src/evm/test/test-data
path = web3x-evm/src/test/test-data
url = git@github.com:ethereum/tests
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file.

## [4.0.0] - 2019-05-22

- Major project restructure.
- `web3x-codegen` is its own package.
- `web3x-evm` is its own package.
- All packages but `web3x` are MIT licensed.

## [3.0.11] - 2019-05-22

- `EvmProvider` uses `BroadcastChannel` in browser to send newly mined blocks between tabs.
Expand Down Expand Up @@ -152,6 +159,7 @@ All notable changes to this project will be documented in this file.

- Initial release of Typescript port from web3.js.

[4.0.0]: https://github.com/xf00f/web3x/compare/v3.0.11...v4.0.0
[3.0.11]: https://github.com/xf00f/web3x/compare/v3.0.10...v3.0.11
[3.0.10]: https://github.com/xf00f/web3x/compare/v3.0.9...v3.0.10
[3.0.9]: https://github.com/xf00f/web3x/compare/v3.0.8...v3.0.9
Expand Down
Loading

0 comments on commit 9b1fb49

Please sign in to comment.