Skip to content

Commit

Permalink
fix(*): update tailwind config for third party imports (#14675)
Browse files Browse the repository at this point in the history
ref: TAPC-2482

Signed-off-by: Frédéric Vilcot <[email protected]>
Co-authored-by: Alex Boungnaseng <[email protected]>
  • Loading branch information
fredericvilcot and aboungnaseng-ovhcloud authored Jan 3, 2025
1 parent e7ed140 commit 717de9f
Show file tree
Hide file tree
Showing 15 changed files with 121 additions and 22 deletions.
4 changes: 4 additions & 0 deletions packages/manager/apps/pci-ai-endpoints/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ module.exports = {
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
};
10 changes: 9 additions & 1 deletion packages/manager/apps/pci-billing/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
theme: {
extend: {
Expand Down
11 changes: 9 additions & 2 deletions packages/manager/apps/pci-block-storage/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
'../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down
11 changes: 9 additions & 2 deletions packages/manager/apps/pci-gateway/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
'../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down
11 changes: 9 additions & 2 deletions packages/manager/apps/pci-kubernetes/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
'../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down
11 changes: 9 additions & 2 deletions packages/manager/apps/pci-load-balancer/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
'../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
theme: {
extend: {
Expand Down
11 changes: 9 additions & 2 deletions packages/manager/apps/pci-private-network/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
'../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down
11 changes: 9 additions & 2 deletions packages/manager/apps/pci-private-registry/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
'../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down
10 changes: 9 additions & 1 deletion packages/manager/apps/pci-public-ip/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down
4 changes: 4 additions & 0 deletions packages/manager/apps/pci-savings-plan/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ module.exports = {
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
};
10 changes: 9 additions & 1 deletion packages/manager/apps/pci-ssh-keys/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down
11 changes: 9 additions & 2 deletions packages/manager/apps/pci-users/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
'../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down
11 changes: 9 additions & 2 deletions packages/manager/apps/pci-vouchers/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
'../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down
11 changes: 9 additions & 2 deletions packages/manager/apps/pci-workflow/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
'../../modules/manager-pci-common/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
path.join(
path.dirname(require.resolve('@ovh-ux/manager-pci-common')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import config from '@ovh-ux/manager-tailwind-config';
import path from 'path';

/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
path.join(
path.dirname(require.resolve('@ovh-ux/manager-react-components')),
'**/*.{js,jsx,ts,tsx}',
),
],
corePlugins: {
preflight: false,
Expand Down

0 comments on commit 717de9f

Please sign in to comment.