Add @mailpoet/components package with a dummy testing component

[MAILPOET-5015]
This commit is contained in:
Jan Jakes
2023-01-24 16:12:54 +01:00
committed by Jan Jakeš
parent a31af24205
commit 790f3f4974
5 changed files with 48 additions and 0 deletions

2
packages/js/components/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/build
/build-module

View File

@ -0,0 +1,30 @@
{
"name": "@mailpoet/components",
"private": true,
"sideEffects": false,
"version": "0.1.0",
"type": "module",
"module": "build-module/index.js",
"exports": {
".": {
"import": "./build-module/index.js"
}
},
"scripts": {
"build": "wp-scripts build",
"start": "wp-scripts start"
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"volta": {
"extends": "../../../package.json"
}
}

View File

@ -0,0 +1,3 @@
export function Dummy(): JSX.Element {
return <div>Dummy component</div>;
}

View File

@ -0,0 +1 @@
export * from './dummy';

12
pnpm-lock.yaml generated
View File

@ -363,6 +363,18 @@ importers:
webpack-manifest-plugin: 5.0.0_webpack@5.74.0
wp-types: 3.59.1
packages/js/components:
specifiers:
'@types/react': 18.0.28
'@types/react-dom': 18.0.11
react: 18.2.0
react-dom: 18.2.0
devDependencies:
'@types/react': 18.0.28
'@types/react-dom': 18.0.11
react: 18.2.0
react-dom: 18.2.0_react@18.2.0
packages/js/eslint-config:
specifiers:
'@babel/eslint-parser': ^7.17.0