-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1e89c1
commit c30876c
Showing
16 changed files
with
230 additions
and
5 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
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,29 @@ | ||
# dependencies | ||
node_modules | ||
.pnp | ||
.pnp.js | ||
.pnpm-debug.log | ||
|
||
# testing | ||
coverage | ||
|
||
# next.js | ||
.next/ | ||
out/ | ||
build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Vercel | ||
.vercel | ||
.now | ||
|
||
# turbo | ||
.turbo |
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,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ["eslint-config-commons-ui"], | ||
}; |
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 @@ | ||
module.exports = require("eslint-config-commons-ui/.lintstagedrc"); |
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,14 @@ | ||
const defaultConfig = require("jest-config-commons-ui"); | ||
|
||
const { moduleNameMapper } = defaultConfig; | ||
|
||
module.exports = { | ||
...defaultConfig, | ||
moduleNameMapper: { | ||
...moduleNameMapper, | ||
// Handle module aliases | ||
"^@/commons-ui/core/(.*)$": "<rootDir>/../commons-ui-core/src/$1", | ||
"^@/commons-ui/next/(.*)$": "<rootDir>/../commons-ui-next/src/$1", | ||
"^@/commons-ui/payload/(.*)$": "<rootDir>/src/$1", | ||
}, | ||
}; |
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,12 @@ | ||
/* eslint-env jest */ | ||
|
||
jest.mock("next/router", () => ({ | ||
useRouter: jest.fn().mockImplementation(() => ({ | ||
asPath: "", | ||
isReady: true, | ||
push: jest.fn(), | ||
query: {}, | ||
})), | ||
})); | ||
|
||
module.exports = require("@commons-ui/testing-library/jest.setup"); |
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,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/commons-ui/payload/*": ["./src/*"] | ||
} | ||
}, | ||
"exclude": ["node_modules"] | ||
} |
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,66 @@ | ||
{ | ||
"name": "@commons-ui/payload", | ||
"version": "0.0.1", | ||
"private": false, | ||
"author": "Code for Africa <tech@codeforafrica.org>", | ||
"description": "", | ||
"main": "src/index.js", | ||
"keywords": [ | ||
"react", | ||
"react-component", | ||
"mui", | ||
"material-ui", | ||
"material design" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/codeforafrica/ui.git", | ||
"directory": "packages/commons-ui-core" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/codeforafrica/ui/issues" | ||
}, | ||
"scripts": { | ||
"jest": "jest", | ||
"lint-check": "TIMING=1 eslint './'", | ||
"lint": "TIMING=1 eslint --fix './'", | ||
"clean": "rm -rf .turbo node_modules dist" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "catalog:", | ||
"@babel/preset-react": "catalog:", | ||
"@commons-ui/testing-library": "workspace:*", | ||
"@emotion/react": "catalog:", | ||
"@emotion/styled": "catalog:", | ||
"@mui/material": "catalog:", | ||
"@mui/utils": "catalog:", | ||
"@types/react": "catalog:", | ||
"babel-loader": "catalog:", | ||
"eslint": "catalog:", | ||
"eslint-config-commons-ui": "workspace:*", | ||
"identity-obj-proxy": "catalog:", | ||
"jest": "catalog:", | ||
"jest-config-commons-ui": "workspace:*", | ||
"prettier": "catalog:", | ||
"react": "catalog:", | ||
"react-dom": "catalog:", | ||
"react-test-renderer": "catalog:", | ||
"require-from-string": "catalog:", | ||
"typescript": "catalog:", | ||
"webpack": "catalog:" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "catalog:", | ||
"@commons-ui/core": "workspace:*", | ||
"@commons-ui/next": "workspace:*", | ||
"@mui/material": "catalog:", | ||
"clsx": "catalog:", | ||
"next": "catalog:", | ||
"prop-types": "catalog:", | ||
"react": "catalog:", | ||
"react-dom": "catalog:", | ||
"slate": "catalog:" | ||
}, | ||
"dependencies": {} | ||
} |
4 changes: 1 addition & 3 deletions
4
.../commons-ui-next/src/RichText/RichText.js → ...mmons-ui-payload/src/RichText/RichText.js
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
|
||
export { default as RichText } from "./RichText"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.