|
1 | 1 | { |
2 | | -"version":"0.4.1", |
| 2 | +"version":"0.4.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." |
|
16 | 16 | "npm install" |
17 | 17 | ], |
18 | 18 | "commits": [ |
19 | | -"1efa2e74255816a138ea9be998d49a6bdfbd082f", |
20 | | -"a99811c863d561190f92b8aac455117407674880" |
| 19 | +"a99811c863d561190f92b8aac455117407674880", |
| 20 | +"1efa2e74255816a138ea9be998d49a6bdfbd082f" |
21 | 21 | ] |
22 | 22 | }, |
23 | 23 | "directory":"coderoad" |
|
57 | 57 | "package.json" |
58 | 58 | ], |
59 | 59 | "commits": [ |
60 | | -"0c44989fe404b653c46ca0089f5525412fd054e1" |
| 60 | +"af2a97be3e4e0fda484913aa14df0d1a34c457a3" |
61 | 61 | ] |
62 | 62 | }, |
63 | 63 | "solution": { |
64 | 64 | "files": [ |
65 | 65 | "package.json" |
66 | 66 | ], |
67 | 67 | "commits": [ |
68 | | -"3255614fee55570d2e8a81ebaab660a16f5fa8f5" |
| 68 | +"46794cae9d036c50b673b47363e9429ae331eaf6" |
69 | 69 | ] |
70 | 70 | }, |
71 | 71 | "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 (,)." |
|
85 | 85 | "package.json" |
86 | 86 | ], |
87 | 87 | "commits": [ |
88 | | -"04b29d4740330a9f7093ae23567cedc7ded7b758" |
| 88 | +"1d2f58330ee9773ac7f80df5a628675fbead1e60" |
89 | 89 | ] |
90 | 90 | }, |
91 | 91 | "solution": { |
92 | 92 | "files": [ |
93 | 93 | "package.json" |
94 | 94 | ], |
95 | 95 | "commits": [ |
96 | | -"3d6acf2b5f540a7fc22c7535faa3577ef516ee36" |
| 96 | +"ee7a7af1c92693d239528832f2a69859371a147a" |
97 | 97 | ] |
98 | 98 | }, |
99 | 99 | "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." |
|
113 | 113 | "package.json" |
114 | 114 | ], |
115 | 115 | "commits": [ |
116 | | -"277487b9c613144dee3c1631391e45066b028967" |
| 116 | +"6b8e6ef82ad0cd0dbb0193787c14ed39fe039132" |
117 | 117 | ] |
118 | 118 | }, |
119 | 119 | "solution": { |
120 | 120 | "files": [ |
121 | 121 | "package.json" |
122 | 122 | ], |
123 | 123 | "commits": [ |
124 | | -"3a5ee9890db6b8007ffb7d996e81a426bc5cb76f" |
| 124 | +"b0d6dc4a4dd6b510fcd0b9d803e301049ee574d3" |
125 | 125 | ] |
126 | 126 | }, |
127 | 127 | "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\"." |
|
141 | 141 | "package.json" |
142 | 142 | ], |
143 | 143 | "commits": [ |
144 | | -"301da3567d0803f07083f2de97a19078a249e2c4" |
| 144 | +"67346726fb199a390aa9f402ec3a0516fcfeff74" |
145 | 145 | ] |
146 | 146 | }, |
147 | 147 | "content":"Fill the `license` field in the package.json file of your project as you find suitable.", |
148 | 148 | "solution": { |
149 | 149 | "commits": [ |
150 | | -"4e277b30ae6ce78457fb8b25732fa3e3f7d17375" |
| 150 | +"060c0756282e4efc83435008dff06a5e4ef6943c" |
151 | 151 | ] |
152 | 152 | } |
153 | 153 | } |
|
166 | 166 | "package.json" |
167 | 167 | ], |
168 | 168 | "commits": [ |
169 | | -"81cd62e8ccf8e4d34877393b0096a98243345ace" |
| 169 | +"dc7f47dbbefb5f18cc5980418912d76096ee4907" |
170 | 170 | ] |
171 | 171 | }, |
172 | 172 | "content":"Add a `version` to the package.json file of your project.", |
173 | 173 | "solution": { |
174 | 174 | "commits": [ |
175 | | -"259738a015b77b4ec147dc917b5a438d8cf72a1c" |
| 175 | +"ad2cb8466d937eb7c03f99fc876b7ab08dd13067" |
176 | 176 | ] |
177 | 177 | } |
178 | 178 | } |
|
195 | 195 | "node_modules/moment" |
196 | 196 | ], |
197 | 197 | "commits": [ |
198 | | -"7bdc84408fdcfb0dbff6f2cd3d6125599ed06e52" |
| 198 | +"c3a72a33bb7b207b22b2dff04c0e01c269990754" |
199 | 199 | ] |
200 | 200 | }, |
201 | 201 | "solution": { |
|
206 | 206 | "npm install" |
207 | 207 | ], |
208 | 208 | "commits": [ |
209 | | -"977699a8452699154f74bb13245d7d71918f3f18" |
| 209 | +"506f466305b95777a1be518bf91c35831806f21c" |
210 | 210 | ] |
211 | 211 | }, |
212 | 212 | "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." |
|
230 | 230 | "node_modules/moment" |
231 | 231 | ], |
232 | 232 | "commits": [ |
233 | | -"6f3be27106114523cb4a94d1dda21bb135afffd5" |
| 233 | +"d75d588947efe26c5a2fe5bfd809da9211f8f2d3" |
234 | 234 | ] |
235 | 235 | }, |
236 | 236 | "solution": { |
|
241 | 241 | "npm install" |
242 | 242 | ], |
243 | 243 | "commits": [ |
244 | | -"929be35a0c7bebfda231424a825f6bb479dd2868" |
| 244 | +"c38b20b9c8c5f9d68efa433fc33b715a70060d74" |
245 | 245 | ] |
246 | 246 | }, |
247 | 247 | "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" |
|
261 | 261 | "package.json" |
262 | 262 | ], |
263 | 263 | "commits": [ |
264 | | -"60e1e9cc46eec61ec0612391cb6d0ceaf6397660" |
| 264 | +"b4f94faaf7ee23103dbdb935083bae86ccf03799" |
265 | 265 | ] |
266 | 266 | }, |
267 | 267 | "solution": { |
268 | 268 | "files": [ |
269 | 269 | "package.json" |
270 | 270 | ], |
271 | 271 | "commits": [ |
272 | | -"a0212bd7e8dd8707070fbf5f1f7a63a15b478114" |
| 272 | +"35f54899b037b00fdd85f45b0d5d94089cf599f4" |
273 | 273 | ] |
274 | 274 | }, |
275 | 275 | "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." |
|
289 | 289 | "package.json" |
290 | 290 | ], |
291 | 291 | "commits": [ |
292 | | -"089b2f2ebe795c6bda80606fe0f014929d0aef85" |
| 292 | +"36951e66e83966359d20ece1a362b2bc91e4d722" |
293 | 293 | ] |
294 | 294 | }, |
295 | 295 | "solution": { |
296 | 296 | "files": [ |
297 | 297 | "package.json" |
298 | 298 | ], |
299 | 299 | "commits": [ |
300 | | -"8c0c303a7545846ffc098ce8f040fe827c7eb8e8" |
| 300 | +"9578b3e8ef7f6c0f03d3e3b9b2b6bdc151e4e186" |
301 | 301 | ] |
302 | 302 | }, |
303 | 303 | "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." |
|
317 | 317 | "package.json" |
318 | 318 | ], |
319 | 319 | "commits": [ |
320 | | -"faac2c0c87cd0d99eb036b977339a1902d5012b0" |
| 320 | +"364e2417076bf8d6604084409404ab9ff7b6533f" |
321 | 321 | ] |
322 | 322 | }, |
323 | 323 | "solution": { |
324 | 324 | "files": [ |
325 | 325 | "package.json" |
326 | 326 | ], |
327 | 327 | "commits": [ |
328 | | -"13bd9d0cdecd4e21e4b84f0f674ed72bf21626e0" |
| 328 | +"d3ee6474be0c501136dde32efed480c9f3d8fdbf" |
329 | 329 | ] |
330 | 330 | }, |
331 | 331 | "content":"Remove the moment package from your dependencies.\n\n**Note:** Make sure you have the right amount of commas after removing it." |
|