Commit Graph

158 Commits

Author SHA1 Message Date
Sam Seay cc01b9816e Fix TypeScript build for `packages` and add types for wc/data's onboarding store (https://github.com/woocommerce/woocommerce-admin/pull/6595) 2021-03-25 10:29:37 +13:00
Adrian Duffell a0ef649ef4 Remove composer v1 downgrade in PHP tests (https://github.com/woocommerce/woocommerce-admin/pull/6641) 2021-03-24 08:53:34 +08:00
Paul Sealock 8c1dcd949f Ensure script asset.php files are included in builds (https://github.com/woocommerce/woocommerce-admin/pull/6635)
* Ensure script asset.php files are included

* add changelog
2021-03-23 12:20:26 +13:00
louwie17 9b180db614 Add Typescript and page objects to E2E suite (https://github.com/woocommerce/woocommerce-admin/pull/6582)
* Initial playwright

* Updated e2e to use playwright and typescript

* Update set up environment and jest package

* Add changelog

* Add await to uncheck

* Fix formatting

* Revert jset back to ~24, as >25 runs slower, see facebook/jestwoocommerce/woocommerce-admin#9457

* Removed some unnecessary uses of waitForSelector

* Fix eslint issue

* Fix the e2e tests with latest updates

* Running most tests, with typescript now

* Fix any outstanding queries for the tests to work

* Update changelog

* Remove unnecessary jest version and unnecessary transform setting

* Fix test case broken after rebase

* Add fix to make e2e tests more robust

* Making sure dropdown value is correct

* Reove the wcpay condition for features number
2021-03-17 16:22:09 -03:00
Paul Sealock 7c61e2bff9 Hook Reference: Automate a reference resource (https://github.com/woocommerce/woocommerce-admin/pull/6454)
* read sample doc

* npm cli

* work with arrays

* Its happening

* better naming

* cleanup

* moar cleanup

* new line

* better

* save

* fixup rebase error

* package lock update

* node 12 usage

* add changelog

* fancy logs

* update package lock

* changelog in right place
2021-03-17 13:27:26 +13:00
Sam Seay 630f31ae9d Clean up unused deps and add TS to the build. (https://github.com/woocommerce/woocommerce-admin/pull/6441) 2021-03-01 16:01:22 +13:00
Paul Sealock 101df3b019 Add Dependency Extraction Webpack Plugin (https://github.com/woocommerce/woocommerce-admin/pull/5762)
* Add woo flavored DEWP

* clean up webpack config

* clean

* marketing coupons

* onboarding scripts

* nav scripts

* better imports of deps

* add asset files to bundle

* under git rebase conflict error

* try order

* Add wp_set_script_translations to the scripting loop

* changelog
2021-03-01 12:48:52 +13:00
Sam Seay 7e4a2a6dc8 Add a changelog lint check and auto-labelling to PRs (https://github.com/woocommerce/woocommerce-admin/pull/6414) 2021-02-24 14:47:06 +13:00
Sam Seay 27989ec4f2 Update client and packages builds to use corejs 3 and latest wp babel preset (https://github.com/woocommerce/woocommerce-admin/pull/6411) 2021-02-24 14:24:22 +13:00
Bec Scott e7c533e51b Shell script to release a tagged version to wordpress.org (https://github.com/woocommerce/woocommerce-admin/pull/5236)
* Shell script to release a tagged version to wordpress.org

* Fix prompt URL

* Add step to tag the release
2021-02-15 11:12:33 +10:00
Paul Sealock 07c4404f16 add settings and bump version (https://github.com/woocommerce/woocommerce-admin/pull/6331) 2021-02-15 10:44:46 +13:00
Darren Ethier 4cd14f5137 Fixes for @woocommerce/dependency-extraction-webpack-plugin (https://github.com/woocommerce/woocommerce-admin/pull/6295)
* switch block-settings alias to settings and fix mapped external

* don’t force compilation of externals to `this` scope.

* update various meta data in package related files (changelog etc)

* update starter pack

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-02-10 12:55:38 +13:00
Paul Sealock 5871e9e9d2 Dependency Extraction Webpack Plugin: bump version to 1.2 (https://github.com/woocommerce/woocommerce-admin/pull/6268)
* bump DEWP to 1.2

* reference PR number
2021-02-09 15:20:54 +13:00
Adrian Duffell b690b37910 Add WordPress version selection to Docker PHP test suite (https://github.com/woocommerce/woocommerce-admin/pull/6245)
* Add WordPress version selection to Docker PHP test suite

* Remove guard for old WordPress version

It was producing an error message when valid versions like “5.3” are selected:

bin/install-wp-tests.sh: line 22: [: 5.3: integer expression expected

I removed it since disallowing older versions doesn't really add any value now.

* Bump image version to trigger rebuild

* Fix existing WordPress version not being replaced

The install-wp-tests.sh script does not install WordPress if a previous installation is detected.

To enable WP version switching, the ENTRYPOINT removes previous files to ensure the installation starts from a clean state.

* Partially revert abd8ab80dc7ef6b57316636d467b511a07d0c5d3

The typo fix was accidentally included in this commit.

* Fix installation routine running every time

A typo was causing the installation routine to run on each use.
2021-02-09 06:33:01 +08:00
Paul Sealock 88d72c88cd Dependency Extraction Webpack Plugin: Add Woo Blocks packages (https://github.com/woocommerce/woocommerce-admin/pull/6228)
* Hard code package names and alias block-settings

* instructions

* update readme

* block to blocks

* plural blocks

* just wcSettings, not wc.wcSettings
2021-02-04 17:43:24 +13:00
Sam Seay 242bdb475d Migrate the Travis unit test suite to Github actions (https://github.com/woocommerce/woocommerce-admin/pull/6164)
Add a matrix of tests against WP and WC versions and migrate the lint and js test to separate jobs.
2021-02-01 15:24:11 +13:00
Bruno Ribarić 5e5848bcd8 Remove redundant if statement in PHP Test Suite (https://github.com/woocommerce/woocommerce-admin/pull/6169) 2021-01-28 13:29:38 +08:00
Darren Ethier 4210b6f0a8 Update @wordpress/eslint-plugin dependency to latest version. (https://github.com/woocommerce/woocommerce-admin/pull/5856)
* update @wordpress/eslint-plugin dependency to latest version

* local prettier config isn’t needed anymore because of fix in upstream package

* add jsdoc config to use typescript format for jsdocs

* update changelog

* update packages and include .prettierrc.js back in for code editor support of prettier

* add docs

* minor prettier fix in test file

* Convert all new eslint rules throwing errors to warnings temporarily to be handled in separate prs

* updated changelog

* fix package-lock.json

* prettier auto-fixes

* add prettier dependency at root

* sigh prettier is being finicky

* version bump

Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-01-26 13:24:28 +13:00
louwie17 4ab71bd963 Update travis CI to use a new distribution - xenial (https://github.com/woocommerce/woocommerce-admin/pull/6067)
* Update travis CI to use a new distribution - xenial

* Add changelog
2021-01-14 09:43:14 -04:00
Paul Sealock 8c8efd59fc Dependency Extraction Webpack Plugin: Handle irregular dependency names (https://github.com/woocommerce/woocommerce-admin/pull/5770)
* fix irregular dependency names

* starter pack

* blocks registry

* update docs
2020-12-16 08:22:19 +13:00
Ilyas Foo 9c7055a135 Test install script resets test environment (https://github.com/woocommerce/woocommerce-admin/pull/5761)
* Add reset option to bin/install-wp-tests.sh

* Fix logic issues and made reset more verbose

* Add testing suite removal on reset

* Change behaviour of test install script to reset by default

* Silence install-wp-tests.sh reset commands
2020-12-07 13:10:13 +08:00
Paul Sealock 71a9014e87 use is_admin_or_embed_page 2020-11-24 15:25:09 +13:00
Paul Sealock ac589e459e better check 2020-11-24 15:25:09 +13:00
Paul Sealock 064ff1fa67 load scripts on all pages 2020-11-24 15:25:09 +13:00
Sam Seay 564a4ffddb Remove unused dependencies, convert buildScss to async. (https://github.com/woocommerce/woocommerce-admin/pull/5715) 2020-11-24 09:21:16 +13:00
Sam Seay ebddffb8e8 Post 1.7.0 beta release chores (https://github.com/woocommerce/woocommerce-admin/pull/5558)
* Bump versions to 1.8.0-dev
* Update changelog for 1.7.0
2020-11-19 08:36:45 +13:00
Adrian Duffell ae1024dff8 Add autoloading of WooCommerce classes in PHP tests (https://github.com/woocommerce/woocommerce-admin/pull/5650)
* Restore composer install on WooCommerce plugin

Previously removed in c26db640d6

* Remove direct require of wc-install.php

In some contexts, this causes phpunit to halt because of the early exit call in wc-install.php:

defined( 'ABSPATH' ) || exit;

* Add temporary composer 1 downgrade before installing WooCommerce
2020-11-18 10:36:18 +08:00
Paul Sealock eefc8cade0 fixes 2020-11-17 16:11:10 +13:00
Paul Sealock e3a3d3af5c create ext readme 2020-11-17 16:11:10 +13:00
Sam Seay 364b764eb5 Fix the travis build and move the e2e tests to GH actions (https://github.com/woocommerce/woocommerce-admin/pull/5635) 2020-11-16 17:33:06 +13:00
Paul Sealock 3ca852ae5b version bump dewp 2020-11-16 15:34:47 +13:00
Paul Sealock 7189fb6d4e update scripts to composer 2 (https://github.com/woocommerce/woocommerce-admin/pull/5577) 2020-11-16 11:59:11 +13:00
Paul Sealock 4e785e30a7 Package builds: avoid building dependency-extraction-webpack-plugin (https://github.com/woocommerce/woocommerce-admin/pull/5598)
* fix starter pack

* fixes

* revert lock

* fixup package.json
2020-11-12 22:31:18 +13:00
Jeff Stieler c26db640d6 Update dependencies in prep for Composer 2.x. (https://github.com/woocommerce/woocommerce-admin/pull/5462)
* Update dependencies in prep for Composer 2.x.

* Rollback jetpack autoloader update.

* Restore range versions for composer dependencies, regenerate lock with Composer 1.x.

* Fix PSR-4 Classes (https://github.com/woocommerce/woocommerce-admin/pull/5473)

* PSR-4 class names need to match their filename.

Remove underscores in classnames.

* Fix reported class name in deprecation notice.

* Fix comments.

* We don't need composer dependencies in core WC test setup.

* Update composer lockfile using version 2.x.

* Temporarily turn off error display.

Function deprecation notices are breaking tests.
2020-10-28 13:12:14 -04:00
Sam Seay fc030fb007 Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271)
Fixes woocommerce/woocommerce-admin#5234
2020-10-15 14:55:55 +13:00
Paul Sealock 35de289fb5 New Package: DependencyExtractionWebpackPlugin (https://github.com/woocommerce/woocommerce-admin/pull/5198)
* create package

* dynamically make package list

* better readmne

* point to woo's not wp's for starter pack
2020-10-15 09:50:57 +13:00
Paul Sealock 90cad8c945 update starter pack (https://github.com/woocommerce/woocommerce-admin/pull/5254) 2020-10-08 07:40:21 +13:00
Joshua T Flowers 6ea8752e30 Fix version update script for composer.json (https://github.com/woocommerce/woocommerce-admin/pull/5165) 2020-09-23 06:10:05 -07:00
Daniel Bitzer d8098d6fd7 Adds `@woocommerce/tracks` package (https://github.com/woocommerce/woocommerce-admin/pull/5017)
* Add @woocommerce/tracks package.json

* Add @woocommerce/tracks .npmrc

* Move lib/tracks.js in to tracks package

* Add tracks package debug dependency

* Add readme for tracks package

* Add changelog for tracks package

* Add info about debugging and opt-ins to tracks package readme

* Load tracks package script

* Add tracks package to packages readme

* Add tracks package to webpack config

* Add tracks package external to starter-pack

* Replace lib/tracks uses with @woocommerce/tracks

* Update package-lock.json
2020-08-20 14:29:52 +09:30
Paul Sealock c145783e0a Fix dependency declarations (https://github.com/woocommerce/woocommerce-admin/pull/4972)
* renmove WC comment block

* client routes

* more fixes

* moar search

* getting there

* by hand now

* david beating goliath

* mission accomplished

* client filepath

* save

* got it

* remove script

* fixes

* deal with package internal dep

* remove webpack alias

* fix webpack relative paths

* remove commented rule

* remove extra line

* remove unused modules entry
2020-08-13 14:05:22 +12:00
Claudio Sanches 073a3f706f Fix usage of "package" tag in file headers (https://github.com/woocommerce/woocommerce-admin/pull/4940)
* Don't require package tag or file comment inside src

* Removed package tag from files inside src

* Fixed tests directory in phpcs.xml.dist

* Fixed usage of package tag

* Fixed new classes

* Fixed coding standards

* Fixed coding standards in tests
2020-08-11 16:18:47 -03:00
Jeff Stieler 239b6c95b8 Fix use of Jetpack autoloader. (https://github.com/woocommerce/woocommerce-admin/pull/4920)
* Require the correct autoloader file.

* Include composer file when updating version numbers.

* Add notice for development builds not using JETPACK_AUTOLOAD_DEV.

* Only bump version numbers when preparing a release.
2020-08-04 13:13:48 +12:00
Darren Ethier dc5304823b Add @woocommerce/eslint-plugin (https://github.com/woocommerce/woocommerce-admin/pull/4714)
* add new woocommerce/eslint-plugin

* implement eslint-plugin (switch scripts to use wp-scripts etc)

* various linting fixes

* more lint fixes

* improve fix script

* more eslint fixes

* more eslint fixes

* temporary convert rules to warnings until they are all handled

* linting fixes

* update package-lock.json

* remove duplicates

* remove unnecessary `@wordpress/dependency-group` rule config

* add docs and adjust rules

* prettier fix

* fix merge artifact

* convert more rules to warnings

* change order to reflect importance

* install babel-preset-default

* remove unnecessary configuration for babel

* fix dependency group rule and test

* fix test

* handle collapsible whitespace

* add react testing library eslint plugin

* linter errors

* Add back in prettierrc

* package-lock update

* js lint fix with --fix

* disable whitespace in translation

* package-lock update

* make eslint actual dependency, not peer dependency

* pin eslint to v7

* I don't know why, but its working

* fix lint js

Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-07-28 14:32:58 +12:00
Jeff Stieler dd54268ad7 Master -> main. (https://github.com/woocommerce/woocommerce-admin/pull/4618) 2020-06-17 13:39:41 -04:00
Paul Sealock fd78bca347 Theme color: Use dynamic variable from user preferences (https://github.com/woocommerce/woocommerce-admin/pull/4558) 2020-06-15 14:00:25 +12:00
Paul Sealock d7aec170f1 Runtime feature config override (https://github.com/woocommerce/woocommerce-admin/pull/4523) 2020-06-11 12:26:20 +12:00
Paul Sealock 134be1c08b Update/@wordpress components base styles (https://github.com/woocommerce/woocommerce-admin/pull/4427) 2020-06-10 13:55:06 +12:00
Ron Rennick f85a37870d write RTL css property (https://github.com/woocommerce/woocommerce-admin/pull/4274) 2020-05-07 15:24:12 -03:00
Fernando Espinosa b71bc861fb WooCommerce Shipping order page prompt (https://github.com/woocommerce/woocommerce-admin/pull/3955)
Co-authored-by: David Stone <david@nnucomputerwhiz.com>
Co-authored-by: Chris Shultz <chris.shultz@automattic.com>
Co-authored-by: Harris Wong <harris.wong@a8c.com>
2020-03-27 13:42:58 -07:00
Paul Sealock 654484f04e Update prestart script so readme.txt stable tag is updated (https://github.com/woocommerce/woocommerce-admin/pull/3911) 2020-03-18 08:30:33 +13:00