diff --git a/CODEROAD.md b/CODEROAD.md index cdd3950..2d403d8 100644 --- a/CODEROAD.md +++ b/CODEROAD.md @@ -6,9 +6,16 @@ config: testRunner: command: npm run programmatic-test + path: coderoad + actions: + commits: + - '55a9b6d' + - '34f028e' + commands: + - npm install repo: uri: https://github.com/coderoad/fcc-learn-npm - branch: v0.1.0 + branch: v0.3.0 dependencies: - name: node version: >=10 @@ -47,15 +54,14 @@ setup: files: - package.json commits: - - '6b7cf6f' - - '8df92a5' + - 'c3b4350' commands: - npm install solution: files: - package.json commits: - - '49577c7' + - '02cd4f2' ``` Add your name as the `author` of the project in the package.json file. @@ -83,12 +89,12 @@ setup: files: - package.json commits: - - 'c9718b2' + - '1917199' solution: files: - package.json commits: - - 'a15aa99' + - 'e8b3d85' ``` Add a `description` to the package.json file of your project. @@ -116,12 +122,12 @@ setup: files: - package.json commits: - - '2b907ae' + - '2ba75f8' solution: files: - package.json commits: - - '6342f64' + - '63cd193' ``` Add an array of suitable strings to the `keywords` field in the package.json file of your project. @@ -147,12 +153,12 @@ setup: files: - package.json commits: - - '96e3915' + - 'acd63ba' solution: files: - package.json commits: - - 'ec61d78' + - 'a64411c' ``` Fill the `license` field in the package.json file of your project as you find suitable. @@ -174,12 +180,12 @@ setup: files: - package.json commits: - - '8ed877a' + - '580d786' solution: files: - package.json commits: - - '5be16a2' + - 'a92903d' ``` Add a `version` to the package.json file of your project. @@ -216,7 +222,7 @@ setup: files: - package.json commits: - - 'f89980a' + - 'eafc39a' watchers: - package.json - node_modules/moment @@ -224,7 +230,7 @@ solution: files: - package.json commits: - - '6bcac25' + - '50da157' ``` Install the "moment" package to the `dependencies` field of your package.json file by running the command line npm install. @@ -263,7 +269,7 @@ setup: files: - package.json commits: - - 'c7b5458' + - 'e658c66' watchers: - package.json - node_modules/moment @@ -271,7 +277,7 @@ solution: files: - package.json commits: - - '7854c2f' + - 'f10433e' ``` 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 @@ -295,12 +301,12 @@ setup: files: - package.json commits: - - 'ff88ec9' + - 'b4edb0c' solution: files: - package.json commits: - - 'a4b2700' + - '8e169e1' ``` 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. @@ -329,12 +335,12 @@ setup: files: - package.json commits: - - 'dd56157' + - '67c5f7b' solution: files: - package.json commits: - - 'a9ec3c0' + - '601c5fe' ``` Use the caret (`^`) to prefix the version of moment in your dependencies and allow npm to update it to any new MINOR release. @@ -358,12 +364,12 @@ setup: files: - package.json commits: - - '9e35b51' + - '4359bde' solution: files: - package.json commits: - - '9536de2' + - 'f8cfb51' ``` Remove the moment package from your dependencies. diff --git a/coderoad-config.json b/coderoad-config.json index f64a603..050d7ea 100644 --- a/coderoad-config.json +++ b/coderoad-config.json @@ -1,16 +1,21 @@ { - "version": "0.2.0", + "version": "0.3.0", "summary": { "title": "Learn NPM package json", "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." }, "config": { "testRunner": { - "command": "npm run programmatic-test" + "command": "npm run programmatic-test", + "path": "coderoad", + "actions": { + "commits": ["55a9b6d", "34f028e"], + "commands": ["npm install"] + } }, "repo": { "uri": "https://github.com/coderoad/fcc-learn-npm", - "branch": "v0.2.0" + "branch": "v0.3.0" }, "dependencies": [{ "name": "node", @@ -37,12 +42,12 @@ "id": "bCzlTigHAL", "setup": { "files": ["package.json"], - "commits": ["6b7cf6f", "8df92a5"], + "commits": ["c3b4350"], "commands": ["npm install"] }, "solution": { "files": ["package.json"], - "commits": ["49577c7"] + "commits": ["02cd4f2"] }, "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" } @@ -59,11 +64,11 @@ "id": "qtyop7mIYu", "setup": { "files": ["package.json"], - "commits": ["c9718b2"] + "commits": ["1917199"] }, "solution": { "files": ["package.json"], - "commits": ["a15aa99"] + "commits": ["e8b3d85"] }, "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" } @@ -80,11 +85,11 @@ "id": "-dUCTOVbdo", "setup": { "files": ["package.json"], - "commits": ["2b907ae"] + "commits": ["2ba75f8"] }, "solution": { "files": ["package.json"], - "commits": ["6342f64"] + "commits": ["63cd193"] }, "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" } @@ -101,11 +106,11 @@ "id": "3DsFYGvBuc", "setup": { "files": ["package.json"], - "commits": ["96e3915"] + "commits": ["acd63ba"] }, "solution": { "files": ["package.json"], - "commits": ["ec61d78"] + "commits": ["a64411c"] }, "content": "Fill the `license` field in the package.json file of your project as you find suitable.\n\n" } @@ -122,11 +127,11 @@ "id": "B07NvoYTwI", "setup": { "files": ["package.json"], - "commits": ["8ed877a"] + "commits": ["580d786"] }, "solution": { "files": ["package.json"], - "commits": ["5be16a2"] + "commits": ["a92903d"] }, "content": "Add a `version` to the package.json file of your project.\n\n" } @@ -143,12 +148,12 @@ "id": "9VFvL2uElS", "setup": { "files": ["package.json"], - "commits": ["f89980a"], + "commits": ["eafc39a"], "watchers": ["package.json", "node_modules/moment"] }, "solution": { "files": ["package.json"], - "commits": ["6bcac25"] + "commits": ["50da157"] }, "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" } @@ -165,12 +170,12 @@ "id": "p_BHY4SsgA", "setup": { "files": ["package.json"], - "commits": ["c7b5458"], + "commits": ["e658c66"], "watchers": ["package.json", "node_modules/moment"] }, "solution": { "files": ["package.json"], - "commits": ["7854c2f"] + "commits": ["f10433e"] }, "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" } @@ -187,11 +192,11 @@ "id": "BISIX4-iz4d", "setup": { "files": ["package.json"], - "commits": ["ff88ec9"] + "commits": ["b4edb0c"] }, "solution": { "files": ["package.json"], - "commits": ["a4b2700"] + "commits": ["8e169e1"] }, "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" } @@ -208,11 +213,11 @@ "id": "X7yBkeKqF6_", "setup": { "files": ["package.json"], - "commits": ["dd56157"] + "commits": ["67c5f7b"] }, "solution": { "files": ["package.json"], - "commits": ["a9ec3c0"] + "commits": ["601c5fe"] }, "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" } @@ -229,11 +234,11 @@ "id": "_BvPBHOIDjP", "setup": { "files": ["package.json"], - "commits": ["9e35b51"] + "commits": ["4359bde"] }, "solution": { "files": ["package.json"], - "commits": ["9536de2"] + "commits": ["f8cfb51"] }, "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" }