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