Add @mailpoet/components package with a dummy testing component
[MAILPOET-5015]
This commit is contained in:
2
packages/js/components/.gitignore
vendored
Normal file
2
packages/js/components/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/build
|
||||
/build-module
|
30
packages/js/components/package.json
Normal file
30
packages/js/components/package.json
Normal 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"
|
||||
}
|
||||
}
|
3
packages/js/components/src/dummy/index.tsx
Normal file
3
packages/js/components/src/dummy/index.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export function Dummy(): JSX.Element {
|
||||
return <div>Dummy component</div>;
|
||||
}
|
1
packages/js/components/src/index.ts
Normal file
1
packages/js/components/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './dummy';
|
Reference in New Issue
Block a user