Comments (5)
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.
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.
Ok that worked thank you. The result is attached. It still has the requires('./lib') files. That won't work in titanium right?
from titaniumifier.
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.
from titaniumifier.
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)
- Zipfile should have lower case names HOT 1
- option to minify output HOT 8
- Strip “use strict” from code (3.5.0.GA) HOT 9
- Zip module issue HOT 7
- NPM unable to install or build HOT 3
- The generated package.json has a "main" script that doesn't exist HOT 8
- Requiring alloy modules HOT 10
- Support for platform dependent files HOT 1
- Using of external modules HOT 8
- Refactor transforms HOT 1
- linking to submodules HOT 6
- Trying to titaniumifier AWS node sdk HOT 2
- Error building module throw e; ^ HOT 6
- nativeDependences if dependent module has different version for each platform HOT 10
- I cannot install it because of errors HOT 21
- Problem trying to titaniumifier sendemail HOT 1
- Uncaught SyntaxError HOT 1
- Support for SDK 8.x? HOT 5
- Support for newer node versions HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from titaniumifier.