|
1 | 1 | { |
2 | | - "version": "0.1.0", |
| 2 | + "version": "0.2.0", |
3 | 3 | "summary": { |
4 | 4 | "title": "Learn NPM package json", |
5 | 5 | "description": "The Node Package Manager (NPM) is a command-line tool used by developers to share and control modules (or packages) of JavaScript code written for use with Node.js." |
|
10 | 10 | }, |
11 | 11 | "repo": { |
12 | 12 | "uri": "https://github.com/coderoad/fcc-learn-npm", |
13 | | - "branch": "v0.1.0" |
14 | | - } |
| 13 | + "branch": "v0.2.0" |
| 14 | + }, |
| 15 | + "dependencies": [{ |
| 16 | + "name": "node", |
| 17 | + "version": ">0.10" |
| 18 | + }] |
15 | 19 | }, |
16 | 20 | "levels": [ |
17 | 21 | { |
|
33 | 37 | "id": "bCzlTigHAL", |
34 | 38 | "setup": { |
35 | 39 | "files": ["package.json"], |
36 | | - "commits": ["26e502d", "e39ab72"], |
| 40 | + "commits": ["6b7cf6f", "8df92a5"], |
37 | 41 | "commands": ["npm install"] |
38 | 42 | }, |
39 | 43 | "solution": { |
40 | 44 | "files": ["package.json"], |
41 | | - "commits": ["72fa9de"] |
| 45 | + "commits": ["49577c7"] |
42 | 46 | }, |
43 | 47 | "content": "Add your name as the `author` of the project in the package.json file.\n**Note:** Remember that you’re writing JSON, so all field names must use double-quotes (\") and be separated with a comma (,).\n\n" |
44 | 48 | } |
|
55 | 59 | "id": "qtyop7mIYu", |
56 | 60 | "setup": { |
57 | 61 | "files": ["package.json"], |
58 | | - "commits": ["64bd78f3"] |
| 62 | + "commits": ["c9718b2"] |
59 | 63 | }, |
60 | 64 | "solution": { |
61 | 65 | "files": ["package.json"], |
62 | | - "commits": ["7888392"] |
| 66 | + "commits": ["a15aa99"] |
63 | 67 | }, |
64 | 68 | "content": "Add a `description` to the package.json file of your project.\n\n**Note:** Remember to use double-quotes for field-names (\") and commas (,) to separate fields.\n\n" |
65 | 69 | } |
|
76 | 80 | "id": "-dUCTOVbdo", |
77 | 81 | "setup": { |
78 | 82 | "files": ["package.json"], |
79 | | - "commits": ["54540f6"] |
| 83 | + "commits": ["2b907ae"] |
80 | 84 | }, |
81 | 85 | "solution": { |
82 | 86 | "files": ["package.json"], |
83 | | - "commits": ["803ab94"] |
| 87 | + "commits": ["6342f64"] |
84 | 88 | }, |
85 | 89 | "content": "Add an array of suitable strings to the `keywords` field in the package.json file of your project.\n\nOne of the keywords should be \"freecodecamp\".\n" |
86 | 90 | } |
|
97 | 101 | "id": "3DsFYGvBuc", |
98 | 102 | "setup": { |
99 | 103 | "files": ["package.json"], |
100 | | - "commits": ["ca42163"] |
| 104 | + "commits": ["96e3915"] |
101 | 105 | }, |
102 | 106 | "solution": { |
103 | 107 | "files": ["package.json"], |
104 | | - "commits": ["98118c3"] |
| 108 | + "commits": ["ec61d78"] |
105 | 109 | }, |
106 | 110 | "content": "Fill the `license` field in the package.json file of your project as you find suitable.\n\n" |
107 | 111 | } |
|
118 | 122 | "id": "B07NvoYTwI", |
119 | 123 | "setup": { |
120 | 124 | "files": ["package.json"], |
121 | | - "commits": ["a7acf32"] |
| 125 | + "commits": ["8ed877a"] |
122 | 126 | }, |
123 | 127 | "solution": { |
124 | 128 | "files": ["package.json"], |
125 | | - "commits": ["95f7224"] |
| 129 | + "commits": ["5be16a2"] |
126 | 130 | }, |
127 | 131 | "content": "Add a `version` to the package.json file of your project.\n\n" |
128 | 132 | } |
|
139 | 143 | "id": "9VFvL2uElS", |
140 | 144 | "setup": { |
141 | 145 | "files": ["package.json"], |
142 | | - "commits": ["2d6ce80"], |
| 146 | + "commits": ["f89980a"], |
143 | 147 | "watchers": ["package.json", "node_modules/moment"] |
144 | 148 | }, |
145 | 149 | "solution": { |
146 | 150 | "files": ["package.json"], |
147 | | - "commits": ["5669758"] |
| 151 | + "commits": ["6bcac25"] |
148 | 152 | }, |
149 | 153 | "content": "Install the \"moment\" package to the `dependencies` field of your package.json file by running the command line npm install.\n\n**Note:** Moment is a handy library for working with time and dates.\n\n" |
150 | 154 | } |
|
161 | 165 | "id": "p_BHY4SsgA", |
162 | 166 | "setup": { |
163 | 167 | "files": ["package.json"], |
164 | | - "commits": ["dc9a3ca"], |
| 168 | + "commits": ["c7b5458"], |
165 | 169 | "watchers": ["package.json", "node_modules/moment"] |
166 | 170 | }, |
167 | 171 | "solution": { |
168 | 172 | "files": ["package.json"], |
169 | | - "commits": ["e99f656"] |
| 173 | + "commits": ["7854c2f"] |
170 | 174 | }, |
171 | 175 | "content": "In the dependencies section of your package.json file, change the `version` of moment to match MAJOR version 2, MINOR version 10 and PATCH version 2\n\n" |
172 | 176 | } |
|
183 | 187 | "id": "BISIX4-iz4d", |
184 | 188 | "setup": { |
185 | 189 | "files": ["package.json"], |
186 | | - "commits": ["ddffbe2"] |
| 190 | + "commits": ["ff88ec9"] |
187 | 191 | }, |
188 | 192 | "solution": { |
189 | 193 | "files": ["package.json"], |
190 | | - "commits": ["0163e01"] |
| 194 | + "commits": ["a4b2700"] |
191 | 195 | }, |
192 | 196 | "content": "In the package.json file, your current rule for how npm may upgrade moment is to use a specific version (2.10.2). But now, you want to allow the latest 2.10.x version.\nUse the tilde (`~`) character to prefix the version of moment in your dependencies, and allow npm to update it to any new PATCH release.\n\n**Note:** The version numbers themselves should not be changed.\n\n" |
193 | 197 | } |
|
204 | 208 | "id": "X7yBkeKqF6_", |
205 | 209 | "setup": { |
206 | 210 | "files": ["package.json"], |
207 | | - "commits": ["d56b7e4"] |
| 211 | + "commits": ["dd56157"] |
208 | 212 | }, |
209 | 213 | "solution": { |
210 | 214 | "files": ["package.json"], |
211 | | - "commits": ["f8173d5"] |
| 215 | + "commits": ["a9ec3c0"] |
212 | 216 | }, |
213 | 217 | "content": "Use the caret (`^`) to prefix the version of moment in your dependencies and allow npm to update it to any new MINOR release.\n\n**Note:** The version numbers themselves should not be changed.\n\n" |
214 | 218 | } |
|
225 | 229 | "id": "_BvPBHOIDjP", |
226 | 230 | "setup": { |
227 | 231 | "files": ["package.json"], |
228 | | - "commits": ["45dfedb"] |
| 232 | + "commits": ["9e35b51"] |
229 | 233 | }, |
230 | 234 | "solution": { |
231 | 235 | "files": ["package.json"], |
232 | | - "commits": ["37482c2"] |
| 236 | + "commits": ["9536de2"] |
233 | 237 | }, |
234 | 238 | "content": "Remove the moment package from your dependencies.\n\n**Note:** Make sure you have the right amount of commas after removing it.\n\n" |
235 | 239 | } |
|
0 commit comments