-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 471b4ac
Showing
156 changed files
with
27,376 additions
and
0 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,115 @@ | ||
version: 2.1 | ||
|
||
executors: | ||
default: | ||
docker: | ||
- image: circleci/node:16 | ||
working_directory: ~/project | ||
|
||
commands: | ||
attach_project: | ||
steps: | ||
- attach_workspace: | ||
at: ~/project | ||
|
||
jobs: | ||
install-dependencies: | ||
executor: default | ||
steps: | ||
- checkout | ||
- attach_project | ||
- restore_cache: | ||
keys: | ||
- dependencies-{{ checksum "package.json" }} | ||
- dependencies- | ||
- restore_cache: | ||
keys: | ||
- dependencies-example-{{ checksum "example/package.json" }} | ||
- dependencies-example- | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
yarn install --cwd example --frozen-lockfile | ||
yarn install --frozen-lockfile | ||
- save_cache: | ||
key: dependencies-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
- save_cache: | ||
key: dependencies-example-{{ checksum "example/package.json" }} | ||
paths: | ||
- example/node_modules | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- . | ||
|
||
lint: | ||
executor: default | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Lint files | ||
command: | | ||
yarn lint | ||
typescript: | ||
executor: default | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Typecheck files | ||
command: | | ||
yarn typescript | ||
unit-tests: | ||
executor: default | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Run unit tests | ||
command: | | ||
yarn test --coverage | ||
- store_artifacts: | ||
path: coverage | ||
destination: coverage | ||
|
||
build-package: | ||
executor: default | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Build package | ||
command: | | ||
yarn prepare | ||
build-packages: | ||
executor: default | ||
steps: | ||
- attach_project | ||
- run: | ||
name: Build packages in the monorepo | ||
command: yarn lerna run prepack | ||
- run: | ||
name: Verify built type definitions are correct | ||
command: yarn typescript | ||
- run: | ||
name: Verify paths for types | ||
command: node scripts/check-types-path.js | ||
|
||
workflows: | ||
build-and-test: | ||
jobs: | ||
- install-dependencies | ||
- lint: | ||
requires: | ||
- install-dependencies | ||
- typescript: | ||
requires: | ||
- install-dependencies | ||
- unit-tests: | ||
requires: | ||
- install-dependencies | ||
- build-package: | ||
requires: | ||
- install-dependencies |
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,10 @@ | ||
node_modules/ | ||
coverage/ | ||
dist/ | ||
lib/ | ||
web-build/ | ||
web-report/ | ||
|
||
.expo/ | ||
.yarn/ | ||
.vscode/ |
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,26 @@ | ||
{ | ||
"extends": "satya164", | ||
"plugins": ["simple-import-sort"], | ||
"settings": { | ||
"react": { | ||
"version": "16" | ||
}, | ||
"import/core-modules": ["react-native-chat-uikit"] | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
"simple-import-sort/imports": "error", | ||
"simple-import-sort/exports": "error" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [""], | ||
"rules": { | ||
"jest/*": 0 | ||
} | ||
} | ||
] | ||
} |
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 @@ | ||
yarn-*.js binary |
Oops, something went wrong.