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 18:01]
admin
vms:webdev:nodejs:riot [2015/09/14 18:09]
admin
Line 27: Line 27:
 > npm install rimraf --save-dev > npm install rimraf --save-dev
 </​code>​ </​code>​
 +
 +Basicaly what this will do is write to the //​**package.json**//​ file at the root of your project. It translates to the following:
 +<​code>​
 +> nano package.json
 +.
 +.
 +  "​dependencies":​ {
 +    "​riot":​ "​^2.2.4"​
 +  },
 +  "​devDependencies":​ {
 +    "​babel":​ "​^5.8.23"​
 +  }
 +.
 +.
 +</​code> ​
  
 Refer to [[https://​drublic.de/​blog/​npm-builds/​|this great article by Hans Christian Reinl]] for a good starting reference about a modern dev environment setup. Refer to [[https://​drublic.de/​blog/​npm-builds/​|this great article by Hans Christian Reinl]] for a good starting reference about a modern dev environment setup.