Skip to content

Commit 4a63741

Browse files
chore: migrate to a monorepo
1 parent 8f1dcf1 commit 4a63741

File tree

110 files changed

+22369
-32862
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+22369
-32862
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.md

.eslintrc.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/** @type {import('eslint').Linter.Config} */
2+
module.exports = {
3+
'root': true,
4+
'parser': '@typescript-eslint/parser',
5+
'env': {
6+
'es6': true,
7+
},
8+
'ignorePatterns': [
9+
'node_modules',
10+
'build',
11+
'coverage',
12+
'src/contracts/ethers-typechain',
13+
],
14+
'plugins': [
15+
'import',
16+
'eslint-comments',
17+
],
18+
'extends': [
19+
'eslint:recommended',
20+
'plugin:eslint-comments/recommended',
21+
'plugin:@typescript-eslint/recommended',
22+
'plugin:import/typescript',
23+
'prettier',
24+
],
25+
'globals': {
26+
'BigInt': true,
27+
'console': true,
28+
'WebAssembly': true,
29+
},
30+
'rules': {
31+
'@typescript-eslint/explicit-module-boundary-types': 'off',
32+
'eslint-comments/disable-enable-pair': [
33+
'error',
34+
{
35+
'allowWholeFile': true,
36+
},
37+
],
38+
'import/order': [
39+
'error',
40+
{
41+
'newlines-between': 'always',
42+
'alphabetize': {
43+
'order': 'asc',
44+
},
45+
},
46+
],
47+
'sort-imports': [
48+
'error',
49+
{
50+
'ignoreDeclarationSort': true,
51+
'ignoreCase': true,
52+
},
53+
],
54+
},
55+
};

.eslintrc.json

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 14 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -11,65 +11,32 @@ jobs:
1111
os: [ ubuntu-latest ]
1212

1313
steps:
14-
- name: Checkout repo
15-
uses: actions/checkout@v2
14+
- uses: actions/checkout@v2
1615

17-
- name: Use Node ${{ matrix.node }}
18-
uses: actions/setup-node@v1
16+
- uses: pnpm/action-setup@v2
1917
with:
20-
node-version: ${{ matrix.node }}
18+
version: 8.1
2119

22-
- name: Install deps and build (with cache)
23-
uses: bahmutov/npm-install@v1
20+
- uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node }}
23+
cache: 'pnpm'
2424

25-
- name: Check
26-
run: yarn run package-check
25+
- run: pnpm install
2726

2827
- name: Build
29-
run: yarn build
28+
run: pnpm build
29+
30+
- name: Lint
31+
run: pnpm ci:lint
3032

3133
- name: Test
32-
run: yarn test
34+
run: pnpm test
3335

3436
- name: Upload coverage to Codecov
3537
uses: codecov/codecov-action@v3
3638
with:
3739
fail_ci_if_error: true
3840

39-
- name: BundleMon
41+
- name: Analyze bundle size
4042
uses: lironer/bundlemon-action@v1
41-
42-
build_examples:
43-
name: Build project examples
44-
45-
runs-on: ${{ matrix.os }}
46-
strategy:
47-
matrix:
48-
node: [ '16.x' ]
49-
os: [ ubuntu-latest ]
50-
example:
51-
[
52-
'nodejs',
53-
'react-craco',
54-
'react-webpack-5-experiments',
55-
'webpack-5-experiments',
56-
'webpack-bundler',
57-
]
58-
59-
steps:
60-
- name: Checkout repo
61-
uses: actions/checkout@v2
62-
63-
- name: Use Node ${{ matrix.node }}
64-
uses: actions/setup-node@v1
65-
with:
66-
node-version: ${{ matrix.node }}
67-
68-
- name: Install deps and build (with cache)
69-
uses: bahmutov/npm-install@v1
70-
with:
71-
working-directory: examples/${{ matrix.example }}
72-
73-
- name: Build
74-
run: CI=false yarn build
75-
working-directory: examples/${{ matrix.example }}

.gitignore

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
*.log
2-
.DS_Store
31
node_modules
42
build
3+
dist
4+
*.log
5+
*.tsbuildinfo
6+
.DS_Store
57
coverage
68
example/dist
79
.husky
810
.env
9-
types
10-
dist
11-
.nvmrc
12-
!examples/**/.env
11+
src/contracts/ethers-typechain
12+
contracts/compiled
13+
examples/*/pnpm-lock.yaml
14+
pnpm-debug.log

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16

.prettierignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# package.json is formatted by package managers, so we ignore it here
21
package.json
3-
coverage
4-
build
5-
types/ethers-contracts
2+
**/dist/**
3+
**/types/**
4+
**/build/**
5+
CHANGELOG.md
6+
**/*.sol
7+
README.md
8+
/packages/nucypher-ts/src/contracts/ethers-typechain/

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true,
6+
"trailingComma": "all",
7+
"proseWrap": "always"
8+
}

0 commit comments

Comments
 (0)