Skip to content

Commit

Permalink
feat: Scoped packages (#679)
Browse files Browse the repository at this point in the history
* Readme package renaming

* account: renaming package

* block: Migrating to scoped packages

* npm package URL

* block: updating dependencies to scoped packages

* blockchain: migrating to scoped packages

* common: migrating to scoped packages

* tx: migrating to scoped packages

* vm: migrating to scoped packages

* account,block: updating badges

* vm: updating patch to scoped packages

* fix: updating new occurrences of package names

* fix: updating new occurrences of package names

* fix: rebase re-touching

* ci: updating Block ci file
  • Loading branch information
evertonfraga committed Jun 2, 2020
1 parent 83fcc18 commit de9c2b7
Show file tree
Hide file tree
Showing 74 changed files with 417 additions and 205 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/account-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ jobs:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v1

- run: npx lerna bootstrap --scope ethereumjs-account --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-account --include-dependencies
- run: npx lerna run lint --scope ethereumjs-account

- run: npx lerna run coverage --scope ethereumjs-account
- run: npx lerna bootstrap --scope @ethereumjs/account --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/account --include-dependencies
- run: npx lerna run lint --scope @ethereumjs/account
- run: npx lerna run coverage --scope @ethereumjs/account

- uses: codecov/codecov-action@v1
with:
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/block-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v1

- run: npm install
working-directory: ${{ env.cwd }}

- run: npx lerna run lint --scope ethereumjs-block

- run: npm run coverage
working-directory: ${{ env.cwd }}

- run: npx lerna bootstrap --scope @ethereumjs/block --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/block --include-dependencies
- run: npx lerna run lint --scope @ethereumjs/block
- run: npx lerna run coverage --scope @ethereumjs/block

- uses: codecov/codecov-action@v1
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/blockchain-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ jobs:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v1

- run: npx lerna bootstrap --scope ethereumjs-blockchain --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-blockchain --include-dependencies
- run: npx lerna run lint --scope ethereumjs-blockchain

- run: npx lerna run coverage --scope ethereumjs-blockchain
- run: npx lerna bootstrap --scope @ethereumjs/blockchain --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/blockchain --include-dependencies
- run: npx lerna run lint --scope @ethereumjs/blockchain
- run: npx lerna run coverage --scope @ethereumjs/blockchain

- uses: codecov/codecov-action@v1
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/common-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ jobs:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v1

- run: npx lerna bootstrap --scope ethereumjs-common --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-common --include-dependencies
- run: npx lerna run lint --scope ethereumjs-common

- run: npx lerna run coverage --scope ethereumjs-common
- run: npx lerna bootstrap --scope @ethereumjs/common --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/common --include-dependencies
- run: npx lerna run lint --scope @ethereumjs/common
- run: npx lerna run coverage --scope @ethereumjs/common

- uses: codecov/codecov-action@v1
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/tx-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ jobs:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v1

- run: npx lerna bootstrap --scope ethereumjs-tx --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-tx --include-dependencies
- run: npx lerna run lint --scope ethereumjs-tx

- run: npx lerna run coverage --scope ethereumjs-tx
- run: npx lerna bootstrap --scope @ethereumjs/tx --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/tx --include-dependencies
- run: npx lerna run lint --scope @ethereumjs/tx
- run: npx lerna run coverage --scope @ethereumjs/tx

- uses: codecov/codecov-action@v1
with:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/tx-bulid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tx
'on':
push:
branches:
- master
tags:
- '*'
paths-ignore:
- packages/account/**
- packages/common/**
pull_request:
types: [opened, reopened, synchronize]
paths-ignore:
- packages/account/**
- packages/common/**
jobs:
test-tx:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 13.x, 14.x]
steps:
- name: 'Use Node.js ${{ matrix.node-version }}'
uses: actions/setup-node@v1
with:
node-version: '${{ matrix.node-version }}'
- uses: actions/checkout@v1
- run: npx lerna bootstrap --scope @ethereumjs/tx --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/tx --include-dependencies
- run: npx lerna run lint --scope @ethereumjs/tx
- run: npx lerna run test:node --scope @ethereumjs/tx
- run: npx lerna run test:browser --scope @ethereumjs/tx
env:
cwd: '${{github.workspace}}/packages/tx'
24 changes: 12 additions & 12 deletions .github/workflows/vm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
with:
node-version: 12.x
- uses: actions/checkout@v1
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-vm --include-dependencies
- run: npx lerna run lint --scope ethereumjs-vm
- run: npx lerna run test:API --scope ethereumjs-vm
- run: npx lerna run test:API:browser --scope ethereumjs-vm
- run: npx lerna bootstrap --scope @ethereumjs/vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/vm --include-dependencies
- run: npx lerna run lint --scope @ethereumjs/vm
- run: npx lerna run test:API --scope @ethereumjs/vm
- run: npx lerna run test:API:browser --scope @ethereumjs/vm
test-vm-state:
runs-on: ubuntu-latest
env:
Expand All @@ -31,10 +31,10 @@ jobs:
with:
node-version: 12.x
- uses: actions/checkout@v1
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-vm --include-dependencies
- run: npx lerna run test:state:selectedForks --scope ethereumjs-vm
- run: npx lerna run coverage --scope ethereumjs-vm
- run: npx lerna bootstrap --scope @ethereumjs/vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/vm --include-dependencies
- run: npx lerna run test:state:selectedForks --scope @ethereumjs/vm
- run: npx lerna run coverage --scope @ethereumjs/vm
- uses: codecov/codecov-action@v1
with:
file: ${{ env.cwd }}/coverage/lcov.info
Expand All @@ -48,6 +48,6 @@ jobs:
with:
node-version: 12.x
- uses: actions/checkout@v1
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-vm --include-dependencies
- run: npx lerna run test:blockchain --scope ethereumjs-vm
- run: npx lerna bootstrap --scope @ethereumjs/vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/vm --include-dependencies
- run: npx lerna run test:blockchain --scope @ethereumjs/vm
26 changes: 13 additions & 13 deletions .github/workflows/vm-nightly-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
with:
node-version: 12.x
- uses: actions/checkout@v1
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-vm --include-dependencies
- run: npx lerna run test:API --scope ethereumjs-vm
- run: npx lerna run test:API:browser --scope ethereumjs-vm
- run: npx lerna bootstrap --scope @ethereumjs/vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/vm --include-dependencies
- run: npx lerna run test:API --scope @ethereumjs/vm
- run: npx lerna run test:API:browser --scope @ethereumjs/vm
test-vm-state:
runs-on: ubuntu-latest
env:
Expand All @@ -25,9 +25,9 @@ jobs:
with:
node-version: 12.x
- uses: actions/checkout@v1
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-vm --include-dependencies
- run: npx lerna run test:state:allForks --scope ethereumjs-vm
- run: npx lerna bootstrap --scope @ethereumjs/vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/vm --include-dependencies
- run: npx lerna run test:state:allForks --scope @ethereumjs/vm
test-vm-blockchain:
runs-on: ubuntu-latest
env:
Expand All @@ -37,9 +37,9 @@ jobs:
with:
node-version: 12.x
- uses: actions/checkout@v1
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-vm --include-dependencies
- run: npx lerna run test:blockchain --scope ethereumjs-vm
- run: npx lerna bootstrap --scope @ethereumjs/vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/vm --include-dependencies
- run: npx lerna run test:blockchain --scope @ethereumjs/vm
test-vm-slow:
runs-on: ubuntu-latest
env:
Expand All @@ -49,6 +49,6 @@ jobs:
with:
node-version: 12.x
- uses: actions/checkout@v1
- run: npx lerna bootstrap --scope ethereumjs-vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope ethereumjs-vm --include-dependencies
- run: npx lerna run test:state:slow --scope ethereumjs-vm
- run: npx lerna bootstrap --scope @ethereumjs/vm --ignore-scripts --include-dependencies --no-ci
- run: npx lerna run build --scope @ethereumjs/vm --include-dependencies
- run: npx lerna run test:state:slow --scope @ethereumjs/vm
Loading

0 comments on commit de9c2b7

Please sign in to comment.