Giter Club home page Giter Club logo

Comments (5)

yuchi avatar yuchi commented on May 29, 2024

If you have a look at the source of the Parse SDK you’ll see that there’s no lib folder in there.
That’s because they have a compilation process in the middle, a build phase you need to run before being able to build your module.

In this specific case you can do the following:

cd parse-1.7.0/
npm install # this will install deps and devDeps so you can run the next one
npm run build # build the `lib` folder
titaniumifier --out dist

from titaniumifier.

yuchi avatar yuchi commented on May 29, 2024

I just noticed that npm run build will do way more than you need.
You probably should do gulp compile instead.

I’ll close this, but we can continue to talk here if you need more help.
If you find something that looks like a Titaniumifier’s bug, please reopen this issue or create a new one as you please.

from titaniumifier.

nitrag avatar nitrag commented on May 29, 2024

Ok that worked thank you. The result is attached. It still has the requires('./lib') files. That won't work in titanium right?

parse-commonjs-1.7.0.zip

from titaniumifier.

nitrag avatar nitrag commented on May 29, 2024

I tried gulp browserify and that produced what looks like an es6 package in a single file with no requires. Which seems closer to what I'm looking for but the es6 is not helpful.

parse-latest.js.zip

from titaniumifier.

yuchi avatar yuchi commented on May 29, 2024

In Titanium you are able to require() only things that are actually in your Resources (in Classic) or app (in Alloy) apps. Titaniumifier solves that for you by creating a single file, very similar to the one in your last comment.

So, in short, the parse-commonjs-1.7.0.zip you attached should work, if the code itself works. Titaniumifier can only solve the require problems and polyfill simple Node.js standard modules, such as util and the global console.

from titaniumifier.

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.