Giter Club home page Giter Club logo

Comments (12)

silvestreh avatar silvestreh commented on July 30, 2024

If you're still using Bower I would advice to pull OnScreen directly from the repo. Add this to your bower.json:

"onScreen": "https://github.com/silvestreh/onScreen.git#old-jquery"

or install it using

bower install -s https://github.com/silvestreh/onScreen.git#old-jquery

As you can probably tell, this will pull the old jQuery plugin and not the latest release. For the time being, I'm only publishing to NPM to avoid the hassle of maintaining multiple package managers and have no plans to start publishing to other sources.

from onscreen.

dodozhang21 avatar dodozhang21 commented on July 30, 2024

I see. I can actually also pull it down via npm. Your dist folder has two versions: umd & es6. Do both of these require another lib to work or do they work out of the box like the old jQuery one? I need the check functionality which I believe isn't available in the old version.

from onscreen.

silvestreh avatar silvestreh commented on July 30, 2024

You should use the UMD version to be safe as it should work with IE9+. The ES6 version uses JavaScript features not available in all browsers.

from onscreen.

f-liva avatar f-liva commented on July 30, 2024

Why don't support a standard bower install?

from onscreen.

silvestreh avatar silvestreh commented on July 30, 2024

@fede91it I'll quote myself from a few comments up πŸ˜„

I'm only publishing to NPM to avoid the hassle of maintaining multiple package managers

from onscreen.

f-liva avatar f-liva commented on July 30, 2024

Why the new version doesn't support bower and we must use old version?

from onscreen.

silvestreh avatar silvestreh commented on July 30, 2024

You don't have. Just remove the #old-jquery hash that points to the branch with the old version.

bower install -s https://github.com/silvestreh/onScreen.git

But do note that you'll be getting the ES6 version, you'll have to run it though a transpiler like Babel.

from onscreen.

f-liva avatar f-liva commented on July 30, 2024

I don't have the /dist folder when I install via bower...

Ok I can compile by mylself, but we you don't provide a dist package also for bower and not only for npm?

from onscreen.

silvestreh avatar silvestreh commented on July 30, 2024

Because the dist/ directory holds transpiled code which has no place in the source repository. What bower does, basically, is clone the repo.

from onscreen.

f-liva avatar f-liva commented on July 30, 2024

Ok indeed

from onscreen.

silvestreh avatar silvestreh commented on July 30, 2024

@fede91it and everyone else that uses bower… you can pull the latest, compiled, version from unpkg. Just add this to your bower.json file:

dependencies: {
    "onscreen": "https://unpkg.com/onscreen/dist/on-screen.umd.min.js"
}

Or simply run this form a terminal:

bower install --save onscreen=https://unpkg.com/onscreen/dist/on-screen.umd.min.js 

I'll put this info on the README for everyone to see πŸ˜„

from onscreen.

silvestreh avatar silvestreh commented on July 30, 2024

It's on the README file! 😁

from onscreen.

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.