Giter VIP home page Giter VIP logo

Comments (5)

lorensr avatar lorensr commented on July 22, 2024

Don't know of a manual way that will keep the file up-to-date, but if you
just want the version, you can copy the file from
.meteor/local/bower/purecloud-api/.js to client/.js.

Otherwise, post your bower.json file and I can take a look

On Tue, Feb 9, 2016 at 11:16 PM, Jeffrey Lin [email protected]
wrote:

The package I am trying to use is has a bower.json file with "main" in the
bower.json file.

Even though main references the .js file I need, the JavaScript file is
not getting loaded into my project. (I'm unable to call any of the methods
in the .js file)

Is there a way to manually add the .js file to be downloaded into my
project?

The bower package I am trying to get working is purecloud-api.


Reply to this email directly or view it on GitHub
#112.

from meteor-bower.

jeffrey-lin avatar jeffrey-lin commented on July 22, 2024

This is my bower.json file in my project root:

{
  "name": "my-app",
  "version": "0.0.1",
  "dependencies": {
    "select2": "3.4.5",
    "backbone": "1.1.0",
    "PureCloud": "purecloud-api#^0.0.5-beta"
  },
  "private": true
}

This is my package's bower.json file:

{
    "name": "PureCloud",
    "homepage": "https://github.com/MyPureCloud/purecloud_javascript_client",
    "authors": [
        "Interactive Intelligence"
    ],
    "description": "A wrapper for the Public API made out of JavaScript",
    "main": "dist/purecloud-api.js",
    "moduleType": [
        "globals"
    ],
    "license": "MIT",
    "ignore": [
        ".*",
        "src",
        "gulp-tasks",
        "examples",
        "node_modules",
        "bower_components",
        "test",
        "tests",
        "*.*"
    ]
}

from meteor-bower.

jeffrey-lin avatar jeffrey-lin commented on July 22, 2024

I was able to get the .js file loaded into my project, but still am unable to use the Methods defined in the javascript file. Do you know what might be the cause?

from meteor-bower.

shalaby avatar shalaby commented on July 22, 2024

@jeffrey-lin how did you managed to get it loading?

from meteor-bower.

jeffrey-lin avatar jeffrey-lin commented on July 22, 2024

All I did was create a client directory in my root folder and copied the .js file there, probably not the best way to go about it though.

from meteor-bower.

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.