woocommerce/plugins/woocommerce-blocks/bin
Darren Ethier af99c16931 Add TypeScript support and convert cart data store to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/3768)
* add typescript support

* Add type declarations for Cart and CartResponse interfaces

* make sure we’re resolving .ts files as well as .js files on imports

* add more types

* type the cart data store

* Apply suggestions from code review (implement .tsx in configs)

Co-authored-by: Jon Surrell <jon.surrell@automattic.com>

* remove global fetchMock declaration and directly import where used.

* rename type

* remove named action types and just infer by returning action creator values as const

* use interface instead of type

* rename

* renames

* create CartAction type as union of action creator returned types and implement in reducer

* remove unused imports

* refresh package-lock after rebase

* Add base TS config that projects will inherit from

* Add tsconfig for assets/js/data project

* Ignore TS error on cart store registration

We will address this in cooldown when we have time to investigate further

* Add tsc to build step to catch TypeScript errors

* add a separate command for tsc and tweak build command to use

* restore checkJs and allowJs values in config and remove ts check from build command

* Add ts:check-all command

* Add TypeScript checking workflows

* Change triggers for TypeScript workflow

* Use npm ci instead of npm install

* Remove ts:check-all from TypeScript workflow

* Remove TS Check GitHub workflow

* Remove type-defs dir from TS include, and remove ts:check-all script

We no longer need the ts:check-all script because ts:check will do this for us, the old ts:check did nothing and did not work.

* fix coupon loading issues

* include .ts files only from type-defs folder

Co-authored-by: Jon Surrell <jon.surrell@automattic.com>
Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
2021-02-23 20:36:24 -05:00
..
changelog Update changelog script. (https://github.com/woocommerce/woocommerce-blocks/pull/1655) 2020-01-28 08:47:26 -05:00
docker Expand travis matrix (https://github.com/woocommerce/woocommerce-blocks/pull/2686) 2020-06-16 13:18:34 +01:00
eslint-plugin-woocommerce Update Node.js to v12.20.2 (https://github.com/woocommerce/woocommerce-blocks/pull/3857) 2021-02-17 04:29:07 +00:00
.htaccess Switch to use `wp-env` as the development/test environment (https://github.com/woocommerce/woocommerce-blocks/pull/2730) 2020-06-17 16:28:11 -04:00
build-plugin-zip.sh Fix deploy scripts for handling composer.json version and version string validation (https://github.com/woocommerce/woocommerce-blocks/pull/3027) 2020-08-27 09:17:52 -04:00
copy-plugin-files.sh Exclude storybook from released ZIP (https://github.com/woocommerce/woocommerce-blocks/pull/3036) 2020-08-24 10:27:58 +02:00
development-check.sh small script to check local environment for commands 2019-07-02 15:25:59 +01:00
fallback-module-directory-webpack-plugin.js Fix blocks not being added in WP <= 5.2 (https://github.com/woocommerce/woocommerce-blocks/pull/2001) 2020-03-26 13:39:54 +01:00
fix-package-lock.sh Add the "Fix package lock" script (https://github.com/woocommerce/woocommerce-blocks/pull/3465) 2020-12-28 11:41:46 +01:00
github-deploy.sh fix deploy script not doing tags for patch releases not deployed to wp.org (https://github.com/woocommerce/woocommerce-blocks/pull/3451) 2020-11-23 16:51:10 -05:00
remove-files-webpack-plugin.js Add @woocommerce/eslint-plugin dependency (https://github.com/woocommerce/woocommerce-blocks/pull/3115) 2020-09-07 13:31:10 -04:00
version-changes.sh Fixes related to Jetpack Autoloader 2.0 package bump (https://github.com/woocommerce/woocommerce-blocks/pull/2949) 2020-08-03 12:11:46 +02:00
webpack-configs.js Add TypeScript support and convert cart data store to TypeScript (https://github.com/woocommerce/woocommerce-blocks/pull/3768) 2021-02-23 20:36:24 -05:00
webpack-entries.js add price package (https://github.com/woocommerce/woocommerce-blocks/pull/3790) 2021-02-04 15:30:28 +00:00
webpack-helpers.js add price package (https://github.com/woocommerce/woocommerce-blocks/pull/3790) 2021-02-04 15:30:28 +00:00
wordpress-deploy.sh Exclude storybook from released ZIP (https://github.com/woocommerce/woocommerce-blocks/pull/3036) 2020-08-24 10:27:58 +02:00
wp-env-config.sh Create GitHub actions for automated tests (https://github.com/woocommerce/woocommerce-blocks/pull/3544) 2021-01-05 09:27:22 +00:00
wp-env-pre-config.sh Escape basename paths with spaces correctly. (https://github.com/woocommerce/woocommerce-blocks/pull/3290) 2020-10-16 15:36:34 +02:00