Skip to content

Commit 728137e

Browse files
authoredFeb 15, 2022
Introduce React components library and configure monorepo (#23)
- Prepare Lerna configuration - Prepare components setup for testing and development live-reload - Add stylebook to showcase React components - Use global ESLint configuration - Add styled-components for both Dashboard and Components library
1 parent 0e4dee2 commit 728137e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+67399
-32279
lines changed
 

‎.eslintrc.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
extends: [
3+
"react-app",
4+
"react-app/jest",
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
],
8+
parser: "@typescript-eslint/parser",
9+
plugins: ["@typescript-eslint"],
10+
overrides: [
11+
{
12+
// ignore empty interfaces for React components
13+
files: ["*.tsx"],
14+
rules: {
15+
"@typescript-eslint/no-empty-interface": "off",
16+
},
17+
},
18+
],
19+
ignorePatterns: ["generated", "coverage", "build", "dist"],
20+
};

‎.github/workflows/branch-build.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
name: Main branch
22

3-
# TODO: Temporary solution. Remove it once migration to Lerna is completed
4-
defaults:
5-
run:
6-
working-directory: dashboard
7-
83
on:
94
push:
105
paths-ignore:
116
- "LICENSE"
127
- "CODEOWNERS"
13-
- "README.md"
8+
- "**.md"
149
branches:
1510
- main
1611
- "release-*"
@@ -37,12 +32,17 @@ jobs:
3732
cache-dependency-path: '**/package-lock.json'
3833

3934
- name: Install dependencies
40-
run: npm install
35+
run: |
36+
npm install
37+
npm run bootstrap
4138
4239
- name: Lint code
4340
run: npm run lint
4441

45-
- name: Build application
42+
- name: Test code
43+
run: npm run test
44+
45+
- name: Build applications
4646
# Unfortunately, the only way to not treat warnings as errors
4747
# on CI is setting `CI` env to `false`.
4848
# See the issue https://github.com/facebook/create-react-app/issues/3657
@@ -51,11 +51,11 @@ jobs:
5151
- name: Set Docker tag env
5252
run: echo "DOCKER_TAG=${GITHUB_SHA:0:7}" >> $GITHUB_ENV
5353

54-
- name: Build Docker image
55-
run: npm run docker:build-image
54+
- name: Build Docker images
55+
run: npm run docker:build
5656

5757
- name: Log into registry
5858
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
5959

60-
- name: Push Docker image
61-
run: npm run docker:push-image
60+
- name: Push Docker images
61+
run: npm run docker:push

0 commit comments

Comments
 (0)
Please sign in to comment.