Skip to content

Commit

Permalink
feat(*): update tailwind config in react apps
Browse files Browse the repository at this point in the history
ref: MANAGER-X

Signed-off-by: Alex Boungnaseng <alex.boungnaseng.ext@corp.ovh.com>
  • Loading branch information
aboungnaseng-ovhcloud committed Dec 20, 2024
1 parent a57e77b commit b6176fd
Show file tree
Hide file tree
Showing 16 changed files with 107 additions and 28 deletions.
4 changes: 0 additions & 4 deletions packages/manager/apps/container/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@ import config from '@ovh-ux/manager-tailwind-config';
/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'../../../manager-react-components/src/**/*.{js,jsx,ts,tsx}',
],
};
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-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
1 change: 0 additions & 1 deletion packages/manager/apps/procedures/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ import config from '@ovh-ux/manager-tailwind-config';
/** @type {import('tailwindcss').Config} */
module.exports = {
...config,
content: ['./src/**/*.{js,jsx,ts,tsx}'],
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ 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}',
),
],
corePlugins: {
preflight: false,
Expand Down

0 comments on commit b6176fd

Please sign in to comment.