Skip to content

Commit

Permalink
feat: switched to pnpm and added react native example app
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <blu3beri@proton.me>
  • Loading branch information
berendsliedrecht committed Sep 25, 2023
1 parent 62912bc commit be03b84
Show file tree
Hide file tree
Showing 121 changed files with 13,905 additions and 11,442 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,31 +209,35 @@ jobs:
with:
node-version: 18.x

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Fetch library artifacts
uses: actions/download-artifact@v3
with:
name: library-linux-x86_64

- name: Install dependencies
run: yarn install
run: pnpm install

- name: Build JavaScript Wrapper
run: yarn build
run: pnpm build

- name: Lint JavaScript Wrapper
run: yarn lint
run: pnpm lint

- name: Format Check JavaScript Wrapper
run: yarn check-format
run: pnpm check-format

- name: Type Check JavaScript Wrapper
run: yarn check-types
run: pnpm check-types

- name: Test JavaScript Wrapper
env:
# binary is downloaded to root of repository
LIB_ANONCREDS_PATH: ../../
run: yarn test
run: pnpm test

- name: Set NPM config
if: |
Expand Down
100 changes: 0 additions & 100 deletions wrappers/javascript/.eslintrc.js

This file was deleted.

71 changes: 71 additions & 0 deletions wrappers/javascript/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
root: true

parser: '@typescript-eslint/parser'

plugins:
- '@typescript-eslint'
- prettier
- import

parserOptions:
tsconfigRootDir: .
project:
- './tsconfig.eslint.json'
- './packages/**/tsconfig.json'

extends:
- eslint:recommended
- plugin:@typescript-eslint/strict
- plugin:@typescript-eslint/stylistic
- plugin:prettier/recommended

ignorePatterns:
- '**/build/**'
- '**/node_modules/**'

rules:
'@typescript-eslint/consistent-type-definitions': off
'@typescript-eslint/no-extraneous-class': off
'@typescript-eslint/no-use-before-define':
- error
- functions: false
classes: false
variables: true
'@typescript-eslint/explicit-member-accessibility': error
no-console: error
'@typescript-eslint/consistent-type-imports': error
import/newline-after-import:
- error
- count: 1
import/order:
- error
- groups:
- type
- - builtin
- external
- parent
- sibling
- index
alphabetize:
order: asc
newlines-between: always
'@typescript-eslint/no-non-null-assertion': error
import/no-extraneous-dependencies:
- error
- devDependencies: false

overrides:
- files: '**/tests/**'
env:
jest: true
node: true

- files:
- '**/scripts/**'
- '**/*.config.js'
env:
node: true
rules:
no-undef: off
no-console: off
'@typescript-eslint/no-var-requires': off
6 changes: 3 additions & 3 deletions wrappers/javascript/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ android.iml

# node.js
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log

# BUCK
buck-out/
Expand All @@ -54,3 +51,6 @@ android/keystores/debug.keystore
**/native/*.dll
**/native/*.so
**/native/*.dylib

**/*-example/android
**/*-example/ios
1 change: 1 addition & 0 deletions wrappers/javascript/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node-linker=hoisted
3 changes: 2 additions & 1 deletion wrappers/javascript/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"printWidth": 120,
"semi": false,
"singleQuote": true
"singleQuote": true,
"trailingComma": "none"
}
12 changes: 0 additions & 12 deletions wrappers/javascript/anoncreds-nodejs/jest.config.ts

This file was deleted.

13 changes: 0 additions & 13 deletions wrappers/javascript/anoncreds-nodejs/scripts/platform.js

This file was deleted.

9 changes: 0 additions & 9 deletions wrappers/javascript/anoncreds-nodejs/tsconfig.build.json

This file was deleted.

6 changes: 0 additions & 6 deletions wrappers/javascript/anoncreds-nodejs/tsconfig.json

This file was deleted.

13 changes: 0 additions & 13 deletions wrappers/javascript/anoncreds-react-native/jest.config.ts

This file was deleted.

21 changes: 0 additions & 21 deletions wrappers/javascript/anoncreds-react-native/src/index.ts

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions wrappers/javascript/anoncreds-react-native/tsconfig.json

This file was deleted.

12 changes: 0 additions & 12 deletions wrappers/javascript/anoncreds-shared/jest.config.ts

This file was deleted.

1 change: 0 additions & 1 deletion wrappers/javascript/anoncreds-shared/test/index.test.ts

This file was deleted.

7 changes: 0 additions & 7 deletions wrappers/javascript/anoncreds-shared/tsconfig.build.json

This file was deleted.

6 changes: 0 additions & 6 deletions wrappers/javascript/anoncreds-shared/tsconfig.json

This file was deleted.

21 changes: 0 additions & 21 deletions wrappers/javascript/jest.config.base.ts

This file was deleted.

Loading

0 comments on commit be03b84

Please sign in to comment.