Skip to content

Commit 47ffdc5

Browse files
committed
Merge branch 'develop'
2 parents 90a4c84 + 5fb9bdc commit 47ffdc5

Some content is hidden

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

109 files changed

+8757
-9130
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
packages/*/build
3+
packerConfig.js
4+
sloc.js

packages/.eslintrc renamed to .eslintrc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,19 @@
143143
"warn",
144144
"never"
145145
],
146-
"semi-style": "off"
146+
"semi-style": "off",
147+
"no-restricted-imports": [
148+
"error",
149+
{
150+
"paths": [
151+
"@mui/material",
152+
"@mui/icon-material"
153+
],
154+
"patterns": [
155+
"@mui/*/*/*"
156+
]
157+
}
158+
]
147159
}
148160
}
149161
]

.github/workflows/blank.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
5050
- name: Run tests
5151
run: |
52-
npm test
52+
npm run check
5353
5454
- name: Build
5555
run: |

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 bemit UG (haftungsbeschränkt)
3+
Copyright (c) 2024 bemit UG (haftungsbeschränkt)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).
3535

3636
This project is free software distributed under the **[MIT LICENSE](LICENSE)**.
3737

38-
© 2022 bemit UG (haftungsbeschränkt)
38+
© 2024 bemit UG (haftungsbeschränkt)

packages/jest.config.ts renamed to jest.config.ts

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ import type { Config } from '@jest/types'
22

33
const packages: string[] = ['material-color', 'material-colorful']
44

5-
const testMatchesLint: string[] = []
6-
7-
packages.forEach(pkg => {
8-
testMatchesLint.push(...[
9-
'<rootDir>/' + pkg + '/src/**/*.(js|ts|tsx)',
10-
'<rootDir>/' + pkg + '/tests/**/*.(test|spec|d).(js|ts|tsx)',
11-
])
12-
})
135
const base: Partial<Config.InitialOptions> = {
146
/*transformIgnorePatterns: [
157
'node_modules/?!(@ui-schema)',
@@ -18,8 +10,8 @@ const base: Partial<Config.InitialOptions> = {
1810
'^.+\\.tsx?$': 'ts-jest',
1911
},*/
2012
moduleNameMapper: {
21-
'^@ui-schema/material-color(.*)$': '<rootDir>/material-color/src$1',
22-
'^@ui-schema/material-colorful(.*)$': '<rootDir>/material-colorful/src$1',
13+
'^@ui-schema/material-color(.*)$': '<rootDir>/packages/material-color/src$1',
14+
'^@ui-schema/material-colorful(.*)$': '<rootDir>/packages/material-colorful/src$1',
2315
},
2416
moduleFileExtensions: [
2517
'ts',
@@ -46,26 +38,20 @@ const config: Config.InitialOptions = {
4638
...packages.map(pkg => ({
4739
displayName: 'test-' + pkg,
4840
...base,
49-
moduleDirectories: ['node_modules', '<rootDir>/' + pkg + '/node_modules'],
50-
//moduleDirectories: ['node_modules', '<rootDir>/ui-schema/node_modules', '<rootDir>/ds-material/node_modules'],
41+
moduleDirectories: ['node_modules', '<rootDir>/packages/' + pkg + '/node_modules'],
42+
//moduleDirectories: ['node_modules', '<rootDir>/packages/ui-schema/node_modules', '<rootDir>/packages/ds-material/node_modules'],
5143
// todo: check why `transformIgnorePatterns`, combined with multi-projects/lerna 0.5.3 upgrade, throws `TypeError: /node_modules/jest-runner-eslint/build/runner/index.js: node_modules/@ampproject/remapping/dist/remapping.umd.js: _remapping(...) is not a function`
5244
/*transformIgnorePatterns: [
5345
'node_modules/?!(@ui-schema)',
5446
],*/
5547
//testEnvironmentOptions: {},
5648
testMatch: [
57-
'<rootDir>/' + pkg + '/src/**/*.(test|spec).(js|ts|tsx)',
58-
'<rootDir>/' + pkg + '/tests/**/*.(test|spec).(js|ts|tsx)',
49+
'<rootDir>/packages/' + pkg + '/src/**/*.(test|spec).(js|ts|tsx)',
50+
'<rootDir>/packages/' + pkg + '/tests/**/*.(test|spec).(js|ts|tsx)',
5951
],
6052
})),
61-
{
62-
displayName: 'lint',
63-
runner: 'jest-runner-eslint',
64-
...base,
65-
testMatch: testMatchesLint,
66-
},
6753
],
68-
coverageDirectory: '<rootDir>/../coverage',
54+
coverageDirectory: '<rootDir>/coverage',
6955
}
7056

7157
export default config

0 commit comments

Comments
 (0)