Unable to build a custom Zepto package - zepto

I've been trying to do a custom build of Zepto (I do have coffee installed globally already), with the following commands:
git clone https://github.com/madrobby/zepto.git
cd zepto/
npm install
MODULES="polyfill zepto event ajax fx touch" ./make dist
but keep running into the problem of things hanging immediately after
> zepto#1.0.0 dist /Users/johnny/Development/zepto
> coffee make dist
With the lack of verbose build commentary from coffee, I can't tell if anything's erroring, but I can't imagine that building Zepto would take more than a few minutes (and certainly not over an hour). Even their default dist build (without customizations) hangs at the same place, and happens both on my Ubuntu and Mac boxes.

As per https://github.com/madrobby/zepto/issues/782#issuecomment-20852321 if you install coffeescript > 1.5.0 this problem should go away. You can get the latest by running:
sudo npm install -g coffee-script
I was having the same problem and bumping my version of coffeescript fixed it (i was on 1.4.0)

Replace ./make dist with npm run-script dist
It works for me.

I was struggling with the same problem and came across this web app which generates a custom zepto build for you. All you have to do is select the modules you want included. I just used it and it worked fine:
http://github.e-sites.nl/zeptobuilder/

Related

Yarn requires Node.js 4.0 or higher to be installed. - Symfony - Docker - Yarn

I'm trying to install yarn in my symfony project, but did not succeed yet.
I installed nodejs and all needed requirements on windows. When I type node -v or yarn -v inside a windows cmd, it displays versions for the respective tools as expected.
But in my symfony project inside the container, it seems like the node and yarn commands can't be found.
Here is a screentshot of my Directory
When I type yarn -v or yarn install it gives the following error:
Yarn requires Node.js 4.0 or higher to be installed.
I don't know how to fix this error. Can someone point me in the right direction?
Yarn requires Node.js 4.0 or higher to be installed.
Currently working on Windows 8.1 and first had this issue recently when working with Gatsby and also with Rails, this issue persisted even though everything was up to date, what worked for both instances was running the CMD Line in the project directory as Administrator, then running yarn commands.
Seems to only work in the CMD Line, this was just a hunch and it worked.
Sure there is a reference but couldn't find it in the Documentation to prove the above, if anyone in future comes across the Docs, kindly link it to this post.

Homebrew install the old version of flow

I cd to my react-native project directory, and run flow, it prompts me Launching Flow server for /Users/... Wrong version of Flow. The config specifies version ^0.32.0 but this is version 0.33.0. How do I install the previous version flow with Homebrew?
If you run brew info flow in the console, you'll see a line similar to the following:
flow: stable 0.33.0 (bottled), HEAD
This means that the person managing the flow homebrew formula is removing old versions as the version gets updated, so it's impossible for you to access any old versions, barring performing some behind the scenes business I'm unaware of.
Luckily, there's a solution for you. I assume you're using npm, in which case you can try the following:
npm install flow-bin#0.32 -g
This will install a binary wrapper for flow, packaged through npm, in which previous versions are all available. By installing globally, you can use the flow commands in the command line.
If you don't want to install globally, for fear of conflicting with other projects, etc., you can still install locally and use flow:
npm install flow-bin#0.32
Now, add the following to package.json:
"scripts": {
...
"flow": "flow ."
},
And now, you'll be able to run flow on your project with the command:
npm run flow

Command `bundle` unrecognized. Did you mean to run this inside a react-native project?

I am currently upgrading to the most recent version of react from 0.11.0 branch.
I have upgraded successfully through each step with minimal issues but when I got to 0.14.0 I hit some issues with:
node_modules/react-native/packager/react-native-xcode.sh
No matter what I do all my machines seem to get this same error.
Command `bundle` unrecognized. Did you mean to run this inside a react-native project?
I also run this same command that script runs from my terminal in the same location and it works fine, I have also set the path as well and before the script runs no mas, set path inside the script still nothing.
I am hoping someone else has saw this and has found a solution or is there a work around so we dont need this script.
I started this project with react-native ~0.6.0 maybe even a little earlier.
I have even removed nvm to combat this issue and using single install of node which is on PATH in both conditions.
Thanks!
Have you installed the latest version of react-native-cli globally?
npm uninstall -g react-native-cli
npm install -g react-native-cli
I personally preferred to install it as a dev dependency.
yarn add -D react-native-cli

Using "npm install" to install jquery-ui

I see from here https://github.com/jquery/jquery-ui that jquery-ui's latest release is 1.11.4. However, when I use "npm install jquery-ui", it's only 1.10.3. I checked this version in node_modules/jquery-ui/jquery-ui.js.
Is there any way for me to install the latest version?
jQuery-ui specifically needs to be build after installation. To avoid this, use npm install jquery-ui-dist
T J gave the right answer, but it is a bit short / too generic.
The GitHub project is at https://github.com/jquery/jquery-ui/
So the real command would be npm install github:jquery/jquery-ui (you can even skip github: as npm defaults to it).
But this would bring you the latest, unstable version (around 1.12 at time of writing), and it didn't even work when I tried.
So it is better to fetch a tagged version:
npm install github:jquery/jquery-ui#1.11.4
Generic note: AFAIK, if the project hasn't a package.json file, this kind of install can still fail.
Here is the current latest version (1.11.4), same package that bower is using, including all themes.
npm install github:components/jqueryui#1.11.4
You can install it like
npm install github:mygithubuser/myproject
as mentioned in the install documentation

Is ReactJs on bower?

I'm very interested in some of the concepts in ReactJs and would like to play around with it. I'm trying to start a project to play around with it but I've been looking all over and I can't seem to find it on bower. But then again bower search kind of sucks...
Is it on there and I'm just not seeing it? If is there something about it that makes it not a good fit for the bower model? I would expect that both projects are popular enough they would work together.
I'm not sure on the particulars of bower, but we have this repository:
https://github.com/reactjs/react-bower
which should be available as bower install react.
$ bower lookup react
react git://github.com/facebook/react-bower.git
$
To bower installation, you need to install to Git Shell, using command promt of it, your project have got a bower file. When you installed them, you should be follow the command below:
> cd d:/yourappfolder/
> bower install

Resources