Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
vms:webdev:nodejs:riot [2015/09/14 17:51]
admin
vms:webdev:nodejs:riot [2015/09/14 17:58]
admin
Line 14: Line 14:
 > cd /​apth/​to/​dev/​project > cd /​apth/​to/​dev/​project
  
 +> npm init
 > npm install riot --save > npm install riot --save
 > npm install babel --save-dev > npm install babel --save-dev
 +</​code>​
  
-> nano package.json+This should be the minimum required to allow server side compilation of your tags (that'​s why babel is required on the dev platform).
  
-PASTE+Some npm packages of interest for a dev environment
-{ +<​code>​ 
-  "​name":​ "hello-world",​ +> npm install browser-sync --save-dev 
-  "​version":​ "​1.0.0",​ +npm install parallelshell ​--save-dev 
-  "​description":​ "​riot.js Hello Word sample with npm and es6",​ +> npm install rimraf ​--save-dev
-  "​scripts":​ { +
-    "​watch":​ "​riot ​--type es6 -w app dist", +
-    "​compile":​ "​riot ​--type es6 app dist"​ +
-  }, +
-  "​keywords":​ [ +
-    "​riot.js",​ +
-    "hello-world"​ +
-  ], +
-  "​dependencies":​ { +
-    "​riot":​ "​^2.2.3"​ +
-  } +
-}+
 </​code>​ </​code>​