Skip to content

Conversation

QuentiumYT
Copy link
Contributor

@QuentiumYT QuentiumYT commented Apr 29, 2025

Ajout de plus d'options d'exports dans le package.json pour permettre plus de possibilités. Permet désormais d'importer les composants unitaires.
Basé sur le besoin de #45 mais sans le treeshaking split pour la librairie (à voir / définir plus tard)

Dans l'idée, tout ces imports sont possible

// Toute la librairie
import '@gouvfr/dsfr-chart';
import '@gouvfr/dsfr-chart/css';
import '@gouvfr/dsfr-chart/DSFRChart';
import '@gouvfr/dsfr-chart/DSFRChart/css';
import '@gouvfr/dsfr-chart/DSFRChart.js';
import '@gouvfr/dsfr-chart/DSFRChart.css';
import '@gouvfr/dsfr-chart/dist/DSFRChart';
import '@gouvfr/dsfr-chart/dist/DSFRChart/css';
import '@gouvfr/dsfr-chart/dist/DSFRChart.js';
import '@gouvfr/dsfr-chart/dist/DSFRChart.css';
import '@gouvfr/dsfr-chart/dist/DSFRChart/DSFRChart.js';
import '@gouvfr/dsfr-chart/dist/DSFRChart/DSFRChart.css';

// Uniquement le map chart
import '@gouvfr/dsfr-chart/MapChart';
import '@gouvfr/dsfr-chart/MapChart/css';
import '@gouvfr/dsfr-chart/MapChart.js';
import '@gouvfr/dsfr-chart/MapChart.css';
import '@gouvfr/dsfr-chart/dist/MapChart';
import '@gouvfr/dsfr-chart/dist/MapChart/css';
import '@gouvfr/dsfr-chart/dist/MapChart.js';
import '@gouvfr/dsfr-chart/dist/MapChart.css';

Mise à jour des dépendances

Closes #42
Closes #45
Closes #37

Copy link

netlify bot commented Apr 29, 2025

Deploy Preview for dsfr-chart ready!

Name Link
🔨 Latest commit cad329d
🔍 Latest deploy log https://app.netlify.com/sites/dsfr-chart/deploys/6810846af7bff00008b27c22
😎 Deploy Preview https://deploy-preview-48--dsfr-chart.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@zellerbaptiste zellerbaptiste changed the base branch from main to dev April 29, 2025 09:12
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the export options in package.json to enable more flexible component imports and simplifies the usage for end-users. Additionally, it includes minor adjustments to the ESLint configuration for better clarity and updates the README examples to reflect the new import options.

  • Updated ESLint globals declaration syntax.
  • Revised README import examples and descriptions.
  • Simplified component import instructions.

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
eslint.config.js Updated globals format and formatting tweaks for consistency.
README.md Modified import instructions and clarified component usage tips.
Files not reviewed (1)
  • package.json: Language not supported

@zellerbaptiste zellerbaptiste changed the title chore/exports update feat(chore): exports update Apr 29, 2025
@zellerbaptiste zellerbaptiste merged commit beb31d3 into GouvernementFR:dev May 5, 2025
4 checks passed
@QuentiumYT QuentiumYT deleted the chore/exports-update branch August 27, 2025 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rendre possible l'import unitaire de composant dans un bundler
2 participants