Skip to content

Commit

Permalink
🚚 chore: New folder structure (#621)
Browse files Browse the repository at this point in the history
## Description

New folder structure that better handles the growing number of packages.
Previously it was pretty flat with most packages in ./package-name. Now
that it's grown packages are put in a folder

- ./apps for apps (currently just docs)
- ./packages for node/browser packages
- ./bundler for bundler related packages
- ./examples (unchanged)
- ./extension for evmts extensions such as ethers package

## Tasks

- [x] git mv packages
- [x] Update code coverage
- [x] Update package.json
- [x] Fix stale issues with package.json including speeding up bun all 

## Testing

Existing ci

## Additional Information

- [x] I read the [contributing docs](../docs/contributing.md) (if this
is your first contribution)

Your ENS/address:

---------

Co-authored-by: Will Cory <[email protected]>
  • Loading branch information
roninjin10 and Will Cory authored Oct 29, 2023
1 parent 9c3355e commit 07d12bf
Show file tree
Hide file tree
Showing 6,126 changed files with 179,880 additions and 163,897 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
28 changes: 14 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,82 +32,82 @@ jobs:
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/core"
working-directory: "./core"
working-directory: "./packages/core"
- name: 'Report @evmts/ethers Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/ethers"
working-directory: "./ethers"
working-directory: "./extensions/ethers"
- name: 'Report @evmts/bundler Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/bundler"
working-directory: "./bundlers/bundler"
working-directory: "./bundler/bundler"
- name: 'Report @evmts/bun-plugin Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/bun-plugin"
working-directory: "./bundlers/bun"
working-directory: "./bundler/bun"
- name: 'Report @evmts/esbuild-plugin Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/esbuild-plugin"
working-directory: "./bundlers/esbuild"
working-directory: "./bundler/esbuild"
- name: 'Report @evmts/ts-plugin Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/ts-plugin"
working-directory: "./ts-plugin"
working-directory: "./bundler/ts-plugin"
- name: 'Report @evmts/config Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/config"
working-directory: "./config"
working-directory: "./bundler/config"
- name: 'Report @evmts/schemas Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/schemas"
working-directory: "./schemas"
working-directory: "./packages/schemas"
- name: 'Report @evmts/blockexplorer Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/blockexplorer"
working-directory: "./blockexplorer"
working-directory: "./packages/blockexplorer"
- name: 'Report @evmts/runtime Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/runtime"
working-directory: "./runtime"
working-directory: "./bundler/runtime"
- name: 'Report @evmts/solc Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/solc"
working-directory: "./solc"
working-directory: "./bundler/solc"
- name: 'Report @evmts/unplugin Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/unplugin"
working-directory: "./bundlers/unplugin"
working-directory: "./bundler/unplugin"
- name: 'Report @evmts/resolutions Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/resolutions"
working-directory: "./resolutions"
working-directory: "./bundler/resolutions"
- name: 'Report @evmts/effect Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/effect"
working-directory: "./effect"
working-directory: "./packages/effect"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
39 changes: 0 additions & 39 deletions blockexplorer/doc/modules.md

This file was deleted.

Binary file modified bun.lockb
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
39 changes: 39 additions & 0 deletions bundler/bun/docs/modules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[@evmts/bun-plugin](README.md) / Exports

# @evmts/bun-plugin

## Table of contents

### Functions

- [evmtsBunPlugin](modules.md#evmtsbunplugin)

## Functions

### evmtsBunPlugin

**evmtsBunPlugin**(): `BunPlugin`

@evmts/bun-plugin is a bun plugin that allows you to import solidity files into your typescript files
and have them compiled to typescript on the fly.

#### Returns

`BunPlugin`

**`Example`**

```ts plugin.ts
import { evmtsBunPlugin } from '@evmts/esbuild-plugin'
import { plugin } from 'bun'

plugin(evmtsBunPlugin())
```

```ts bunfig.toml
preload = ["./plugins.ts"]
```

#### Defined in

[plugin.js:22](https://github.com/evmts/evmts-monorepo/blob/main/bundler/bun/src/plugin.js#L22)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
47 changes: 47 additions & 0 deletions bundler/bundler/docs/modules/bundler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[@evmts/bundler](/reference/bundler/README.md) / [Modules](/reference/bundler/modules.md) / bundler

# Module: bundler

## Table of contents

### Functions

- [bundler](/reference/bundler/modules/bundler.md#bundler)

## Functions

### bundler

**bundler**(`config`, `logger`, `fao`, `cache?`): `Object`

#### Parameters

| Name | Type |
| :------ | :------ |
| `config` | `ResolvedCompilerConfig` |
| `logger` | `Logger` |
| `fao` | `FileAccessObject` |
| `cache?` | [`Cache`](/reference/bundler/modules/createCache.md#cache) |

#### Returns

`Object`

| Name | Type | Description |
| :------ | :------ | :------ |
| `config` | `ResolvedCompilerConfig` | The configuration of the plugin. |
| `exclude?` | `string`[] | - |
| `include?` | `string`[] | - |
| `name` | `string` | The name of the plugin. |
| `resolveCjsModule` | `AsyncBundlerResult` | Resolves cjs representation of the solidity module |
| `resolveCjsModuleSync` | `SyncBundlerResult` | Resolves cjs representation of the solidity module |
| `resolveDts` | `AsyncBundlerResult` | Resolves .d.ts representation of the solidity module |
| `resolveDtsSync` | `SyncBundlerResult` | Resolves .d.ts representation of the solidity module |
| `resolveEsmModule` | `AsyncBundlerResult` | Resolves the esm representation of the solidity module |
| `resolveEsmModuleSync` | `SyncBundlerResult` | Resolves the esm representation of the solidity module |
| `resolveTsModule` | `AsyncBundlerResult` | Resolves typescript representation of the solidity module |
| `resolveTsModuleSync` | `SyncBundlerResult` | Resolves typescript representation of the solidity module |

#### Defined in

[types.ts:32](https://github.com/evmts/evmts-monorepo/blob/main/bundler/bundler/src/types.ts#L32)
51 changes: 51 additions & 0 deletions bundler/bundler/docs/modules/createCache.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[@evmts/bundler](/reference/bundler/README.md) / [Modules](/reference/bundler/modules.md) / createCache

# Module: createCache

## Table of contents

### Type Aliases

- [Cache](/reference/bundler/modules/createCache.md#cache)

### Functions

- [createCache](/reference/bundler/modules/createCache.md#createcache)

## Type Aliases

### Cache

Ƭ **Cache**: `Object`

#### Type declaration

| Name | Type |
| :------ | :------ |
| `isCached` | (`entryModuleId`: `string`, `sources`: `SolcInputDescription`[``"sources"``]) => `boolean` |
| `read` | (`entryModuleId`: `string`) => `SolcOutput` |
| `write` | (`entryModuleId`: `string`, `compiledContracts`: `SolcOutput`) => `void` |

#### Defined in

[createCache.d.ts:8](https://github.com/evmts/evmts-monorepo/blob/main/bundler/bundler/src/createCache.d.ts#L8)

## Functions

### createCache

**createCache**(`logger`): [`Cache`](/reference/bundler/modules/createCache.md#cache)

#### Parameters

| Name | Type |
| :------ | :------ |
| `logger` | `Logger` |

#### Returns

[`Cache`](/reference/bundler/modules/createCache.md#cache)

#### Defined in

[createCache.d.ts:17](https://github.com/evmts/evmts-monorepo/blob/main/bundler/bundler/src/createCache.d.ts#L17)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Error.constructor

#### Defined in

[config/src/defineConfig.js:26](https://github.com/evmts/evmts-monorepo/blob/main/config/src/defineConfig.js#L26)
[bundler/config/src/defineConfig.js:26](https://github.com/evmts/evmts-monorepo/blob/main/bundler/config/src/defineConfig.js#L26)

## Properties

Expand All @@ -61,7 +61,7 @@ Error.constructor

#### Defined in

[config/src/defineConfig.js:21](https://github.com/evmts/evmts-monorepo/blob/main/config/src/defineConfig.js#L21)
[bundler/config/src/defineConfig.js:21](https://github.com/evmts/evmts-monorepo/blob/main/bundler/config/src/defineConfig.js#L21)

___

Expand Down Expand Up @@ -103,7 +103,7 @@ Error.name

#### Defined in

[config/src/defineConfig.js:17](https://github.com/evmts/evmts-monorepo/blob/main/config/src/defineConfig.js#L17)
[bundler/config/src/defineConfig.js:17](https://github.com/evmts/evmts-monorepo/blob/main/bundler/config/src/defineConfig.js#L17)

___

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Error.constructor

#### Defined in

[config/src/loadConfig.js:36](https://github.com/evmts/evmts-monorepo/blob/main/config/src/loadConfig.js#L36)
[bundler/config/src/loadConfig.js:36](https://github.com/evmts/evmts-monorepo/blob/main/bundler/config/src/loadConfig.js#L36)

## Properties

Expand All @@ -61,7 +61,7 @@ Error.constructor

#### Defined in

[config/src/loadConfig.js:31](https://github.com/evmts/evmts-monorepo/blob/main/config/src/loadConfig.js#L31)
[bundler/config/src/loadConfig.js:31](https://github.com/evmts/evmts-monorepo/blob/main/bundler/config/src/loadConfig.js#L31)

___

Expand Down Expand Up @@ -103,7 +103,7 @@ Error.name

#### Defined in

[config/src/loadConfig.js:27](https://github.com/evmts/evmts-monorepo/blob/main/config/src/loadConfig.js#L27)
[bundler/config/src/loadConfig.js:27](https://github.com/evmts/evmts-monorepo/blob/main/bundler/config/src/loadConfig.js#L27)

___

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ The default CompilerConfig

#### Defined in

[config/src/config/withDefaults.js:6](https://github.com/evmts/evmts-monorepo/blob/main/config/src/config/withDefaults.js#L6)
[bundler/config/src/config/withDefaults.js:6](https://github.com/evmts/evmts-monorepo/blob/main/bundler/config/src/config/withDefaults.js#L6)
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ export default defineConfig(() => ({
#### Defined in
[config/src/types.ts:68](https://github.com/evmts/evmts-monorepo/blob/main/config/src/types.ts#L68)
[bundler/config/src/types.ts:68](https://github.com/evmts/evmts-monorepo/blob/main/bundler/config/src/types.ts#L68)
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#### Defined in

[config/src/loadConfig.js:16](https://github.com/evmts/evmts-monorepo/blob/main/config/src/loadConfig.js#L16)
[bundler/config/src/loadConfig.js:16](https://github.com/evmts/evmts-monorepo/blob/main/bundler/config/src/loadConfig.js#L16)

## Functions

Expand Down Expand Up @@ -57,4 +57,4 @@ runPromise(loadConfig('./tsconfig.json')).pipe(

#### Defined in

[config/src/loadConfig.js:61](https://github.com/evmts/evmts-monorepo/blob/main/config/src/loadConfig.js#L61)
[bundler/config/src/loadConfig.js:61](https://github.com/evmts/evmts-monorepo/blob/main/bundler/config/src/loadConfig.js#L61)
Loading

0 comments on commit 07d12bf

Please sign in to comment.