Skip to content

Commit 79a076e

Browse files
committed
build: update lerna monorepo config files
1 parent ec7ae38 commit 79a076e

Some content is hidden

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

78 files changed

+142
-269
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

+16-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,23 @@
1414
"docs:dist": "lerna run --scope \"@coreui/react-docs\" dist --stream",
1515
"lib:build": "lerna run --scope \"@coreui/react\" build --stream",
1616
"lib:lint": "lerna run --scope \"@coreui/react\" lint --stream",
17-
"lib:test": "lerna run --scope \"@coreui/react\" test --stream"
17+
"lib:test": "lerna run --scope \"@coreui/react\" test --stream",
18+
"lint": "eslint \"packages/**/src/components/**/*.{js,ts,tsx}\"",
19+
"test": "jest --coverage",
20+
"test:update": "jest --coverage --updateSnapshot"
1821
},
1922
"devDependencies": {
20-
"lerna": "^4.0.0"
23+
"@typescript-eslint/eslint-plugin": "^5.1.0",
24+
"@typescript-eslint/parser": "^5.1.0",
25+
"eslint": "7.32.0",
26+
"eslint-config-prettier": "^8.3.0",
27+
"eslint-plugin-prettier": "^4.0.0",
28+
"eslint-plugin-react": "^7.26.1",
29+
"eslint-plugin-react-hooks": "^4.2.0",
30+
"jest": "^27.3.1",
31+
"jest-canvas-mock": "^2.3.1",
32+
"lerna": "^4.0.0",
33+
"prettier": "^2.4.1",
34+
"ts-jest": "^27.0.7"
2135
}
2236
}

packages/coreui-react-chartjs/.eslintignore

-4
This file was deleted.

packages/coreui-react-chartjs/.eslintrc.js

-3
This file was deleted.

packages/coreui-react-chartjs/package.json

-11
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,11 @@
5151
"@testing-library/jest-dom": "^5.14.1",
5252
"@testing-library/react": "^12.1.2",
5353
"@types/lodash": "^4.14.172",
54-
"@typescript-eslint/eslint-plugin": "^5.1.0",
55-
"@typescript-eslint/parser": "^5.1.0",
5654
"classnames": "^2.3.1",
57-
"eslint": "^7.32.0",
58-
"eslint-config-prettier": "^8.3.0",
59-
"eslint-plugin-prettier": "^4.0.0",
60-
"eslint-plugin-react": "^7.26.1",
61-
"eslint-plugin-react-hooks": "^4.2.0",
62-
"jest": "^27.3.1",
63-
"jest-canvas-mock": "^2.3.1",
6455
"lodash": "^4.17.21",
65-
"prettier": "^2.4.1",
6656
"prop-types": "^15.7.2",
6757
"rollup": "^2.56.2",
6858
"rollup-plugin-peer-deps-external": "^2.2.4",
69-
"ts-jest": "^27.0.7",
7059
"typescript": "^4.4.4"
7160
},
7261
"peerDependencies": {
+2-23
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
11
{
2-
"compilerOptions": {
3-
"jsx": "react",
4-
"outDir": "dist",
5-
"module": "esnext",
6-
"target": "es5",
7-
"lib": ["es6", "dom", "es2016", "es2017"],
8-
"sourceMap": true,
9-
"allowJs": false,
10-
"declaration": true,
11-
"declarationDir": ".",
12-
"moduleResolution": "node",
13-
"forceConsistentCasingInFileNames": true,
14-
"noImplicitReturns": true,
15-
"noImplicitThis": true,
16-
"noImplicitAny": true,
17-
"strictNullChecks": true,
18-
"suppressImplicitAnyIndexErrors": true,
19-
"noUnusedLocals": true,
20-
"noUnusedParameters": true,
21-
"esModuleInterop": true
22-
},
23-
"include": ["src"],
24-
"exclude": ["**/node_modules", "dist"]
2+
"extends": "../../tsconfig",
3+
"include": ["src/**/*"]
254
}

packages/coreui-react/.prettierignore

-1
This file was deleted.

packages/coreui-react/.prettierrc.js

-7
This file was deleted.

packages/coreui-react/jest.config.js

-14
This file was deleted.

packages/coreui-react/package.json

-10
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,14 @@
4747
"@types/react": "^17.0.30",
4848
"@types/react-dom": "^17.0.9",
4949
"@types/react-transition-group": "^4.4.3",
50-
"@typescript-eslint/eslint-plugin": "^5.1.0",
51-
"@typescript-eslint/parser": "^5.1.0",
5250
"classnames": "^2.3.1",
53-
"eslint": "^7.32.0",
54-
"eslint-config-prettier": "^8.3.0",
55-
"eslint-plugin-prettier": "^4.0.0",
56-
"eslint-plugin-react": "^7.26.1",
57-
"eslint-plugin-react-hooks": "^4.2.0",
58-
"jest": "^27.3.1",
59-
"prettier": "^2.4.1",
6051
"prop-types": "^15.7.2",
6152
"react": "^17.0.2",
6253
"react-dom": "^17.0.2",
6354
"react-popper": "^2.2.5",
6455
"react-transition-group": "^4.4.2",
6556
"rollup": "^2.58.0",
6657
"rollup-plugin-peer-deps-external": "^2.2.4",
67-
"ts-jest": "^27.0.7",
6858
"typescript": "^4.4.4"
6959
},
7060
"peerDependencies": {

packages/coreui-react/tsconfig.json

+3-24
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
11
{
2-
"compilerOptions": {
3-
"jsx": "react",
4-
"outDir": "dist",
5-
"module": "esnext",
6-
"target": "es5",
7-
"lib": ["es6", "dom", "es2016", "es2017"],
8-
"sourceMap": true,
9-
"allowJs": false,
10-
"declaration": true,
11-
"declarationDir": ".",
12-
"moduleResolution": "node",
13-
"forceConsistentCasingInFileNames": true,
14-
"noImplicitReturns": true,
15-
"noImplicitThis": true,
16-
"noImplicitAny": true,
17-
"strictNullChecks": true,
18-
"suppressImplicitAnyIndexErrors": true,
19-
"noUnusedLocals": true,
20-
"noUnusedParameters": true,
21-
"esModuleInterop": true
22-
},
23-
"include": ["src"],
24-
"exclude": ["**/node_modules", "dist"]
25-
}
2+
"extends": "../../tsconfig",
3+
"include": ["src/**/*"]
4+
}

packages/docs/.gitignore

-69
This file was deleted.

packages/docs/.prettierignore

-5
This file was deleted.

packages/docs/.prettierrc

-4
This file was deleted.

packages/docs/build/.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"parserOptions": {
77
"sourceType": "script"
88
},
9-
"extends": "../.eslintrc.js",
9+
"extends": "./../../../.eslintrc.js",
1010
"rules": {
1111
"no-console": "off",
1212
"strict": "error"

packages/docs/content/4.0/components/accordion.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
CAccordionCollapse,
1515
CAccordionHeader,
1616
CAccordionItem
17-
} from './../../../../coreui-react/src/index.ts'
17+
} from '@coreui/react/src/index'
1818

1919

2020
## Examples

packages/docs/content/4.0/components/alert.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
CAlertLink,
1414
CButton,
1515
CCallout,
16-
} from './../../../../coreui-react/src/index.ts'
16+
} from '@coreui/react/src/index'
1717

1818
import CIcon from '@coreui/icons-react'
1919

packages/docs/content/4.0/components/avatar.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ menu: Components
77
route: /components/avatar
88
---
99

10-
import { CAvatar } from './../../../../coreui-react/src/index.ts'
10+
import { CAvatar } from '@coreui/react/src/index'
1111

1212
import Avatar1 from './../assets/images/avatars/1.jpg'
1313
import Avatar2 from './../assets/images/avatars/2.jpg'

packages/docs/content/4.0/components/badge.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ menu: Components
77
route: /components/badge
88
---
99

10-
import { CBadge, CButton } from './../../../../coreui-react/src/index.ts'
10+
import { CBadge, CButton } from '@coreui/react/src/index'
1111

1212
## Example
1313

packages/docs/content/4.0/components/breadcrumb.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ menu: Components
77
route: /components/breadcrumb
88
---
99

10-
import { CBreadcrumb, CBreadcrumbItem } from './../../../../coreui-react/src/index.ts'
10+
import { CBreadcrumb, CBreadcrumbItem } from '@coreui/react/src/index'
1111

1212
## Example
1313

packages/docs/content/4.0/components/button-group.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
CFormInput,
2222
CInputGroup,
2323
CInputGroupText,
24-
} from './../../../../coreui-react/src/index.ts'
24+
} from '@coreui/react/src/index'
2525

2626
## Basic example
2727

packages/docs/content/4.0/components/button.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ menu: Components
66
route: /components/buttons
77
---
88

9-
import { CButton, CCallout } from './../../../../coreui-react/src/index.ts'
9+
import { CButton, CCallout } from '@coreui/react/src/index'
1010

1111
## Examples
1212

packages/docs/content/4.0/components/callout.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ menu: Components
66
route: /components/callout
77
---
88

9-
import { CCallout } from './../../../../coreui-react/src/index.ts'
9+
import { CCallout } from '@coreui/react/src/index'
1010

1111
## Examples
1212

packages/docs/content/4.0/components/card.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
CNavItem,
2828
CNavLink,
2929
CRow,
30-
} from './../../../../coreui-react/src/index.ts'
30+
} from '@coreui/react/src/index'
3131

3232
import ReactImg from './../assets/images/react.jpg'
3333
import React400Img from './../assets/images/react400.jpg'

packages/docs/content/4.0/components/carousel.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
CCarouselCaption,
1313
CCarouselItem,
1414
CImage,
15-
} from './../../../../coreui-react/src/index.ts'
15+
} from '@coreui/react/src/index'
1616

1717
import AngularImg from './../assets/images/angular.jpg'
1818
import ReactImg from './../assets/images/react.jpg'

packages/docs/content/4.0/components/chart.mdx

+10-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@ menu: Components
66
route: /components/chart
77
---
88

9-
import { CChart, CChartBar, CChartBubble, CChartDoughnut, CChartLine, CChartPolarArea, CChartRadar, CChartScatter } from './../../../../coreui-react-chartjs/src/index.ts'
9+
import {
10+
CChart,
11+
CChartBar,
12+
CChartBubble,
13+
CChartDoughnut,
14+
CChartLine,
15+
CChartPolarArea,
16+
CChartRadar,
17+
CChartScatter
18+
} from '@coreui/react-chartjs/src/index'
1019

1120
## Installation
1221

packages/docs/content/4.0/components/close-button.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ menu: Components
66
route: /components/close-button
77
---
88

9-
import { CCloseButton } from './../../../../coreui-react/src/index.ts'
9+
import { CCloseButton } from '@coreui/react/src/index'
1010

1111
## Example
1212

packages/docs/content/4.0/components/collapse.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
CCollapse,
1717
CContainer,
1818
CRow,
19-
} from './../../../../coreui-react/src/index.ts'
19+
} from '@coreui/react/src/index'
2020

2121
## How it works
2222

packages/docs/content/4.0/components/dropdown.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
CNavbarBrand,
2828
CNavbarNav,
2929
CNavbarToggler,
30-
} from './../../../../coreui-react/src/index.ts'
30+
} from '@coreui/react/src/index'
3131

3232
## Overview
3333

0 commit comments

Comments
 (0)