-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cbcd-bridging-app): add frontend folder
Signed-off-by: André Augusto <andre.augusto@tecnico.ulisboa.pt>
- Loading branch information
1 parent
a6d0322
commit ecbc579
Showing
4 changed files
with
99 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "my-app", | ||
"version": "1.1.1", | ||
"private": true, | ||
"dependencies": { | ||
"@testing-library/jest-dom": "5.16.5", | ||
"@testing-library/react": "13.4.0", | ||
"@testing-library/user-event": "13.5.0", | ||
"@types/jest": "27.5.2", | ||
"@types/node": "16.18.3", | ||
"@types/react": "18.0.24", | ||
"@types/react-dom": "18.0.8", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"react-scripts": "5.0.1", | ||
"typescript": "4.8.4", | ||
"web-vitals": "2.1.4", | ||
"@material-ui/core": "4.12.4", | ||
"@material-ui/icons": "4.11.3", | ||
"@material-ui/lab": "4.0.0-alpha.61", | ||
"@mui/material": "5.10.2", | ||
"axios": "0.27.2", | ||
"eslint-config-react-app": "7.0.1" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"eslintConfig": { | ||
|
||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
module.exports = (path, options) => { | ||
// Call the defaultResolver, so we leverage its cache, error handling, etc. | ||
return options.defaultResolver(path, { | ||
...options, | ||
// Use packageFilter to process parsed `package.json` before the resolution (see https://www.npmjs.com/package/resolve#resolveid-opts-cb) | ||
packageFilter: pkg => { | ||
// This is a workaround for https://github.com/uuidjs/uuid/pull/616 | ||
// | ||
// jest-environment-jsdom 28+ tries to use browser exports instead of default exports, | ||
// but uuid only offers an ESM browser export and not a CommonJS one. Jest does not yet | ||
// support ESM modules natively, so this causes a Jest error related to trying to parse | ||
// "export" syntax. | ||
// | ||
// This workaround prevents Jest from considering uuid's module-based exports at all; | ||
// it falls back to uuid's CommonJS+node "main" property. | ||
// | ||
// Once we're able to migrate our Jest config to ESM and a browser crypto | ||
// implementation is available for the browser+ESM version of uuid to use (eg, via | ||
// https://github.com/jsdom/jsdom/pull/3352 or a similar polyfill), this can go away. | ||
if (pkg.name === 'uuid') { | ||
delete pkg['exports']; | ||
delete pkg['module']; | ||
} | ||
return pkg; | ||
}, | ||
}); | ||
}; |