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';