Ron Rennick
4fa2e3822c
Update the monorepo to node v20 ( #45148 )
...
* test bumping node to v18
* remove community contributor condition from review assignment
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai
* bump node to v20
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, packages/php/remote-specs-validation, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai
* add blocks eslint-plugin-woocommerce to project workspace
* add e2e-environment as a peer to e2e-utils
* restore version on @woocommerce/api
* update lock file
* move e2e-environment to devDependencies
* add undefined location check to admin js test
---------
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-12 13:49:55 -03:00
Ron Rennick
c6048b5c49
Add glob, rimraf, and uuid to Syncpack ( #46278 )
...
* add uuid to syncpack
* add rimraf to syncpack
* add glob to syncpack
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/product-editor, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/integrate-plugin, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/components, @woocommerce/block-templates, @woocommerce/ai, @woocommerce/admin-layout, @woocommerce/admin-e2e-tests, woocommerce
---------
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-11 12:52:49 -03:00
Christopher Allford
95bc1189e5
Update `wireit` & Optimize Builds ( #43595 )
...
This bumps the version to 0.14.3 so that we can take advantage of some
upstream improvements. It also makes some changes to the way our
builds and watches work to minimize the number of unnecessary
Node processes involved in the execution.
2024-01-15 14:06:55 -08:00
Christopher Allford
758df4854d
Use `ci-jobs` Utility For `ci.yml` Matrix ( #43532 )
...
This adds support for using the `pnpm utils ci-jobs` command in our `ci.yml` file. One of the bigger benefits to this change too is that we're now distributing a bundled version of the utils tool. This lets us run it without actually having to install the repo and will let us speed up any workflows that currently do.
2024-01-12 20:32:14 -08:00
Ron Rennick
8550da9959
bump php version in packages/js/*/composer.json ( #42020 )
...
* bump php version in packages/js/*/composer.json
* add package changelogs
---------
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-01-04 10:18:34 -04:00
Christopher Allford
bf29119032
Updated PNPM to ^8.12.1 ( #42860 )
2023-12-18 20:31:49 +13:00
Christopher Allford
e46d6bd207
Fixed `watch:build` Race Conditions ( #42802 )
...
There's currently a bug with `wireit` that makes the watch crash.
Swiching over to `nodemon` until that is resolved will
keep that from happening.
2023-12-13 18:25:16 -08:00
Christopher Allford
4c4e89bc98
Enhance Build Watching ( #42712 )
...
Similarly to `build:project`, a new `watch:build:project`
script will watch individual projects for changes. The
`watch:build` script has been updated so that it does
a deep watch in the same vein as `build`. We have also
hooked up tool-level watching for faster performance.
2023-12-12 12:43:48 -08:00
Christopher Allford
4e89debd0c
Fix Jest Preset ( #42707 )
...
When using a preset we need to keep in mind that the transformation
paths are relative to the preset, not the consuming package. We get
around this by using `<rootDir>` in the transform paths. However,
doing this means fixing the root directory for all of the jest tests.
This keeps the tests working in the same way but lets us fix the
preset too.
2023-12-12 09:58:13 -08:00
Christopher Allford
1c635cda6f
Optimized `wireit` Fingerprinting File Inputs ( #42684 )
...
Having an explicit `"files"` definition will allow us to fingerprint
dependencies in `wireit` more granularly. This avoids problems
that can be caused by different source files and directories that
trigger a rebuild in a dependee before a dependent finishes.
2023-12-11 16:21:35 -08:00
Christopher Allford
96af36bf1f
Locked `wireit` Version
2023-12-09 21:56:12 -08:00
Christopher Allford
d244662669
Synchronized Dependencies
2023-12-09 14:40:16 -08:00
Christopher Allford
fa011a431b
Removed Unnecessary `run` From `pnpm`
2023-12-09 14:36:22 -08:00
Christopher Allford
fb6424e6f2
Applied Consistent Outputs
2023-12-09 14:26:36 -08:00
Christopher Allford
d015950e86
Wireit Dependencies Set
2023-12-09 14:24:51 -08:00
Christopher Allford
e729417335
Revised Test Command
...
We will never run all tests concurrently so this is better.
2023-12-09 14:14:47 -08:00
Christopher Allford
97b5cc48fd
Add Wireit: Lots of packages!
2023-12-09 14:05:39 -08:00
Christopher Allford
df32d8e967
Added `wireit` Dependency
...
We're adding this to _every_ package since they have their own
configuration and scripts to run. This also keeps them
isolated so that they can operate independently.
2023-12-09 13:11:15 -08:00
Christopher Allford
3a88cc739a
Updated Dependencies
2023-12-09 07:12:20 -08:00
Christopher Allford
8c6b414fe0
Revert "Refactoring Task Infrastructure" ( #41928 )
...
Revert "Refactored Task Infrastructure (#41202 )"
This reverts commit 96a973b9fa
.
2023-12-06 11:36:12 -08:00
Christopher Allford
96a973b9fa
Refactored Task Infrastructure ( #41202 )
...
* Fixed NPM packages with invalid names.
* Renamed plugin packages.
* Standardized package NPM scripts.
* Replaced Turborepo with Wireit.
2023-12-06 09:32:32 -08:00
Christopher Allford
88969742f2
Regenerate PNPM Lock File & Fix Errors ( #41830 )
2023-12-05 00:36:30 -08:00
louwie17
d7a67783a4
Release/package expression evaluation ( #41708 )
...
* Automated change: Prep @woocommerce/expression-evaluation --initial-release for release.
* Update pnpm-lock.yaml
Revert pnpm-lock changes
* Add gitkeep to changelog directory
---------
Co-authored-by: louwie17 <louwie17@users.noreply.github.com>
2023-11-27 11:45:13 -04:00
Matt Sherman
6944345371
expression-evaluation: Support key/value pair object arrays (like product meta data) ( #41594 )
...
* Test key/value pair arrays in expressions
* Support key/value pair arrays in expressions
* Changelog
2023-11-21 16:39:57 -04:00
RJ
7d465c406a
dev: edited package.json lint scripts to output to console ( #41498 )
...
* edited package.jsons to output to console
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/product-editor, @woocommerce/onboarding, @woocommerce/number, @woocommerce/navigation, @woocommerce/integrate-plugin, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/components, @woocommerce/block-templates, @woocommerce/api, @woocommerce/ai, @woocommerce/admin-layout, @woocommerce/admin-e2e-tests
* empty commit to trigger CI
---------
Co-authored-by: github-actions <github-actions@github.com>
2023-11-21 11:16:08 +08:00
Matt Sherman
2abd3eee38
Initial documentation
2023-10-08 08:13:54 -04:00
Matt Sherman
7a950f51b6
Changelog
2023-10-08 07:03:17 -04:00
Matt Sherman
fd2c07cac0
Clean up ConditionalExpression rule
2023-10-04 20:12:40 -04:00
Matt Sherman
eb71f43bdc
Implement conditional expressions
2023-10-04 19:52:39 -04:00
Matt Sherman
0646031217
Implement multiline comments and be more forgiving of extra whitespace
2023-10-04 15:47:06 -04:00
Matt Sherman
1812a76f8d
Test with complex expression with arithmetic, relational, and logical operators
2023-10-04 10:02:15 -04:00
Matt Sherman
83c3ff365a
Implement arithmetic expressions
2023-10-04 09:59:39 -04:00
Matt Sherman
11653fe327
Rearrange tests to match grammar order
2023-10-04 09:54:15 -04:00
Matt Sherman
e7e9e30884
Test NOT with parenthesis
2023-10-04 09:52:54 -04:00
Matt Sherman
99b06b67a2
Tests for complex expressions
2023-10-04 09:38:52 -04:00
Matt Sherman
18992e7891
Implement relational expressions
2023-10-04 09:33:21 -04:00
Matt Sherman
f47bb0db37
Refactor to evaluate function
2023-10-04 09:25:49 -04:00
Matt Sherman
f0a6045ca0
Simplify IdentifierName processing
2023-10-03 19:45:20 -04:00
Matt Sherman
f331099c64
Support multiline expressions
2023-10-03 19:39:47 -04:00
Matt Sherman
b51b652ebd
Signed number tests
2023-10-03 19:23:39 -04:00
Matt Sherman
d82737fb81
Implement unary expressions
2023-10-03 19:13:56 -04:00
Matt Sherman
6237c8caea
Refactor logical expressions and implement equality expressions
2023-10-03 19:04:46 -04:00
Matt Sherman
a5fec1fa6e
Extract OR and AND operators
2023-10-03 15:43:40 -04:00
Matt Sherman
e9180206b0
String literals
2023-10-03 13:56:45 -04:00
Matt Sherman
32964d8556
Null, boolean, and numeric literals
2023-10-02 20:50:59 -04:00
Matt Sherman
f6ee58a4ce
Change case of grammar rules
2023-10-02 19:58:02 -04:00
Matt Sherman
0f55dff6de
Initial grammar
2023-10-02 15:12:44 -04:00
Matt Sherman
fcf099b780
Initial @woocommerce/expression-evaluation package
2023-10-02 15:12:30 -04:00