generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move to pure TS package to reduce bundle size (#89)
fix: use default import on second level for mui icons fix(deps): update deps fix(deps): remove dependencies and unused packages test(ci): add concurrency setting in cypress workflow fix(deps): allow only react 17 fix: inline sourcemap build: add sideEffects false in package fix(build): make mui and emotion external fix: use chatbox namespace for translations fix(deps): make react-i18n a peer dep fix: use ImmutableCast in props
- Loading branch information
Showing
28 changed files
with
1,246 additions
and
807 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
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ node_modules | |
|
||
# misc | ||
.DS_Store | ||
bundle-analysis.html | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
|
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["es5", "dom"], | ||
|
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
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,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/graasp.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta | ||
name="Graasp Chatbox test entrypoint" | ||
content="A chat implementation for Graasp" | ||
/> | ||
<!-- Load Roboto font from Google fonts --> | ||
<link | ||
rel="stylesheet" | ||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" | ||
/> | ||
<title>Graasp Chatbox</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="src/index.ts"></script> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{ | ||
"name": "@graasp/chatbox", | ||
"version": "1.1.0", | ||
"main": "dist/index.js", | ||
"module": "dist/index.js", | ||
"source": "index.ts", | ||
"typings": "dist/index.d.ts", | ||
"type": "commonjs", | ||
"files": [ | ||
"dist" | ||
], | ||
"sideEffects": false, | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"typescript": { | ||
"definition": "dist/index.d.ts" | ||
"definition": "./dist/index.d.ts" | ||
}, | ||
"repository": "graasp/graasp-chatbox", | ||
"author": "Graasp", | ||
|
@@ -25,9 +28,7 @@ | |
"node": ">=16" | ||
}, | ||
"scripts": { | ||
"pre-commit": "yarn prettier:check && yarn lint", | ||
"post-commit": "git status", | ||
"build": "rimraf dist && tsc && rollup -c rollup.config.js", | ||
"build": "tsc && tsc-alias", | ||
"start": "rimraf dist && tsc && rollup --watch -c rollup.config.js", | ||
"start:example": "yarn workspace graasp-chatbox-example start", | ||
"prepack": "yarn build", | ||
|
@@ -41,37 +42,31 @@ | |
"test": "yarn build", | ||
"hooks:uninstall": "husky uninstall", | ||
"hooks:install": "husky install", | ||
"predeploy": "cd example && yarn install && yarn build", | ||
"release": "standard-version", | ||
"cypress:open": "cypress open", | ||
"cypress:ci": "cypress run --component" | ||
}, | ||
"peerDependencies": { | ||
"@mui/icons-material": "*", | ||
"@mui/lab": "*", | ||
"@mui/material": "*", | ||
"eslint": "*", | ||
"react": "*", | ||
"react-dom": "*" | ||
"@emotion/react": "^11.10.6", | ||
"@emotion/styled": "^11.10.6", | ||
"@graasp/translations": "^1.10.0", | ||
"@mui/icons-material": "^5.11.11", | ||
"@mui/lab": "^5.0.0-alpha.121", | ||
"@mui/material": "^5.11.11", | ||
"react": "^17.0.0", | ||
"react-dom": "*", | ||
"react-i18next": "^12.0.0" | ||
}, | ||
"dependencies": { | ||
"@emotion/react": "11.10.6", | ||
"@emotion/styled": "11.10.6", | ||
"@graasp/sdk": "0.9.2", | ||
"@graasp/translations": "1.8.0", | ||
"@graasp/ui": "2.2.0", | ||
"clsx": "1.2.1", | ||
"@graasp/query-client": "0.4.0", | ||
"@graasp/sdk": "0.10.0", | ||
"@graasp/ui": "2.3.1", | ||
"i18next": "21.8.1", | ||
"immutable": "4.2.4", | ||
"lodash.truncate": "4.4.2", | ||
"moment": "2.29.4", | ||
"prism-react-renderer": "1.3.5", | ||
"react-csv": "2.2.2", | ||
"react-i18next": "12.0.0", | ||
"react-markdown": "8.0.5", | ||
"react-mentions": "4.4.7", | ||
"react-query": "3.39.3", | ||
"react-router-dom": "6.3.0", | ||
"remark-breaks": "3.0.2", | ||
"remark-gfm": "3.0.1", | ||
"tsc-alias": "1.8.2" | ||
|
@@ -84,15 +79,12 @@ | |
"@commitlint/config-conventional": "17.4.4", | ||
"@cypress/instrument-cra": "1.4.0", | ||
"@cypress/react": "7.0.2", | ||
"@cypress/webpack-dev-server": "3.3.0", | ||
"@graasp/query-client": "0.3.0", | ||
"@emotion/react": "11.10.6", | ||
"@emotion/styled": "11.10.6", | ||
"@graasp/translations": "1.11.0", | ||
"@mui/icons-material": "5.11.11", | ||
"@mui/lab": "5.0.0-alpha.121", | ||
"@mui/material": "5.11.11", | ||
"@rollup/plugin-commonjs": "21.0.1", | ||
"@rollup/plugin-json": "4.1.0", | ||
"@rollup/plugin-node-resolve": "13.1.3", | ||
"@rollup/plugin-typescript": "8.3.0", | ||
"@trivago/prettier-plugin-sort-imports": "3.2.0", | ||
"@types/jest": "27.4.0", | ||
"@types/lodash.truncate": "4.4.7", | ||
|
@@ -104,8 +96,9 @@ | |
"@types/uuid": "9.0.0", | ||
"@typescript-eslint/eslint-plugin": "5.49.0", | ||
"@typescript-eslint/parser": "5.49.0", | ||
"@vitejs/plugin-react": "3.1.0", | ||
"cross-env": "7.0.3", | ||
"cypress": "12.4.0", | ||
"cypress": "12.9.0", | ||
"env-cmd": "10.1.0", | ||
"eslint": "8.23.0", | ||
"eslint-config-prettier": "8.3.0", | ||
|
@@ -116,26 +109,24 @@ | |
"eslint-plugin-promise": "5.2.0", | ||
"eslint-plugin-react": "7.30.1", | ||
"husky": "8.0.3", | ||
"immutable": "4.2.4", | ||
"prettier": "2.8.4", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"react-i18next": "12.0.0", | ||
"react-router-dom": "6.10.0", | ||
"react-scripts": "5.0.1", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.77.0", | ||
"rollup-jest": "1.1.3", | ||
"rollup-plugin-import-css": "3.0.3", | ||
"rollup-plugin-peer-deps-external": "2.2.4", | ||
"rollup-plugin-tsc-alias": "1.1.2", | ||
"rollup-plugin-visualizer": "5.9.0", | ||
"ts-loader": "9.3.1", | ||
"tslib": "2.5.0", | ||
"typescript": "4.9.5" | ||
"typescript": "4.9.5", | ||
"vite": "4.2.1", | ||
"vite-plugin-dts": "2.1.0" | ||
}, | ||
"resolutions": { | ||
"@types/react": "17.0.2", | ||
"immutable": "4.2.4" | ||
"@types/react": "17.0.2" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"packageManager": "[email protected]" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.