Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
elbakerino committed Nov 1, 2024
2 parents 90a4c84 + 5fb9bdc commit 47ffdc5
Show file tree
Hide file tree
Showing 109 changed files with 8,757 additions and 9,130 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
packages/*/build
packerConfig.js
sloc.js
14 changes: 13 additions & 1 deletion packages/.eslintrc → .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,19 @@
"warn",
"never"
],
"semi-style": "off"
"semi-style": "off",
"no-restricted-imports": [
"error",
{
"paths": [
"@mui/material",
"@mui/icon-material"
],
"patterns": [
"@mui/*/*/*"
]
}
]
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Run tests
run: |
npm test
npm run check
- name: Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 bemit UG (haftungsbeschränkt)
Copyright (c) 2024 bemit UG (haftungsbeschränkt)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).

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

© 2022 bemit UG (haftungsbeschränkt)
© 2024 bemit UG (haftungsbeschränkt)
28 changes: 7 additions & 21 deletions packages/jest.config.ts → jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ import type { Config } from '@jest/types'

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

const testMatchesLint: string[] = []

packages.forEach(pkg => {
testMatchesLint.push(...[
'<rootDir>/' + pkg + '/src/**/*.(js|ts|tsx)',
'<rootDir>/' + pkg + '/tests/**/*.(test|spec|d).(js|ts|tsx)',
])
})
const base: Partial<Config.InitialOptions> = {
/*transformIgnorePatterns: [
'node_modules/?!(@ui-schema)',
Expand All @@ -18,8 +10,8 @@ const base: Partial<Config.InitialOptions> = {
'^.+\\.tsx?$': 'ts-jest',
},*/
moduleNameMapper: {
'^@ui-schema/material-color(.*)$': '<rootDir>/material-color/src$1',
'^@ui-schema/material-colorful(.*)$': '<rootDir>/material-colorful/src$1',
'^@ui-schema/material-color(.*)$': '<rootDir>/packages/material-color/src$1',
'^@ui-schema/material-colorful(.*)$': '<rootDir>/packages/material-colorful/src$1',
},
moduleFileExtensions: [
'ts',
Expand All @@ -46,26 +38,20 @@ const config: Config.InitialOptions = {
...packages.map(pkg => ({
displayName: 'test-' + pkg,
...base,
moduleDirectories: ['node_modules', '<rootDir>/' + pkg + '/node_modules'],
//moduleDirectories: ['node_modules', '<rootDir>/ui-schema/node_modules', '<rootDir>/ds-material/node_modules'],
moduleDirectories: ['node_modules', '<rootDir>/packages/' + pkg + '/node_modules'],
//moduleDirectories: ['node_modules', '<rootDir>/packages/ui-schema/node_modules', '<rootDir>/packages/ds-material/node_modules'],
// 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`
/*transformIgnorePatterns: [
'node_modules/?!(@ui-schema)',
],*/
//testEnvironmentOptions: {},
testMatch: [
'<rootDir>/' + pkg + '/src/**/*.(test|spec).(js|ts|tsx)',
'<rootDir>/' + pkg + '/tests/**/*.(test|spec).(js|ts|tsx)',
'<rootDir>/packages/' + pkg + '/src/**/*.(test|spec).(js|ts|tsx)',
'<rootDir>/packages/' + pkg + '/tests/**/*.(test|spec).(js|ts|tsx)',
],
})),
{
displayName: 'lint',
runner: 'jest-runner-eslint',
...base,
testMatch: testMatchesLint,
},
],
coverageDirectory: '<rootDir>/../coverage',
coverageDirectory: '<rootDir>/coverage',
}

export default config
Loading

0 comments on commit 47ffdc5

Please sign in to comment.