Skip to content

Commit 403bf73

Browse files
committed
First commit
0 parents  commit 403bf73

23 files changed

+7130
-0
lines changed

.babelrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [['@anansi', { typing: 'typescript' }]],
3+
};

.browserslistrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extends @anansi/browserslist-config

.circleci/config.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Javascript Node CircleCI 2.1 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.1/language-javascript/ for more details
4+
#
5+
version: 2.1
6+
jobs:
7+
setup:
8+
docker: &docker
9+
# specify the version you desire here
10+
- image: circleci/node:16
11+
steps:
12+
- checkout
13+
# Download and cache dependencies
14+
- restore_cache:
15+
keys:
16+
- v1-dependencies-{{ checksum "yarn.lock" }}
17+
# fallback to using the latest cache if no exact match is found
18+
- v1-dependencies-
19+
- run:
20+
name: yarn install
21+
command: |
22+
sudo corepack enable
23+
yarn install --immutable
24+
yarn build:pkg
25+
- save_cache:
26+
paths:
27+
- .yarn/cache
28+
- .yarn/install-state.gz
29+
key: v1-dependencies-{{ checksum "yarn.lock" }}
30+
- persist_to_workspace:
31+
root: ~/
32+
paths:
33+
- project
34+
35+
build:
36+
docker: *docker
37+
steps:
38+
- attach_workspace:
39+
at: ~/
40+
- run: yarn run build
41+
42+
lint:
43+
parallelism: 1
44+
docker: *docker
45+
steps:
46+
- attach_workspace:
47+
at: ~/
48+
- run:
49+
#- run: yarn run lint packages/*/src
50+
command: |
51+
FILES=$(circleci tests glob "src/**/*.[jt]{s,}" | circleci tests split --split-by=timings)
52+
yarn lint $FILES
53+
54+
55+
unit_tests:
56+
parallelism: 2
57+
docker: *docker
58+
steps:
59+
- attach_workspace:
60+
at: ~/
61+
- run:
62+
command: |
63+
FILES=$(circleci tests glob "src/**/*.test.[jt]{s,}" | circleci tests split --split-by=timings)
64+
yarn test:ci -- -- --maxWorkers=4 $FILES
65+
66+
test_coverage:
67+
parallelism: 2
68+
docker: *docker
69+
steps:
70+
- attach_workspace:
71+
at: ~/
72+
- run:
73+
command: |
74+
FILES=$(circleci tests glob "dist/**/*.test.[jt]{s,}" | circleci tests split --split-by=timings)
75+
if [ "$COVERALLS_REPO_TOKEN" != "" ]; then yarn run test:coverage --maxWorkers=4 --coverageReporters=text-lcov $FILES | yarn run coveralls; fi
76+
77+
salus:
78+
machine: true
79+
steps:
80+
- checkout
81+
- run: docker run -t -v $(pwd):/home/repo coinbase/salus
82+
83+
workflows:
84+
version: 2
85+
build:
86+
jobs:
87+
- setup
88+
89+
- unit_tests:
90+
requires:
91+
- setup
92+
- test_coverage:
93+
requires:
94+
- setup
95+
96+
- lint:
97+
requires:
98+
- setup
99+
- build:
100+
requires:
101+
- setup
102+
- salus

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.py]
13+
indent_size = 4

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
jest.config.js
3+
/scripts

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
extends: 'plugin:@anansi/typescript',
3+
env: { node: true },
4+
};

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.svg binary

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.pnp.*
2+
.yarn/*
3+
!.yarn/patches
4+
!.yarn/plugins
5+
!.yarn/releases
6+
!.yarn/sdks
7+
!.yarn/versions
8+
9+
node_modules/
10+
dist/
11+
dist-server/
12+
coverage/
13+
lib/

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 80,
3+
"semi": true,
4+
"singleQuote": true,
5+
"trailingComma": "all"
6+
}

.stackblitzrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"startCommand": "yarn start",
3+
"env": { "NODE_ENV": "development", "WEBPACK_CACHE": "memory" }
4+
}

0 commit comments

Comments
 (0)