Commit Graph

81 Commits

Author SHA1 Message Date
Sam Seay 04b74c1053
Upgrade to pnpm 7 (#34661)
* Remove -- -- from scripts that fixed issue in pnpm 6, fix a couple TS issues in sep packages
* Minor fixes to analyzer scripts and doco based on pnpm 7
* Add dompurify types to data package to avoid TS errors
* Remove pnpx in favor of pnpm exec
* Modify the code analyzer to respect pnpm version if present.
* Update instructions for running recursive lint, add comments to explain
2022-09-16 09:21:42 +12:00
Tomek Wytrębowicz a86e387667
Update/unify jest@27 across all packages (#34322)
* Update `jest-puppeteer@5.0.4` (from `4.4.0`)

to be albe to run with jest 28.

* Update `jest` and `ts-jest@^27` (from `25`),

to match `e2e-environment` needs.

* Update api-core-tests' `jest@^27` (from `25`),

to unify the used version across the stack.

* Update e2e-env's `jest@^27` & co.  (from `25`),

to unify the used version across the stack.

* Update e2e-env's `@jest/test-sequencer@^27`  (from `25`),

to unify the used version across the stack.

* Update admin-e2e-tests' `@jest/globals@^27`  (from `26`),

to unify the used version across the stack.

* Update woocommerce's `jest@^27.5.1`  (from `25`),

to unify the used version across the stack.

* Replace `mocked` from `ts-jest` to the one from `jest`,

Update `@types/jest@27.4.1` from `27.0.2`.
Try to fix broken tsc build.

* Update `e2e-core-tests`' `@jest/globals@^27.5.1`

from `^26.4.2`.

* Remove changelog entry for bumpin jest in `api-core-tests`

It was already covered in `trunk`.

Addresses https://github.com/woocommerce/woocommerce/pull/34322#discussion_r956019567

* Updated package-lock.yaml

* Updated timeout

* Added changelogs

Co-authored-by: jamelreid <jnoelreid@gmail.com>
2022-09-06 09:29:45 -05:00
Sam Seay 5becf47d60
Simplify turbo commands (#34055)
* Change package json commands and turbo repo config to allow for greatly simplifying running turbo
* Remove require-turbo script which was causing caching issues
* Colorize CI output from scripts
* Add missing changelog script to extend-cart-checkout-block
2022-08-05 12:03:17 +12:00
Paul Sealock 72925142f3
Packages: Fix postinstall errors on install (#33724) 2022-07-07 14:53:59 +12:00
Paul Sealock 7229b65bc9
Changelogger: Fix PHPCS violations (#33664) 2022-07-07 08:54:48 +12:00
jonathansadowski d48a0b2d90
Add helper tool for making sure build, lint, and test are run through Turborepo (#33573)
* Add helper tool for making sure build, lint, and test are run through Turborepo

* Update node version for require-turbo
2022-06-28 13:17:05 -05:00
Roy Ho 98cf4e7160
Add PR numbers to changelog entries on code freeze process (#33627)
* Add PR numbers to changelog entries on code freeze process

* Add markdown links to PR
2022-06-28 11:15:39 -07:00
Christopher Allford b7931409f2
Migrate From Nx to Turborepo (#33079)
This replaces all `nx` commands with `turbo` commands and removes Nx from the repository. All of the `project.json` files have been removed and any commands that broke with Turborepo have been adjusted.
2022-06-09 14:40:07 -07:00
Christopher Allford 2101bf5c9c
Set Composer Platform Requirements (#33245)
This commit sets a platform requirement for all `composer.json` files to ensure that they are compatible with CI.
2022-05-27 14:57:33 -07:00
Christopher Allford ec2e90540e Added Changelogs 2022-05-10 13:31:13 -07:00
Christopher Allford 37ad4c5a70 Converted Spaces To Tabs In JSON
Since we almost universally use tabs instead
of spaces, this commit replaces all of the spaces
with tabs in various JSON files across the monorepo.
2022-05-10 13:31:01 -07:00
Christopher Allford 9a22c62505 Added Changelogs 2022-05-02 12:55:48 -07:00
Christopher Allford 7dc9c203f8 Added Missing `postinstall` Scripts 2022-05-02 12:55:48 -07:00
Christopher Allford 000f14be4a Fixed Tabs 2022-05-02 12:55:48 -07:00
Christopher Allford 377b643720 Removed `prepare` Scripts
Thanks to our build orchestration tooling, there is
no reason for us to build all of the packages on
`install`. In cases where `prepare` was used to
build before packaging, this changes it to
`prepack` so it will run only under the correct
circumstances.
2022-05-02 12:55:48 -07:00
Paul Sealock e82e3cc49e changelog 2022-04-28 10:00:29 +12:00
Paul Sealock 12fef88354 Add lint:fix to admin js packages 2022-04-28 10:00:29 +12:00
Chi-Hsuan Huang 2b1f54b09d Set up lint-staged configuration for each package 2022-04-06 17:31:32 +08:00
Lucas Bustamante c22b56346b
Merge pull request #32004 from woocommerce/e2e/pkg-woocommerce-api-docs
Update docs of @woocommerce/api
2022-03-29 15:21:25 +01:00
Lucas Bustamante d45f7051a4
PR Review 2022-03-29 15:04:37 +01:00
Lucas Bustamante 3e9e76ef7a
Update packages/js/api/README.md
Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>
2022-03-29 15:02:42 +01:00
Lucas Bustamante 4cfb412a57
PR Review 2022-03-29 15:02:04 +01:00
Lucas Bustamante 1d036a79e7
Update packages/js/api/README.md
Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>
2022-03-29 15:00:08 +01:00
Lucas Bustamante 922a72ef7e
PR Review 2022-03-29 14:58:42 +01:00
Chi-Hsuan Huang 167ca8d4b4 Fix @woocommerce/api lint errors 2022-03-25 16:23:12 +08:00
Lucas Bustamante 97c4688230 Typo and rewording 2022-03-01 18:43:02 -03:00
Lucas Bustamante 7b30436e21 Italic asterisk 2022-03-01 18:42:11 -03:00
Lucas Bustamante e443e8c362 Literal asterisks and typo 2022-03-01 18:41:25 -03:00
Lucas Bustamante ca58e7873f Update docs, see commit description
Remove word "isometric", the correct word is "isomorphic", but I've went for  "works both on Browser and Node" instead.

Added asterisks on "TypeScript definitions and Repositories" feature list

Added a section outlining the differences between this package and @woocommerce/woocommerce-rest-api
2022-03-01 18:34:32 -03:00
Lucas Bustamante 03614e54ae Tweak comment 2022-02-07 18:16:37 -03:00
Lucas Bustamante 0cf1b69c7a Rename/move test to more appropriate location 2022-02-07 18:13:02 -03:00
Lucas Bustamante 0bc908f8d2 CR: Spacing 2022-02-07 18:10:31 -03:00
Lucas Bustamante cd2ed17200 CR: Simplify code 2022-02-07 18:10:02 -03:00
Lucas Bustamante 299b7c0bdd Remove display_key/display_value from coupon_line on Order test 2022-02-07 18:08:26 -03:00
Lucas Bustamante ae5d23ce9f Rename property, code style changes, add developer comment 2022-02-07 18:05:06 -03:00
Lucas Bustamante 8b859ffb25 Merge branch 'trunk' into packages/api/json-transform-tests 2022-02-07 17:53:55 -03:00
Lucas Bustamante c1cf58437f Remove tweak to work with both snake_case and camelCase 2022-02-03 11:26:49 -03:00
Ron Rennick 933de44557 remove pnpm rule, fix utils build 2022-01-28 12:34:49 -04:00
Lucas Bustamante baa2d15c2d ts-jest ^27 is incompatible with chalk <3.0.0
This breaks the build in the monorepo due to some package using chalk <3.0.0, reverting back to jest/ts-jest ^25 seems like the lesser evil
2022-01-19 13:47:29 -03:00
Lucas Bustamante 5deef1b4b2 Add tests and partial fix of coupon_lines and refunds 2022-01-19 13:28:16 -03:00
Lucas Bustamante 5ea6f671d3 Add tests and partial fix of tax_lines 2022-01-19 13:16:45 -03:00
Lucas Bustamante f23587cde6 Add tests and partially fix line_items, fee_lines, shipping_lines 2022-01-19 13:11:59 -03:00
Lucas Bustamante 6489025273 Hydrate from snake_case or camelCase, depending on applied transformers 2022-01-18 19:36:38 -03:00
Lucas Bustamante 2120c08eb0 Tests WIP 2022-01-18 19:36:18 -03:00
Lucas Bustamante 46af82a842 Make OrderLineItem hydratable 2022-01-18 19:36:06 -03:00
Lucas Bustamante 3c8c6e7718 Rename properties according to WooCommerce API 2022-01-18 19:35:56 -03:00
Lucas Bustamante 6a6ceaa3f4 Add more keys to be converted 2022-01-18 19:35:38 -03:00
Lucas Bustamante b75f8adbb5 Test that a JSON payload is transformed as expected (WIP) 2022-01-17 16:25:49 -03:00
Lucas Bustamante 770bd181ce Split Shipping and Billing Addresses as they have different properties 2022-01-17 16:25:23 -03:00
Lucas Bustamante c6ac637fa6 Bump ts-jest to same version of jest ^27 2022-01-17 09:37:45 -03:00