Commit Graph

223 Commits

Author SHA1 Message Date
Vladimir Reznichenko a3f4d722b9
CI: speedup 'Check Asset Sizes' job (take 3) (#50178)
* CI: attempt 3 to speedup 'Check Asset Sizes' job.

* CI: cleanup

* CI: changelog entry.
2024-08-01 14:15:10 -07:00
Vladimir Reznichenko 474b7624d0
Monorepo: rework deps patching in favour of built-in pnpm functionality (#49892)
* Monorepo: added pach.

* Monorepo: added patch.

* Monorepo: added patch.

* Monorepo: added patch.

* Monorepo: added patch.

* Monorepo: cleanup.

* Monorepo: cleanup.

* Monorepo: changelog entry.
2024-07-24 08:38:32 -07:00
Vladimir Reznichenko 4ae9dee2e5
Monorepo: rework deps patching in admin plugin for better Webpack performance. (#49703)
* Monorepo: rework deps patching in admin plugin.

* Monorepo: changelog entry.
2024-07-23 16:27:42 -03:00
Luigi Teschio 9905b05297
CYS: fix crash of CYS on WordPress 6.6 (#48664)
* CYS: fix crash of CYS on WordPress 6.6

* Add changefile(s) from automation for the following project(s): woocommerce

* CYS: fix crash of CYS on WordPress 6.6

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-20 10:00:47 +02:00
RJ dbd577cbd6
add/lys xstate scaffolding (#45548)
* dev: added xstate 5

* add xstate scaffolding for launch your store
2024-03-18 15:44:32 +08:00
Christopher Allford fa011a431b Removed Unnecessary `run` From `pnpm` 2023-12-09 14:36:22 -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
Moon d562fbdc5c
Fix CYS JS conflict error latest Gutenberg version (#41052)
* dequeue wpcom.editor on cys pages

* Add gutenberg_version to wcSettings.admin

* Use the new consent string for Gutenberg 16.9 and above

* Add changefile(s) from automation for the following project(s): woocommerce

* Revert "dequeue wpcom.editor on cys pages"

This reverts commit 85c039c7dc.

* Update changelog

* Add changefile(s) from automation for the following project(s): woocommerce

* Revert "Add changefile(s) from automation for the following project(s): woocommerce"

This reverts commit 4554626fde.

* Fix lint issues

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2023-10-27 14:09:05 +08:00
moon 2d3756a82c Lint fixes 2023-10-23 17:18:37 -07:00
moon c9ad56bb64 Use webpack to replace modified version lock lock-unlock 2023-10-23 10:54:41 -07:00
moon 448a7e1fea Update version compare logic to include higher versions 2023-10-19 17:14:40 -07:00
moon 907ade39b2 Remvoe unused import 2023-10-19 15:28:13 -07:00
moon 595d5c9c94 Remove ~+ -- not needed 2023-10-19 15:10:10 -07:00
moon 6e3874b137 Use a modified version of edit-site lock-unlock module to make it CYS compatible with both WP 6.4 and 6.3 2023-10-19 14:52:11 -07:00
louwie17 383c96f0ca
Update woocommerce admin scripts to align more with turborepo (#33982)
* Update woocommerce admin scripts to align more with monorepo

* Add changelog

* Add dev script back in

* Add install-if-deps-outdated back into build script

* Remove --force from dev script and add WC_ADMIN_PHASE to turbo cache key

* Remove install-if-deps-outdated from build

* Add composer install step to pr unit tests workflow

* Remove old install scripts, that are not needed anymore

* Make sure client changes are part of the cache hit

* Add composer install to code coverage and code sniff as well

* Add composer_no_dev input to install-build workflow

* Add sass dependency to woocommerce/admin/client turbo cache
2022-07-22 08:32:03 -03:00
Paul Sealock 6100df9a04
Storybook: Move code to `tools/` (#32729) 2022-04-28 09:54:54 +12:00
Paul Sealock e70b75cf81
Update `create-extension` to work in monorepo context (#32514)
* Update create-wc-extension to work in monorepo context

* update lock file
2022-04-26 08:51:35 +12:00
Chi-Hsuan Huang 863316ade7
Merge pull request #32518 from woocommerce/update/32516-woocommerce-admin-links
Update woocommerce-admin links to point to woocommerce repo
2022-04-14 13:40:25 +08:00
Chi-Hsuan Huang f3e460f055 Remove i18 commands and their dependencies
i18 routines have been handled inside plugins/woocommerce.
2022-04-08 12:45:34 +08:00
Chi-Hsuan Huang 3fc88f0a71 Update links of woocommerce-admin to https://github.com/woocommerce/woocommerce 2022-04-07 17:02:43 +08:00
Paul Sealock 407b225133 Move feature flag config files to Woocommerce plugin to support unit test execution in the wp-env environment. 2022-04-06 14:12:24 +12:00
RJChow 6e8d620f00 Copied and modified package-update-textdomain.js script for modifying PHP i18n textdomain 2022-04-01 11:41:32 +08:00
Chi-Hsuan Huang 4c976ebd17 Remove unnecessary wooCommerce admin files
Add back languages/README.md
2022-03-29 17:47:18 +08:00
Christopher Allford c4628b966b Removed WooCommerce Admin Package
This commit removes the WooCommerce Admin package from Core. The
result of this change is that the code for WooCommerce Admin will come
from the included content, rather than the previous package.
2022-03-18 15:30:00 -07:00
Christopher Allford 3dd60322d5 Migrated WooCommerce Admin PHP Code
This commit moves all of the PHP code from `plugins/woocommerce-admin`
to its new home in `plugins/woocommerce`.

- `plugins/woocommerce-admin/src` -> `plugins/woocommerce/src/Admin`
- `plugins/woocommerce-admin/src-internal` -> `plugins/woocommerce/src/Internal`
- `plugins/woocommerce-admin/includes` -> `plugins/woocommerce/includes/react-admin`
2022-03-18 15:23:33 -07:00
Christopher Allford 93e44b3628 Updated React Admin Build Output
This changes the output of the React-based
admin client from WooCommerce Admin to
an appropriate location in the core plugin.
2022-03-18 14:53:25 -07:00
louwie17 c65d43a35e Cleanup Loader.php and move it to Internal namespace (https://github.com/woocommerce/woocommerce-admin/pull/8416)
* Seperated Asset, page, and translation logic into seperate classes out of Loader.php

* Move user, and assets logic out of Loader.php

* Move Loader to Internal and move page helper functions to PageController

* Fix unit tests

* Add changelog
2022-03-09 10:04:34 -04:00
Chi-Hsuan Huang 86fc8b62e5 Switch to pnpm (https://github.com/woocommerce/woocommerce-admin/pull/8349)
* Add pnpm-workspace.yaml

* Add missing dependencies & replace file: with workspace:* in
package.json

* Replace "npm" with "pnpm"

* Replace "npx" with "pnpx"

* Remove package-lock.json

* Add pnpm setup action to github workflows

* Update webpack babel exclude path

* Upgrade woo e2e and fix e2e test command

Update e2e.yml

Use pnpm run e2e:docker-up in e2e.yml

* Remove unused docker-compose.yaml

* Replace lerna with pnpm commands

Update publish commands

* Exclude _locutus_shared_bc.js in babel.config.js

* Add .npmrc to set enable-pre-post-scripts=true by default

* Fix storybook babel config

Update babel.config.js

* Add changelog

* Update pnpm-lock.yaml

* Replace pnpx with pnpm exec

* Update pnpm-lock.yaml

* Remove js-tests/package-lock.json

* Fix @woocommerce/tracks -> workspace:*

* Update pnpm-lock.yaml

* Add @woocommerce/experimental to onboarding/package.json

* Add "@woocommerce/component" to onboarding/package.json

* Update pnpm-lock.yaml

* Use || instead of && for "test:watch"

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

* Fix packages/number "clean" command

* Add root: true to .eslintrc.js to enforce it to use the root config file

* Exclude packages/**/node_modules from babel transpiling

* Fix js-tests build config

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2022-03-04 12:01:16 +08:00
Fernando 162a70494f Fix `pre-release` script (https://github.com/woocommerce/woocommerce-admin/pull/8396)
Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-03-03 09:40:41 -03:00
Moon 8023579670 Move src/Features/WcPayPromotion to /src-internal/Admin/WcPayPromotion (https://github.com/woocommerce/woocommerce-admin/pull/8307)
* Add psr-4 for the internal classes -- this is a temp. changes. We should remove it once we completely merge to the core

* Register class aliases

* Move WcPayPromotion classes to the internal

* Ignore namespace PHP CS issue

* Make features/WcPayPromotion internal

* Added src-internal directory for Automattic\WooCommerce\Internal\Admin namespace

* Moved src/Features/WcPayPromotion to src-internal/Admin/WcPayPromotion

* Add phpcs rules for src-internal

* Remove phpcs:ignoreFile

* Update letter case to make it PSR4 compatible

* Fix letter cases

* Move the alias array into the function

* Rename WcPayPromotion to WCPayPromotion (letter case update)

* Include src-internal

* Update letter case

* Move src/Features/RemoteFreeExtensions to src-internal/Admin/RemoteFreeExtensions (https://github.com/woocommerce/woocommerce-admin/pull/8311)

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-02-16 04:50:33 -08:00
Paul Sealock e41441f83e Add hook reference generator README and documentation (https://github.com/woocommerce/woocommerce-admin/pull/8004)
* Add hook reference README

* update hook reference

* better

* changelog

* add pr number

* remove example

* add desc

* add stats

* jsdoc REPORTS_FILTER

* Category configs

* configs

* data

* dashboard

* dashboard charts

* save

* save

* save

* done with filters

* Add scope to slotFill docs

* data

* add all slotfills

* data

* Fix error when scope is not present, and make use of typedef imports

* Move chart and filter jsdoc definitions to the reports index file

* Update hook reference data.json

* Make use of import for filter typedef and address some typos

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2022-02-11 10:38:38 -04:00
louwie17 ec3852160d Add support for filtering by changelog type for testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/8256)
* Add support for filtering by changelog type for testing instructions, and remove some warnings

* Update readme

* Remove error log

* Add changelog
2022-02-04 09:32:21 -04:00
Chi-Hsuan Huang ae0ea6df2c Fix php unit test "test_deleted_coupons" for wc >= 6.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/8162)
* Fix bin/install-wp-tests.sh for wc >= 6.0.0

* Fix php unit test "test_deleted_coupons" for wc >= 6.1.0

* Update WC_Tests_Reports_Coupons test_populate_and_query test

Fix test
2022-01-18 13:31:21 +08:00
Chi-Hsuan Huang 4aaa938c3e Fix ci php unit tests with woocommerce >= 6.0.0 (https://github.com/woocommerce/woocommerce-admin/pull/8108) 2022-01-04 17:03:30 +08:00
Moon aed89bfdc5 Console command to order PRs by merge date (https://github.com/woocommerce/woocommerce-admin/pull/7543)
* Add a command to sort PRs by merge date in asc -- this can be useful when we cherry-pick PRs for the releases

* Check # of arguments

* Convert PHP to shell script
2021-09-15 10:50:54 -07:00
Moon 89343470cb Remove docs command (https://github.com/woocommerce/woocommerce-admin/pull/7607) 2021-09-01 19:03:34 -07:00
Moon 7aa1cd79d0 Check if file exists (https://github.com/woocommerce/woocommerce-admin/pull/7606) 2021-09-01 19:03:25 -07:00
Moon 03fb7e87a6 Add/7481 cmd to collect testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7499)
* Add a new command to build testing instructions by a given version

* Check - [ ] Include test instructions in the release checkbox

* Fix code format

* Code cleanup

* Fix config error

* Update README.md

* Update README.md

* Update README.md

* Remove js version

* Remove test file

* A minor refactor

* Reuse parse() method from the WCAdminFormatter.php

* Exclude PRs with "no release testing instructions" label

* Remove Requests:multi_request dependency

* Remove wp load script
2021-08-27 13:47:16 -07:00
Jeff Stieler d3e940208e Refactor package style builds (https://github.com/woocommerce/woocommerce-admin/pull/7531)
* Build experimental package CSS with webpack.

* Move style-only webpack config to reusable private package.

* Update other packages to use webpack for style builds.

* Add tsbuildinfo to clean scripts.

* Fix main start script.

* Remove defunct package build scripts.

* Move client/ dependencies for style builds.

* DRY.

* Remove defunct IE stylesheet definitions.

* Add missing RTL setup for onboarding styles.

* No need to export a function.

* Add changelog.

* Fix README.

* Revert concurrently script path change.
2021-08-19 10:15:59 -04:00
Moon d2e1e3feff Fix broken PHP linter workflow (https://github.com/woocommerce/woocommerce-admin/pull/7526)
* Remove dollar sign and space to fix the syntax error.

Remove dollar sign and space

* , separated file list does not work with phpcs. Use space instead
2021-08-18 11:15:58 -07:00
Moon b5e973ed18 Add changelog.txt (https://github.com/woocommerce/woocommerce-admin/pull/7464) 2021-08-05 15:49:37 -07:00
Moon 9a9fb8ccde Replace first occurrence of the bullet char instead of replacing all (https://github.com/woocommerce/woocommerce-admin/pull/7465) 2021-08-05 15:36:59 -07:00
Jeff Stieler 8e61f55017 Allow packages to be built in isolation. (https://github.com/woocommerce/woocommerce-admin/pull/7286)
* Use yarn instead of npm.

In prep for workspaces, since we're locked to npm < 7. See: https://github.com/woocommerce/woocommerce-admin/pull/7126#issue-661287749

* Initial workspace creation.

* Add initial tsc build to @woocommerce/number.

* Attempt to build experimental package.

* Try currency package.

* Define all packages as workspaces.

* Use tsconfig common to packages.

* Fix currency package build.

* Build csv-export with tsc.

* Try to build customer-effort-score with tsc.

* Fix JSX pragma.

* Build data package with tsc.

* Build date package with tsc.

* Build experimental package with tsc.

* Try to build explat package with tsc.

* Build navigation package with tsc.

* Build notices package with tsc.

* Build onboarding package with tsc.

* Build components package with tsc.

* Swap in package JS build into main script.

* Fix experimental package build.

* Try per-package css build with components.

* Try to run components package tests in isolation.

Broken on JSX in test files not being transformed.

* Move @woocommerce/wc-admin-settings into a package.

* Try to fix components package tests.

Fails because we aren't setting up the jest/jest-dom globals.

* Move JS test code to reusable (private) package.

* Enable incremental TS builds.

* Use workspaces to run JS tests.

* Use new jest configs for update snapshot scripts.

* Fix style builds.

* Fix package version in components.

* Fix client test debug and watch scripts.

* Update yarn lock.

* Update test-staged behavior.

* Try to fix storybook.

* Fix storybook.

* Update more npm commands to yarn.

* Add changelog.

* Fix lint errors.

* Update packages readme script references.

* Clean up unused gitignore match.

* Fix another npm command.

* Fix JS builds on watch.

* Fix start script.

* Fix start scripts for packages.

* Use tsc to build packages before tests

* yarn -> npm.

# Conflicts:
#	package-lock.json
#	package.json

* Fix linter error.

* Remove workspace definitions.

* Fix missing Fragment import.

* Fix package lock.

* Fix missing reference.

* Only build commonjs module for js-tests helper.

* Remove errant dependency from components.

* Remove noop scripts.

* Fix package JS build before testing.

* Revert noisy formatting changes.

* Fix precommit and test scripts.

* Fix minimum expected recommended extension count.

Japan test case breaks this.

* Revert babel config changes.

* chore(release): publish

 - @woocommerce/components@7.2.0
 - @woocommerce/csv-export@1.4.0
 - @woocommerce/currency@3.2.0
 - @woocommerce/customer-effort-score@1.1.0
 - @woocommerce/data@1.4.0
 - @woocommerce/date@3.1.0
 - @woocommerce/dependency-extraction-webpack-plugin@1.7.0
 - @woocommerce/eslint-plugin@1.3.0
 - @woocommerce/experimental@1.5.0
 - @woocommerce/explat@1.1.0
 - @woocommerce/js-tests@1.1.0
 - @woocommerce/navigation@6.1.0
 - @woocommerce/notices@3.1.0
 - @woocommerce/number@2.2.0
 - @woocommerce/onboarding@1.1.0
 - @woocommerce/tracks@1.1.0
 - @woocommerce/wc-admin-settings@1.1.0

* Add script for running 'start' in a package.

* Remove yarn from gitignore.

* Update package changelogs, prep versions for release.

* Try to fix E2E tests after main merge.

* Some cleanup.

* Add changelog.

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-07-14 16:38:57 -04:00
Paul Sealock 2e01777d42 Changelogger Linter: Point to correct file to test presence of changelog entry (https://github.com/woocommerce/woocommerce-admin/pull/7318)
* test

* pr number

* try looking at changelogs folder

* better changelog
2021-07-13 14:36:45 +12:00
Moon daf91d034c use Jetpack Changelogger for changelog management (https://github.com/woocommerce/woocommerce-admin/pull/6870)
* use Jetpack Changelogger for changelog management

* Extends Jetpack Changelogger's write command

* Uses changelog.txt

* Add Enhancement

* Remove use of WriteCommand and implement parse() in the Formatter

* Remove bin/changelogger.php wrapper

* Use semver

* Fix spacing

* Fix typo

* changelog.txt update to match readme.txt

* changelog PR template

* remove changelog from readme.txt

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-07-08 19:03:51 -07:00
Paul Sealock 6ea9914ac0 Hook reference: Add SlotFill support (https://github.com/woocommerce/woocommerce-admin/pull/6833)
* add @slotFill to process

* add types

* committing data

* use filter instead of hook

* changelog

* add action type

* update paths to ignore builds and node_modules

* changelog

* Add action data type

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2021-07-09 11:01:43 +12:00
Sam Seay d9daed0a4f Update the wordpress/babel-preset to avoid crashes in WP5.8 beta2 (https://github.com/woocommerce/woocommerce-admin/pull/7202)
* Update the wordpress/babel-preset to avoid crashes in WP5.8 beta2

* Also update other dependencies dropping IE11 support.

* Update data dep in data package.

* Add back regen runtime.

* Add regenerator-runtime dependency for setting up jest tests

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2021-06-18 13:13:17 +08:00
Sam Seay 77906db0ff Use sass-migrator to migrate division to math.div (https://github.com/woocommerce/woocommerce-admin/pull/7136) 2021-06-10 17:09:27 +08:00
louwie17 992951f3ef Bump package versions for release (https://github.com/woocommerce/woocommerce-admin/pull/7106)
* Bump package versions for release

* Update start plugin dependency version

* Add changelog to components and onboarding package
2021-06-09 18:01:07 -03:00