Jan Jakes
924b01d85c
Remove no longer supported import syntax, use CommonJS for tests instead
...
Using inject-loader requires first transpiling modules to CommonJS. Previously,
we were doing this via parametrized imports, but these are no longer supported.
Instead, we can fix this by using CommonJS preset in Webpack config.
[MAILPOET-5491]
2024-06-28 16:11:07 +02:00
Rostislav Wolny
95754df815
Update tinyMce loader config to cover new cases of global tinymce
...
[MAILPOET-5988]
2024-06-25 16:10:54 +02:00
Rostislav Wolny
03b50bd2f5
Add mock for @woocommerce/settings module
...
Previously this module was mocked as an empty module, but
after updating @woocommerce/currency we need to provide at
least getSetting function.
The function is called only once with the parameter 'currency'.
I tried installing the full @woocommerce/settings, but it requires
complex initialization (e.g. passing some data from PHP). I find it
better to provide this simple mock and throw an error if it is used more than expected.
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
b83a2188e0
Remove deprecated @babel/plugin-proposal-nullish-coalescing-operator
...
It was replaced by @babel/plugin-transform-nullish-coalescing-operator
and it is already part of @babel/preset-env
https://babeljs.io/docs/babel-plugin-transform-nullish-coalescing-operator
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
922dd93961
Remove deprecated @babel/plugin-proposal-class-properties
...
It was replaced by @babel/plugin-transform-class-properties
Which is already part of @babel/preset-env
See https://babeljs.io/docs/babel-plugin-transform-class-properties
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Mike Jolley
9c27518a2f
Fix build due to tsx files
2024-05-07 12:08:48 +01:00
Mike Jolley
af1faea7ce
Add Powered By MailPoet Block
2024-05-07 12:08:48 +01:00
Rostislav Wolny
4882a1c66f
Remove unnecessary array spread in webpack config for email editor
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
8ef77dbe58
Add support for skipping build of JS tests and skip when building zip
...
This commit addresses issue with insufficient resources on Circle CI
to avoid using larger executor instances.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
ee07cb1208
Disable TsCheckerPlugin for email editor production build
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
3a88989a84
Rename custom email editor to email editor
...
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
e9a5658be5
Cleanup post editor approach code
...
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Jan Lysý
a07a744707
Rename folders and files by the new lint rule
...
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
1919d58973
Add JS build and an index file for the editor app
...
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Jan Jakes
49dd627a76
Update references to renamed files
...
[MAILPOET-4938]
2023-10-02 13:05:20 +02:00
Jan Lysý
33078fb905
Remove ForkTsCheckerWebpackPlugin plugin from Newsletter editor tests
...
[MAILPOET-5571]
2023-09-06 11:19:20 +02:00
Rostislav Wolny
3089fdeb30
Update WebPack config for email editor to be based on @wordpress/scripts config
...
This brings us closer to how Gutenberg packages are build
and we can start writing CSS the same way as they are used in Gutenberg.
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
db7010ab6f
Add custom send button next to publish button
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
b0d5083718
Setup JS assets entry point and build for the email editor
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Jan Jakes
cd2bceae4b
Mock @woocommerce/settings and @automattic/tour-kit with an empty module
2023-07-24 15:52:21 +02:00
David Remer
8115ab0382
Add frontend
...
[MAILPOET-5088]
2023-06-15 12:25:12 +02:00
Jan Jakes
995f61f6fd
Add @mailpoet/components to the mailpoet plugin
...
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Rostislav Wolny
37ad1d1275
Fix Can't resolve 'process/browser'
...
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
b907ca491b
Fix TinyMCE prefixing
...
[MAILPOET-5052]
2023-02-16 10:50:47 +01:00
Jan Lysý
69833557e4
Add newsletter editor test for coupon block
...
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Rodrigo Primo
9092f892d0
Refactor webpack_admin_index.jsx to TypeScript
...
[MAILPOET-4815]
2022-12-19 21:37:42 +01:00
Jan Jakes
0f23dea7fc
Don't add hash of JS bundles to their filenames, use plugin version parameter instead
...
[MAILPOET-4611]
2022-10-31 10:03:45 +01:00
David Remer
6a9e8abb88
Add template listing functionality
...
[MAILPOET-4533]
2022-09-15 08:08:07 +02:00
Jan Jakes
1093d089fc
Simplify webpack build output
...
[MAILPOET-4446]
2022-08-15 16:05:12 +02:00
Jan Jakes
a01afc27e8
Add entrypoint for premium plugin exposed assets and libs
...
This simplifies Webpack configuration, removes duplicities between loaders and
the "admin_vendor" entrypoint definition, and makes the sharing more transparent.
[MAILPOET-4446]
2022-08-15 16:05:12 +02:00
Rodrigo Primo
d828754f94
Remove MP2 migration admin page
...
[MAILPOET-4376]
2022-08-15 12:46:22 +02:00
Sam Najian
8432cfa904
Fix issue with recursion ending up breaking watch:js command
...
[MAILPOET-4522]
2022-08-09 17:11:53 +02:00
Sam Najian
50d77741b7
Break compilation when compile:js hits a warning
...
[MAILPOET-4507]
2022-08-09 17:11:53 +02:00
Jan Jakes
052e175b76
Remove no longer used require
...
[MAILPOET-4485]
2022-07-26 15:45:54 +02:00
Jan Lysý
88ae1f923a
Add new shared libraries for premium
...
[PREMIUM-196]
2022-07-25 09:32:02 +02:00
Jan Jakes
10c397d3e5
Add automation editor React setup
...
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
Jan Jakes
ab27eaee2d
Autoformat files with prettier
...
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
133d05883b
Expose react/jsx-runtime for premium plugin
...
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
086c4cf731
Add bacic automation React app setup with hello world
...
[MAILPOET-4135]
2022-02-21 09:56:26 +01:00
Sam Najian
2ddd454ddf
Disable typechecking for production build
...
[MAILPOET-3140]
2022-02-21 09:53:50 +01:00
Sam Najian
2df36c3ff6
Re-shrink public.js size
...
- Convert mailpoet_public.js to ts
- Update webpack to use the ts file when replacing
mailpoet.ts with mailpoet_public.ts for public build
[MAILPOET-3140]
2022-02-21 09:53:50 +01:00
Sam Najian
6b470981ae
Add module entry files and expose mailpoet module
...
- Expose mailpoet and dependencies for premium plugin to use
- Update type definitions for window
- Fix typings
- Get rid of side-effects in mailpoet.js(ts)
[MAILPOET-3140]
2022-02-21 09:53:50 +01:00
Sam Najian
573cec0fda
Add typechecker to webpack
...
[MAILPOET-3140]
2022-02-21 09:53:50 +01:00
Jan Jakes
9f790efbf0
Move plugin files to a subfolder
...
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00