Skip to content

Commit

Permalink
refactor: monorepo config and e2e bootstrap; minor fixes and improvem…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
0xjei committed Nov 24, 2022
1 parent 5b068c4 commit cb25f4e
Show file tree
Hide file tree
Showing 124 changed files with 8,939 additions and 8,653 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
"extends": ["@commitlint/config-conventional"]
}
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120
indent_size = 2
indent_size = 4

[*.md]
trim_trailing_whitespace = false
81 changes: 24 additions & 57 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,26 @@
{
"root": true,
"env": {
"es6": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"airbnb-typescript",
"plugin:jest/recommended",
"plugin:jest/style",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"project": ["./tsconfig.json", "./cli/**/tsconfig.json"]
},
"plugins": ["@typescript-eslint", "jest"],
"rules": {
"no-console": [
"warn",
{
"allow": ["info", "warn", "error"]
}
],
"no-promise-executor-return": "off",
"no-unsafe-optional-chaining": "warn",
"no-restricted-syntax": "off",
"consistent-return": "warn",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"no-await-in-loop": "off",
"import/no-cycle": "off",
"import/extensions": "off",
"no-bitwise": "off",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "warn",
"class-methods-use-this": "warn",
"import/no-extraneous-dependencies": "off",
"import/no-relative-packages": "off",
"@typescript-eslint/no-loop-func": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": ["camelCase", "PascalCase", "UPPER_CASE", "snake_case"],
"leadingUnderscore": "allow"
}
]
}
"root": true,
"env": {
"es6": true
},
"extends": ["airbnb-base", "airbnb-typescript/base", "plugin:jest/recommended", "plugin:jest/style", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"project": ["./tsconfig.json", "./packages/*/tsconfig.json"]
},
"plugins": ["@typescript-eslint", "jest"],
"rules": {
"no-underscore-dangle": "off",
"import/no-extraneous-dependencies": "off",
"no-bitwise": "off",
"no-await-in-loop": "off",
"no-restricted-syntax": "off",
"no-console": ["warn", { "allow": ["info", "warn", "error", "log"] }],
"@typescript-eslint/lines-between-class-members": "off",
"no-param-reassign": "off",
"jest/expect-expect": "off",
"no-promise-executor-return": "warn"
}
}
32 changes: 16 additions & 16 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Deploy - dev environment
on:
push:
branches:
- dev
push:
branches:
- dev

jobs:
deploy:
name: Deploy
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3
deploy:
name: Deploy
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Install Dependencies
run: yarn install
- name: Install Dependencies
run: yarn install

- name: Deploy to Firebase
run: yarn firebase:deploy
working-directory: firebase
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- name: Deploy to Firebase
run: yarn firebase:deploy
working-directory: firebase
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"**/*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix"]
"**/*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix"]
}
6 changes: 3 additions & 3 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"semi": false,
"arrowParens": "always",
"trailingComma": "none"
"semi": false,
"arrowParens": "always",
"trailingComma": "none"
}
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ The idea is to have a NodeJS CLI published as NPM package and use Firebase Cloud

### Actors

- **Coordinator**: an individual responsible for conducting and monitoring the ceremony. Basically, the coordinator have to prepare and conduct each step of the Phase 2 ceremony, from beginning to end.
- **Participant**: an individual who wants to contribute to the ceremony. The participant computes the contribution locally on their machine, generates an attestation, and makes it publicly available to everyone.
- **Coordinator**: an individual responsible for conducting and monitoring the ceremony. Basically, the coordinator have to prepare and conduct each step of the Phase 2 ceremony, from beginning to end.
- **Participant**: an individual who wants to contribute to the ceremony. The participant computes the contribution locally on their machine, generates an attestation, and makes it publicly available to everyone.

### Components

- **phase2cli**: all-in-one command-line for interfacing with zkSNARK Phase 2 Trusted Setup ceremonies. Both the participant and the coordinator can use it to interact with the ceremony, from its setup to generating a contribution.
- **firebase**: 3rd party Firebase CLI tool used to bootstrap the project to the cloud, locally emulate functions, db, storage and rules.
- **phase2cli**: all-in-one command-line for interfacing with zkSNARK Phase 2 Trusted Setup ceremonies. Both the participant and the coordinator can use it to interact with the ceremony, from its setup to generating a contribution.
- **firebase**: 3rd party Firebase CLI tool used to bootstrap the project to the cloud, locally emulate functions, db, storage and rules.

## Getting Started

Expand Down Expand Up @@ -83,9 +83,9 @@ yarn prettier:fix

What's missing

- Code of conduct
- Contributing
- Support
- License
- Code of conduct
- Contributing
- Support
- License

**Please, follow the project boards to stay up-to-date!**
18 changes: 0 additions & 18 deletions apps/backend/README.md

This file was deleted.

36 changes: 0 additions & 36 deletions apps/backend/firebase.json

This file was deleted.

33 changes: 0 additions & 33 deletions apps/backend/firestore.indexes.json

This file was deleted.

71 changes: 0 additions & 71 deletions apps/backend/package.json

This file was deleted.

Loading

0 comments on commit cb25f4e

Please sign in to comment.