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';
|
12
pnpm-lock.yaml
generated
12
pnpm-lock.yaml
generated
@ -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
|
||||
|
Reference in New Issue
Block a user