Skip to content

Update for Coderoad v0.3.0 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 28 additions & 22 deletions CODEROAD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -216,15 +222,15 @@ setup:
files:
- package.json
commits:
- 'f89980a'
- 'eafc39a'
watchers:
- package.json
- node_modules/moment
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.
Expand Down Expand Up @@ -263,15 +269,15 @@ setup:
files:
- package.json
commits:
- 'c7b5458'
- 'e658c66'
watchers:
- package.json
- node_modules/moment
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
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down
51 changes: 28 additions & 23 deletions coderoad-config.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
Expand All @@ -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"
}
Expand All @@ -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"
}
Expand All @@ -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"
}
Expand All @@ -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"
}
Expand All @@ -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"
}
Expand All @@ -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"
}
Expand All @@ -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"
}
Expand All @@ -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"
}
Expand All @@ -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"
}
Expand Down