Giter Site home page Giter Site logo

Comments (6)

r1m avatar r1m commented on May 16, 2024

I'm also wondering why ignore list contains "src" folder.

from leaflet.timedimension.

bielfrontera avatar bielfrontera commented on May 16, 2024

Hi @ram-one,
ok, I'm changing the dependencies.

I think we should also change main to:

  "main": [
    "dist/leaflet.timedimension.src.js",
    "dist/leaflet.timedimension.control.css",
  ],

I'm not sure about the src folder. I've checked some projects, and some of them include this folder (ex: jQuery) and others don't (ex: Leaflet). Initially, you shouldn't use the files of src folder, as you have them concatenated and minified at dist.

Any suggestion @fox91?

from leaflet.timedimension.

r1m avatar r1m commented on May 16, 2024

Yes, main is also wrong because bower will ignore src folder when downloading the package so automated tool that uses the main declaration won't find theses.

Including src allows custom builds. For example I don't want the player control because I use mine.
If the folder is in ignore list, it is simply not donwloaded.

from leaflet.timedimension.

fox91 avatar fox91 commented on May 16, 2024

Hi @bielfrontera,
I also looked at how it is implemented in other projects.
I think the src folder is essential for the development phase (git clone or npm) but not in the integration phase (bower), following the philosophy of Leaflet.
In any case it is a decision they make the developers of each project, as there are no real guidelines on the folders to skip.
Include the dist/ folder in the main is definitely correct.

Dependencies suggested by @ram-one seem appropriate.

from leaflet.timedimension.

fox91 avatar fox91 commented on May 16, 2024

Hi @bielfrontera,
I have included some changes in the pull request #22.
If you proceed with the merge you must first regenerate the dist/ folder.

from leaflet.timedimension.

bielfrontera avatar bielfrontera commented on May 16, 2024

Ok! Updated the version number to 0.1.7 and built with the enhancement for leaflet 1.0.

from leaflet.timedimension.

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.