Skip to content

Commit

Permalink
Merge pull request #271 from Concordium/release/10
Browse files Browse the repository at this point in the history
Release/10
  • Loading branch information
soerenbf committed Oct 19, 2023
2 parents bab7bc4 + 8477eb7 commit a1c9bf2
Show file tree
Hide file tree
Showing 428 changed files with 18,435 additions and 14,156 deletions.
88 changes: 88 additions & 0 deletions .eslintrc.cjs
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'],
},
},
},
};
54 changes: 0 additions & 54 deletions .eslintrc.json

This file was deleted.

36 changes: 24 additions & 12 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/wasm-pack-action@v0.4.0
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit a1c9bf2

Please sign in to comment.