Merge pull request #32304 from woocommerce/fix/add_feature_config_to_gitignore

Remove feature config from repo and add it to the gitignore
This commit is contained in:
louwie17 2022-03-22 08:56:38 -03:00 committed by GitHub
commit b27618e51d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 31 deletions

View File

@ -53,6 +53,11 @@ jobs:
- name: Setup and install composer
run: pnpm nx composer-install woocommerce
- name: Build Admin feature config
working-directory: ./
run: |
pnpm nx build:feature-config woocommerce-admin
- name: Init DB and WP
run: pnpm nx install-unit-test-db woocommerce

View File

@ -61,6 +61,10 @@ jobs:
npm install -g pnpm
pnpm install
pnpm nx composer-install woocommerce
- name: Build Admin feature config
working-directory: ./
run: |
pnpm nx build:feature-config woocommerce-admin
- name: Add PHP8 Compatibility.
run: |

3
.gitignore vendored
View File

@ -74,3 +74,6 @@ nbproject/private/
# Test Results
test-results.json
# Admin Feature config
plugins/woocommerce/includes/react-admin/feature-config.php

View File

@ -1,31 +0,0 @@
<?php
// WARNING: Do not directly edit this file.
// This file is auto-generated as part of the build process and things may break.
if ( ! function_exists( 'wc_admin_get_feature_config' ) ) {
function wc_admin_get_feature_config() {
return array(
'activity-panels' => true,
'analytics' => true,
'coupons' => true,
'customer-effort-score-tracks' => true,
'homescreen' => true,
'marketing' => true,
'minified-js' => true,
'mobile-app-banner' => true,
'navigation' => true,
'onboarding' => true,
'onboarding-tasks' => true,
'remote-inbox-notifications' => true,
'remote-free-extensions' => true,
'payment-gateway-suggestions' => true,
'settings' => false,
'shipping-label-banner' => true,
'subscriptions' => true,
'store-alerts' => true,
'transient-notices' => true,
'wc-pay-promotion' => true,
'wc-pay-welcome-page' => true,
'tasklist-setup-experiment-1' => false,
);
}
}