Skip to content

Commit

Permalink
refactor: split shared components to a separate package [WIP] (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
idoshamun authored May 9, 2021
1 parent 0533159 commit 4a57585
Show file tree
Hide file tree
Showing 34 changed files with 11,124 additions and 118 deletions.
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ commands:
steps:
- run:
name: Combine package-lock.json files to single file
command: npx lerna la -a | awk -F packages '{printf "\"packages%s/package-lock.json\" ", $2}' | xargs cat > << parameters.filename >>
command: npx lerna la -a | awk -F packages '{printf "\"packages%s/package-lock.json\" ", $2}' | xargs cat > << parameters.filename >> 2>/dev/null

jobs:
build:
Expand All @@ -31,14 +31,17 @@ jobs:
key: deps-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "combined-package-lock.txt" }}
paths:
- ./node_modules
- ./packages/eslint-config/node_modules
- ./packages/prettier-config/node_modules
- ./packages/shared/node_modules
- ./packages/webapp/node_modules
- run:
name: Test
command: npx lerna run test:ci
environment:
JEST_JUNIT_OUTPUT_DIR: ./test-results
JEST_JUNIT_OUTPUT_DIR: ../../test-results
- store_test_results:
path: ./packages/webapp/test-results
path: ./test-results
workflows:
build:
jobs:
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ out/

# production
build
dist

# misc
.DS_Store
Expand Down
2 changes: 2 additions & 0 deletions .idea/daily-webapp.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/prettier.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:testing-library/react',
'plugin:jest-dom/recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
],
plugins: ['prettier', '@emotion'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: 'detect',
},
},
env: {
node: true,
},
rules: {
'react/jsx-no-target-blank': 0,
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'styled-components',
message: 'Please import from styled-components/macro.',
},
],
patterns: ['!styled-components/macro'],
},
],
},
};
Loading

0 comments on commit 4a57585

Please sign in to comment.