How To Build a React UI Library ep1: Setting up the build system and NPM publishing

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 12

  • @dvjay1026
    @dvjay1026 28 дней назад

    Huge kuddos for this great video

  • @davewilson83
    @davewilson83 6 месяцев назад

    Bro thank you so much for this video. You have no idea how helpful it was.

  • @codecret1
    @codecret1 3 месяца назад

    Amazing video,
    We should have added .npmignore file to avoid publishing src, tsconfig.json files in npm

  • @milashos
    @milashos 7 месяцев назад

    Thank you. Looking forward to the next part.

  • @caceresmauro9767
    @caceresmauro9767 5 месяцев назад

    This video is gold

  • @fgbyte
    @fgbyte 7 месяцев назад

    Great video. If you could zoom in on the IDE a bit for the next ones 🙏

  • @maresal4271
    @maresal4271 8 месяцев назад +1

    nice content 🎉

  • @Jezikk
    @Jezikk 6 месяцев назад

    It would be nice to add an example with 2 components and introduce setup with tree-shaking, because why should I publish a library where the total size of the package is always imported regardless of the components used.

  • @droch1la_
    @droch1la_ 7 месяцев назад +1

    ur video is cool but i have a question
    do i call 'npm run build' and 'npm run dev' every time i changed my code? i dont see any changes on page without rebuilding. i try add react-refresh plugin and remove cash but its doesnt help me :(
    i see u have a hot module reload system (or something else), because ur page is reload automaticaly after any changes, but also i dont understand how add this in my project(
    thnk you

    • @olucassampaio
      @olucassampaio 2 месяца назад

      I'm having the same issue, would love to know how to fix this

  • @Jean-DouglasQuashie
    @Jean-DouglasQuashie Месяц назад +1

    Unable to run npm build with this error :
    vite.config.ts:2:25 - error TS2307: Cannot find module 'path' or its corresponding type declarations.
    2 import { resolve } from 'path'
    ~~~~~~
    vite.config.ts:11:22 - error TS2304: Cannot find name '__dirname'.
    11 entry: resolve(__dirname, 'lib/main.ts'),
    ~~~~~~~~~ .
    RESOLVED : npm install --save-dev @types/node

  • @NicolaeVlad-nw6si
    @NicolaeVlad-nw6si 5 месяцев назад

    Great video.