- Let's create new files:
cd && cd workspace touch Gruntfile.js package.json
- Open the package.json file:
c9 package.json
An important thing to note is that if you had the old package.json file open before, during, and after the file renaming using the mv command, using the c9 <filename> command might point to the tab that was not closed, and show the old version of the file. Feel free to close this file's tab by middle-clicking on it (this works just like browser tabs, at least on c9.io running in Chrome).
- The package file is completely empty, so let's add some code to it:
{ "name": "customGrunt", "version": "", "devDependencies": { "grunt": "~1.0.1" } }
What are we doing in the package.json file? We are giving ...