Giter Site home page Giter Site logo

globalize's Introduction

globalize's People

Contributors

jamesward avatar

Watchers

 avatar James Cloos avatar  avatar

globalize's Issues

How can we use a webjar like that with the locator ?

Hi guys,

First, thank you very much for all you do ! you save us litteraly hours every week in javascript asset handling. it's awesome.

I have a question one how to use this webjar in conjunction with the locator.

I get that the simple usage is

String fullPathToRequirejs = locator.getFullPath("require.js");

That's quite easy, I want requirejs, I tell it to look for "require.js"

Now for globalize, there are 8 files

  • globalize.js
  • date.js
  • message.js
  • number.js
  • ...

The problem I have with that is that the names are pretty generic and might collide with other webjar's names.

So what do I get if I do that ?

String fullPathToRequirejs = locator.getFullPath("date.js");

Even worse, in the npm version of the globalize package, there is both src/date.js and dist/date.js and src/date.js is really not made for a browser.

So my questions :

  • Is there a way to be sure that a file comes from a specific webjar ? something like getFullPath("globalize/date.js") or getFullPath("globalize", "date.js")
  • Is there a way to ignore some folders when doing the location ? like "test" and "src" (or some affinity, prefer files from a "dist" folder but fallback to "src" if it doesn't exist ?

Thank you in advance for your answer.

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.