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
Last revision Both sides next revision
vms:webdev:nodejs:riot [2015/09/14 18:01]
admin
vms:webdev:nodejs:riot [2015/09/14 18:16]
admin
Line 28: Line 28:
 </​code>​ </​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.+Basicaly what this will do is write to the //​**package.json**//​ file at the root of your project, also adding a //​**node_modules**//​ directory there. It translates to the following:​ 
 +<​code>​ 
 +> nano package.json 
 +
 +
 +  "​dependencies":​ { 
 +    "​riot":​ "​^2.2.4"​ 
 +  }, 
 +  "​devDependencies":​ { 
 +    "​babel":​ "​^5.8.23"​ 
 +  } 
 +
 +
 +</​code>​  
 + 
 +Once you share your code with others, they'​ll simply have to issue: 
 +<​code>​ 
 +> npm install 
 +</​code>​ 
 + 
 +To make sure all required Node Packages are available to the project. 
 + 
 +Refer to [[https://​drublic.de/​blog/​npm-builds/​|this great article by Hans Christian Reinl]] for a good starting reference about a setup a modern dev environment ​using npm.