GithubHelp home page GithubHelp logo

Comments (6)

neuronetio avatar neuronetio commented on July 18, 2024 1

I created an empty project (empty directory) and installed only angular-calendar and this project it is also large, about 36MB.

But I understand you, gantt-schedule-timeline-calendar has its own node_modules dir that shouldn't be there.
I will check it out.
Thank you.

from gantt-schedule-timeline-calendar.

neuronetio avatar neuronetio commented on July 18, 2024

I think that this is caused by cypress testing framework which is bundled with browsers for end to end testing.
But cypress is dev dependency only.

NPM quote:

By default, npm install will install all modules listed as dependencies in package. json . With the --production flag (or when the NODE_ENV environment variable is set to production ), npm will not install modules listed in devDependencies .

https://docs.npmjs.com/cli/v8/commands/npm-install

from gantt-schedule-timeline-calendar.

neuronetio avatar neuronetio commented on July 18, 2024

typescript is also heavy (also dev dependency)

from gantt-schedule-timeline-calendar.

amitmahida92 avatar amitmahida92 commented on July 18, 2024

Hi @neuronetio Thanks for a quick response.

You are right but if you look at other popular libraries like angular-calendar.
1.9M ./node_modules/angular-calendar
It does not required to download that big chunk of node_modules

So if someone installs your library from npm server it takes noticeable time as well as it takes 160MB of space. As you see in the attached screenshot angular-calendar just needs 1.9 MB.

I hope you got the issue. --production flag won't help here as it will just ignore our local package.json's devDependencies not yours.

Screenshot 2024-05-10 at 7 27 26 PM

from gantt-schedule-timeline-calendar.

amitmahida92 avatar amitmahida92 commented on July 18, 2024

ya that's what we are looking forward to thanks 👍 @neuronetio

from gantt-schedule-timeline-calendar.

neuronetio avatar neuronetio commented on July 18, 2024

fixed in 3.35.6
Thanks again.

from gantt-schedule-timeline-calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.