diff --git a/pages/tutorial/javascript_tutorial.txt b/pages/tutorial/javascript_tutorial.txt index 9c02ee2ee..e655c2073 100644 --- a/pages/tutorial/javascript_tutorial.txt +++ b/pages/tutorial/javascript_tutorial.txt @@ -1,16 +1,15 @@ ~~Title: Javascript Tutorial~~ ==== Javascript Tutorial [DRAFT]==== -This Javascript tutorial describe the basics to compiles and run a Javascript example using Elementary in Node.Js +This Javascript tutorial describes the basics to compiles and runs a Javascript example using EFL with Node.Js The Javascript bindings are currently in BETA state. - === Prerequisite === -Before you start you will want about how compile a EFL library +Before you start you may want to read about how to compile an EFL library * Installed from source: [[docs/efl/start|Get started with EFL]]. @@ -23,36 +22,27 @@ You will need additional dependencies to Javascript Bindings: === Compilation === == Efl == -To configure efl sources with bindings to use in nodejs add ''//––with-js=nodejs//'' in configure flags to generate node files +To configure efl sources with bindings to use in nodejs add ''//––with-js=nodejs//'' to the configure flags to enable nodejs support. ./configure --with-js=nodejs #in efl source path -and compile normally +After that, you can compile normally with make make install -== Elementary == - -In Elementary all you need is run ''./autotools'' and compile/install - - -./autotools #in elementary source path -make -make install - - === Node.Js === After everything is compiled and installed, it is time to use the modules in node.js. -The default node.js files installed by efl/elm stay in prefix /lib path (if you don't define a prefix path is ''/usr/local/lib'') +# FIXME +EFL installs its files by default in the /lib path (if you don't define a prefix path is ''/usr/local/lib'') -Node.js needs to know where find efl/elm node modules, to that export NODE_PATH with the file path to modules. +Node.js needs to know where to find efl/elm node modules, to that export NODE_PATH with the file path to modules. export NODE_PATH=/usr/local/lib #if necessary replace with your prefix path