Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature/upgrade build#3

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 5 commits intomasterfromfeature/upgrade-build
Jun 8, 2020
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
cleanup coderoad.yaml
  • Loading branch information
@ShMcK
ShMcK committedJun 7, 2020
commit6958938d549e8c682fba88170ffdfe90c1e1f706
42 changes: 21 additions & 21 deletionsTUTORIAL.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@

> 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.

## Intro
##L1Intro

> Introduction to the package.json

Expand All@@ -18,7 +18,7 @@ Most developers prefer to install packages local to each project to create a sep
The `package.json` file is the center of any Node.js project or NPM package. It stores information about your project, similar to how the <head> section of an HTML document describes the content of a webpage. It consists of a single JSON object where information is stored in key-value pairs. There are only two required fields; "name" and "version", but it’s good practice to provide additional information about your project that could be useful to future users or maintainers.
If you look at the file tree of your project, you will find the package.json file on the top level of the tree. This is the file that you will be improving in the next couple of challenges.

## Author
##L2Author

> Package.json author

Expand All@@ -28,12 +28,12 @@ One of the most common pieces of information in this file is the `author` field.
"author": "Jane Doe",
```

###Step 1
###L2S1

Add your name as the `author` of the project in the package.json file.
**Note:** Remember that you’re writing JSON, so all field names must use double-quotes (") and be separated with a comma (,).

## Description
##L3Description

> Package.json description

Expand All@@ -48,13 +48,13 @@ Here's an example:
"description": "A project that does something awesome",
```

###Step 1
###L3S1

Add a `description` to the package.json file of your project.

**Note:** Remember to use double-quotes for field-names (") and commas (,) to separate fields.

## Keywords
##L4Keywords

> Package.json keywords

Expand All@@ -68,13 +68,13 @@ Here's an example:

As you can see, this field is structured as an array of double-quoted strings.

###Step 1
###L4S1

Add an array of suitable strings to the `keywords` field in the package.json file of your project.

One of the keywords should be "freecodecamp".

## License
##L5License

> Package.json license

Expand All@@ -86,11 +86,11 @@ Some common licenses for open source projects include MIT and BSD. License infor
"license": "MIT",
```

###Step 1
###L5S1

Fill the `license` field in the package.json file of your project as you find suitable.

## Version
##L6Version

> Package.json version

Expand All@@ -100,11 +100,11 @@ A `version` is one of the required fields of your package.json file. This field
"version": "1.2.0",
```

###Step 1
###L6S1

Add a `version` to the package.json file of your project.

## External Packages
##L7External Packages

> Installing dependencies from NPM

Expand All@@ -129,13 +129,13 @@ npm install express

Installed packages are created in a `node_modules` folder in your project. Avoid editing or changing the node_modules folder or its contents.

###Step 1
###L7S1

Install the "moment" package to the `dependencies` field of your package.json file by running the command line npm install.

**Note:** Moment is a handy library for working with time and dates.

## Semantic Versioning
##L8Semantic Versioning

> Versioning packages

Expand All@@ -160,11 +160,11 @@ Using the NPM cli, a specific version of a package can be installed by specifyin
npm install express@4.17.0
```

###Step 1
###L8S1

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

## Receive Patch Updates
##L9Receive Patch Updates

> Using `~` to recieve patches

Expand All@@ -176,14 +176,14 @@ To allow an npm dependency to update to the latest PATCH version, you can prefix
"package": "~1.3.8"
```

###Step 1
###L9S1

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.
Use the tilde (`~`) character to prefix the version of moment in your dependencies, and allow npm to update it to any new PATCH release.

**Note:** The version numbers themselves should not be changed.

## Receive Minor Updates
##L10Receive Minor Updates

> Using `^` to receive minor updates

Expand All@@ -197,13 +197,13 @@ Your current version of moment should be "~2.10.2" which allows npm to install t

This would allow updates to any 1.x.x version of the package.

###Step 1
###L10S1

Use the caret (`^`) to prefix the version of moment in your dependencies and allow npm to update it to any new MINOR release.

**Note:** The version numbers themselves should not be changed.

## Remove a Dependency
##L11Remove a Dependency

> Removing a dependency

Expand All@@ -213,7 +213,7 @@ But what if you want to remove an external package that you no longer need? You

This same method applies to removing other fields in your package.json as well.

###Step 1
###L11S1

Remove the moment package from your dependencies.

Expand Down
156 changes: 78 additions & 78 deletionscoderoad.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,81 +28,81 @@ levels:
solution:
files:
- package.json
- id: L3
steps:
- id: L3S1
setup:
files:
- package.json
solution:
files:
- package.json
- id: L4
steps:
- id: L4S1
setup:
files:
- package.json
soluition:
files:
- package.json
- id: L5
steps:
- id: L5S1
setup:
files:
- package.json
- id: L6
steps:
- id: L6S1
setup:
files:
- package.json
- id: L7
steps:
- id: L7S1
setup:
files:
- package.json
watchers:
- package.json
- node_modules/moment
solution:
files:
- package.json
- id: L8
steps:
- id: L8S1
setup:
files:
- package.json
watchers:
- package.json
- node_modules/moment
- id: L9
steps:
- id: L9S1
setup:
files:
- package.json
solution:
files:
- package.json
- id: L10
steps:
- id: L10S1
setup:
files:
- package.json
solution:
files:
- package.json
- id: L11
steps:
- id: L11S1
setup:
files:
- package.json
solution:
files:
- package.json
- id: L3
steps:
- id: L3S1
setup:
files:
- package.json
solution:
files:
- package.json
- id: L4
steps:
- id: L4S1
setup:
files:
- package.json
soluition:
files:
- package.json
- id: L5
steps:
- id: L5S1
setup:
files:
- package.json
- id: L6
steps:
- id: L6S1
setup:
files:
- package.json
- id: L7
steps:
- id: L7S1
setup:
files:
- package.json
watchers:
- package.json
- node_modules/moment
solution:
files:
- package.json
- id: L8
steps:
- id: L8S1
setup:
files:
- package.json
watchers:
- package.json
- node_modules/moment
- id: L9
steps:
- id: L9S1
setup:
files:
- package.json
solution:
files:
- package.json
- id: L10
steps:
- id: L10S1
setup:
files:
- package.json
solution:
files:
- package.json
- id: L11
steps:
- id: L11S1
setup:
files:
- package.json
solution:
files:
- package.json

[8]ページ先頭

©2009-2025 Movatter.jp