-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #271 from Concordium/release/10
Release/10
- Loading branch information
Showing
428 changed files
with
18,435 additions
and
14,156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2020: true, | ||
}, | ||
extends: [ | ||
'plugin:prettier/recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:import/recommended', | ||
'plugin:import/typescript', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
tsconfigRootDir: __dirname, | ||
project: [ | ||
'./packages/**/tsconfig.json', | ||
'./docs/**/tsconfig.json', | ||
'**/tsconfig.eslint.json', | ||
], | ||
}, | ||
plugins: ['@typescript-eslint', 'import'], | ||
rules: { | ||
'prettier/prettier': 'warn', | ||
quotes: [ | ||
2, | ||
'single', | ||
{ | ||
avoidEscape: true, | ||
}, | ||
], | ||
'import/no-unresolved': [ | ||
2, | ||
{ | ||
ignore: [ | ||
'@concordium/rust-bindings', | ||
'grpc-api', | ||
'^#.+$', // ESLint resolver does not support subpath imports: https://github.com/import-js/eslint-plugin-import/issues/1868. | ||
], | ||
}, | ||
], | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: ['**/*/test/*', '**/*.config.js'], | ||
}, | ||
], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.config.js'], | ||
rules: { | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'import/namespace': 'off', | ||
}, | ||
}, | ||
], | ||
ignorePatterns: [ | ||
'**/pkg/**/', | ||
'**/dist/**/', | ||
'**/lib/**/', | ||
'deps/**/*', | ||
'**/src/grpc-api/*', | ||
'typedoc/**', | ||
], | ||
settings: { | ||
'import/ignore': ['bs58check'], | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'], | ||
}, | ||
'import/resolver': { | ||
exports: true, | ||
typescript: { | ||
project: ['packages/*/tsconfig.json'], | ||
}, | ||
node: { | ||
project: ['packages/*/tsconfig.json'], | ||
}, | ||
}, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
|
@@ -38,7 +38,8 @@ jobs: | |
with: | ||
workspaces: | | ||
packages/rust-bindings | ||
deps/concordium-deps | ||
deps/concordium-base/rust-src | ||
deps/concordium-base/concordium-contracts-common | ||
- name: Get wasm-pack | ||
uses: jetli/[email protected] | ||
|
@@ -49,11 +50,22 @@ jobs: | |
id: yarn-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
path: | | ||
./node_modules | ||
./docs/node_modules | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
- name: Cache GRPC | ||
id: cache-grpc | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./packages/sdk/src/grpc-api | ||
key: ${{ runner.os }}-grpc-${{ hashFiles('deps/concordium-base/concordium-grpc-api') }} | ||
restore-keys: ${{ runner.os }}-grpc | ||
|
||
- name: Get dependencies | ||
if: steps.yarn-cache.outputs.cache-hit != 'true' | ||
run: yarn install --immutable | ||
|
@@ -66,19 +78,17 @@ jobs: | |
with: | ||
name: build-release | ||
path: | | ||
packages/*/lib | ||
packages/*/grpc | ||
packages/*/package.json | ||
packages/*/README.md | ||
packages/rust-bindings/pkg/*/concordium_rust_bindings* | ||
./packages/sdk/lib | ||
./packages/sdk/src | ||
./packages/rust-bindings/lib | ||
./packages/*/package.json | ||
./packages/*/README.md | ||
build-typedoc: | ||
runs-on: ubuntu-22.04 | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: "recursive" | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -93,11 +103,13 @@ jobs: | |
- name: Restore cached dependencies | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: node_modules | ||
path: | | ||
./node_modules | ||
./docs/node_modules | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Generate typedoc documentation | ||
run: yarn typedoc | ||
run: yarn build:docs | ||
|
||
- name: Store typedoc | ||
uses: ./.github/actions/upload-artifact | ||
|
Oops, something went wrong.