Commit Graph

38 Commits

Author SHA1 Message Date
Albert Juhé Lluveras 2f7bd83ae2
Fix link to e2e tests documentation from WooCommerce Admin directory (#41631)
* Fix link to e2e tests documentation from WooCommerce Admin directory

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-11-27 09:53:22 +01:00
Chi-Hsuan Huang a97df494e5 Update woocommerce-admin README.md 2022-04-14 13:49:51 +08: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
RJ f306cc2ba5 Enable Typescript checking on ./client folder (https://github.com/woocommerce/woocommerce-admin/pull/8372)
* Copied .tsconfig into ./client to enable ts checking

- Made sub-repos composite typescript packages where necessary

* Prevent tsc from transpiling ./client

 - we use webpack for transpiling so no need for this

* Added tsc resolution path for @automattic/explat-client

- Seems like there's a type export issue (?) with @automattic/explat-client and @automattic/explat-client-react-helpers
- adding the node_modules/@automattic/explat-client path in tsconfig seems to help TS resolve this using the source .ts files
- found answer here: https://github.com/microsoft/TypeScript/issues/42873
- should figure out what's actually wrong with the type exports and fix that there instead

* Removed mandatory checking from webpack

- removed this for now as it will block all development until all type inconsistencies are fixed
- for now, run the optional ts:check task either in console or vscode for highlighting type errors

* Added vscode tasks for typescript checking

* Patch @automattic/explat-client-react-helpers

- this changes the installed code in node_modules (post-installation) for @automattic/explat-client-react-helpers so that it exports the necessary type interfaces required by us
- attempted unsuccessfully to override type exports using declare module
- not too sure how to fix this internally by other means
- have to investigate what fixes to propose to @automattic/explat-client-react-helpers team

* changed tests in ./client to use ts-jest instead of babel-jest

- rewrote jest config to use ts-jest instead of babel-jest
- set ts errors to warnings instead so that tests don't fail on type errors
- created new tsconfig for ./packages/js-tests so that build and ts-check are separate, as js-tests need to be built for commonjs
2022-03-01 12:19:07 +08:00
Chi-Hsuan Huang b5ebf374e3 Allow storybook use different style based on a config (https://github.com/woocommerce/woocommerce-admin/pull/8046)
* Add style links to storybook preview head based on the env

Use *style.css or *style-rtl.css based on a env flag so we don't need to modify
the preview-head.html manully.

* Add npm run storybook-rtl

* Update the storybook-rtl command description
2021-12-21 10:48:28 +08:00
Adrian Duffell 5d6ceafbff Bump Minimum Versions for 2.9 Release (https://github.com/woocommerce/woocommerce-admin/pull/7883)
* Bump WordPress version

* Bump WooCommmerce version
2021-11-03 06:48:33 +08:00
Sam Seay edc8a1bdc5 Publish storybook docs, remove react docgen based docs (https://github.com/woocommerce/woocommerce-admin/pull/7055) 2021-06-02 15:54:00 +12:00
louwie17 a7db89ff4f Add dry run option for the release script (https://github.com/woocommerce/woocommerce-admin/pull/6946)
* Added dry run option and clean between core and plugin builds

* Add safety so I will not accidently start a release

* Change return to exit and update plugin release name on dry run

* Updated some of the logging

* Made use of git --dry-run and hub --noop

* Add dry run to add as well

* Removed dry-run command, updated log
2021-05-13 09:26:12 -03:00
Sam Seay 9dd75e83f8 Improve page object encapsulation, refactor e2e suite, add more e2e tests. (https://github.com/woocommerce/woocommerce-admin/pull/6682) 2021-04-05 12:09:36 +12:00
Moon 2cbf73b6a4 Add docker setup using WP-ENV (https://github.com/woocommerce/woocommerce-admin/pull/6448)
* Add docker setup using WP-ENV

* Add ALTERNATE_WP_CRON config to avoid cron issues

* Add changelog

* Update README

* Added HOWTOs section
2021-03-02 13:13:21 -08:00
Paul Sealock 993e236ce0 Update Minimum version in docs and test configs (https://github.com/woocommerce/woocommerce-admin/pull/6342)
* update min version in docs and tests

* update woocommerce-admin.php

* update docker versions

* one more 5.3

* Docker image: back to min versions

* fix main file's min PHP to 7.0, same as Woo Core and readme.txt

* docs/readme

* get_dependency_errors
2021-02-19 11:22:56 +13:00
Ilyas Foo 99aa5ddfba Update README.md and CONTRIBUTING.md (https://github.com/woocommerce/woocommerce-admin/pull/5772)
* Update README.md and CONTRIBUTING.md

* Add note about WooCommerce development environment
2020-12-07 08:33:08 +08:00
Bec Scott cd128488df Add initial end to end test suite (https://github.com/woocommerce/woocommerce-admin/pull/5028)
Co-authored-by: Ron Rennick <ron@ronandandrea.com>
Co-authored-by: Rebecca Scott <me@becdetat.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
2020-09-04 14:31:09 +12:00
Timmy Crawford a84485a3d4 Prod ready. (https://github.com/woocommerce/woocommerce-admin/pull/3556) 2020-01-14 15:57:21 -08:00
Paul Sealock 9a4369d984 Bump minimum WP version to 5.3 (https://github.com/woocommerce/woocommerce-admin/pull/3393)
* Bump minimum WP version

* Bump min WP version in main README.
2019-12-13 10:05:41 -05:00
Darren Ethier 415e2a4445 update README.md and CONTRIBUTING.md (https://github.com/woocommerce/woocommerce-admin/pull/2963) 2019-09-26 07:35:54 -04:00
Paul Sealock 7a3337694a Readme: add composer install step 2019-08-22 07:17:05 +12:00
Paul Sealock d98eceffc7 Revert "Revert "Update to new Snackbar component and notice store"" (https://github.com/woocommerce/woocommerce-admin/pull/2643)
* Revert "Revert "Update to new Snackbar component and notice store""

* Update uploader component to use createNotice

* Bump required WP version to 5.2

* Update required PHP and WP versions in plugin header
2019-07-23 11:26:46 +08:00
Jeff Stieler 8351c320af Add instructions for translating to contributing docs. 2019-07-09 10:12:34 -06:00
Daniel Rey López f00b7bf175 Update the minimum WooCommerce requirement on README (https://github.com/woocommerce/woocommerce-admin/pull/2256)
WC-Admin requires WooCommerce 3.6+: https://github.com/woocommerce/woocommerce-admin/issues/2118
I've updated the README since it still said "3.5.0".
2019-05-20 09:45:13 -04:00
Mike Jolley 867e236c28 Ensure the feature-config.php file is built with `npm run build` (https://github.com/woocommerce/woocommerce-admin/pull/2115)
* Ensure the feature-config file is built

* Missing doc for `dev` build

* Call feature flag build once

* Inline docs with updated default
2019-04-26 11:37:39 -07:00
Ron Rennick 59d310c4f9 update requirements in GH readme, plugin header 2019-04-01 13:16:13 -03:00
Jeff Stieler bfe5a75e98 Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795)
* Translation call text domain change from “wc-admin” to “woocommerce-admin”.

* Fix .pot file generation.

* Fix errantly closed array item in /revenue/stats controller.

* Rename plugin zip, main file, and repo name to "woocommerce-admin".
2019-03-13 11:14:02 -06:00
Joshua T Flowers 08e43c35cf Execute single order pending jobs immediately when wp_debug is enabled (https://github.com/woocommerce/woocommerce-admin/pull/1581)
* Execute all pending jobs when debug mode is enabled

* Only process single order jobs immediately

* Replace wp_debug condition with a filter

* Bypass scheduling and process the order on save_post

* Change hook name to include order
2019-02-20 10:05:11 +08:00
Andrew Dixon c343ebb81b Adding npm test to "helper scripts" section. (https://github.com/woocommerce/woocommerce-admin/pull/1087) 2018-12-13 16:47:13 -08:00
Allen Snook d8dd2a0083 Update README.md 2018-11-15 13:13:35 -08:00
Allen Snook 45c03845b2 Remove SCRIPT_DEBUG requirement 2018-11-09 09:49:33 -05:00
Allen Snook a5b1b617c2 Prompt user to set SCRIPT_DEBUG on WP 5 for now. 2018-11-07 14:53:05 -05:00
Allen Snook cf72ac4744 Add markdown docs with details on contributing 2018-10-31 16:12:11 -07:00
Allen Snook 254df9a117 Add privacy notice regarding wp.com 2018-10-17 13:49:06 -07:00
Kelly Dwan 5dc1addbf8 Build: Update i18n generation to combine JS + PHP translations (https://github.com/woocommerce/woocommerce-admin/pull/481)
* Generate the PHP translations file from the POT file after building the project

* Remove unused tasks

* Update i18n task to generate JS pot file, then convert that to PHP, then run grunt php pot generation

* Update docs

* Pipe babel file output to null, not entire output of command

Helps with debugging the babel command itself
2018-09-26 10:23:55 -04:00
Timmy Crawford daa3bdcf3c Docs: Remove REST API feature branch requirement. (https://github.com/woocommerce/woocommerce-admin/pull/445)
* Remove REST API feature branch requirement.

* npm run docs
2018-09-19 10:55:44 -07:00
Kelly Dwan a315fa46f6 Add "in progress" banner to readme (https://github.com/woocommerce/woocommerce-admin/pull/211)
* Update README

* Update where to get v3 of the WC REST API
2018-07-17 11:50:11 -04:00
Justin Shreve 71c12e6795 Update woo-dash naming to new wc-admin name (https://github.com/woocommerce/woocommerce-admin/pull/183) 2018-07-10 08:48:06 -04:00
Kelly Dwan a56437c9c8 Fix React warnings for nested components/className (https://github.com/woocommerce/woocommerce-admin/pull/83)
* Fix class/className warning

* Fix nested `a` warning

* Add note about SCRIPT_DEBUG
2018-05-23 14:01:41 -04:00
Kelly Dwan 73f7284d77 Build Tools: Add precommit/prepush scripts, install if outdated (https://github.com/woocommerce/woocommerce-admin/pull/34)
* Add helper scripts from calypso

* Add the pre-push hook to protect master

* Add required packages

* Update README

* Remove unused package
2018-05-10 15:17:28 -04:00
Justin Shreve 4718475e8a Add Gutenberg & WooCommerce prereq to the README (https://github.com/woocommerce/woocommerce-admin/pull/1)
* Add Gutenberg prereq to the README

I installed `woo-dash` without Gutenberg installed and ended up getting a fatal error. We should probably fix that as well/handle that better, but if we are going to rely on Gutenberg for the feature plugin we should mention it in the README.

* Add mention of WooCommerce as a prereq
2018-05-02 14:28:59 -04:00
Kelly Dwan 05dacbe212 Add an admin page, build a simple component + filters 2018-04-19 16:40:32 -04:00