Mark
Install Configure Dev environment
by Mark Lynch - Thursday, 5 September 2013, 9:34 AM
 

Windows

Install git for windows from here:

http://code.google.com/p/msysgit/downloads/list?q=full+installer+for+official+git

Install node.js from here

http://nodejs.org/download/

Use the windows installer, not the exe

Fire up Git Bash

Issue the following command in the command prompt

$>npm install handlebars -g

The -g installs handlebars globally.

Add the following into the PATH settings

%APPDATA%\npm;

To do That run the following command in git bash (I've only tested this in windows7)

$>RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4

Click on the advanced tab

Click on the Environment variables button

In the system variables box scroll down to the PATH setting

Click on Edit

Add the PATH setting above into that dialog, Click OK all the way out

Navigate to the folder that contains the .handlebars files (using the gitbash shell)

Execute the following command from the prompt

$>handlebars *.handlebars -f templates.js

That'll create a templates.js file

-or-

If you are in the core folder (one folder up from the templates folder)

- Assuming the folder containing the .handlebars files is called templates

$>handlebars templates -f ./template/templates.js

Picture of Daryl Hedley
Re: Install Configure Dev environment
by Daryl Hedley - Friday, 13 September 2013, 11:03 AM
 

This is great. Would be good to get all the processes in one place. I will start the documentation incorporating all of this.

Daryl

Picture of Jason McGonigle
Re: Install Configure Dev environment
by Jason McGonigle - Monday, 14 October 2013, 9:42 AM
 

Hi Mark,

Just checking should this be

$>npm install -g handlebars

rather than the

$>npm install handlebars -g

as above?

 

Mark
Re: Install Configure Dev environment
by Mark Lynch - Monday, 14 October 2013, 10:55 AM
 

Hi Jason,

The only thing I could find in the documentation was this link

https://npmjs.org/doc/faq.html

scroll down to the 'How do I install something on my computer in a central location?'

It mentions there to tack on to the command, but on examples on stackoverflow the -g is where you have it. Maybe it works both ways, the only way to check is to examine the folders and or execute the command from the command line.

 

Picture of Daryl Hedley
Re: Install Configure Dev environment
by Daryl Hedley - Monday, 14 October 2013, 1:38 PM
 

Hey,

-g installs the module globally. I believe both ways work just the same. Installing globally means you don't have to install the module into every different folder.

Thanks,

Daryl