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

Commitdcf36c9

Browse files
committed
upgrade build progress
1 parentc09a915 commitdcf36c9

File tree

3 files changed

+109
-158
lines changed

3 files changed

+109
-158
lines changed

‎CODEROAD.mdrenamed to‎TUTORIAL.md

Lines changed: 0 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,6 @@
22

33
>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.
44
5-
```config
6-
config:
7-
testRunner:
8-
command: npm run programmatic-test
9-
path: coderoad
10-
actions:
11-
commits:
12-
- '55a9b6d'
13-
- 'd58d630'
14-
commands:
15-
- npm install
16-
repo:
17-
uri: https://github.com/coderoad/fcc-learn-npm
18-
branch: v0.3.0
19-
dependencies:
20-
- name: node
21-
version: >=10
22-
```
23-
245
##Intro
256

267
>Introduction to the package.json
@@ -49,21 +30,6 @@ One of the most common pieces of information in this file is the `author` field.
4930

5031
###Step 1
5132

52-
```config
53-
setup:
54-
files:
55-
- package.json
56-
commits:
57-
- '5326ec8'
58-
commands:
59-
- npm install
60-
solution:
61-
files:
62-
- package.json
63-
commits:
64-
- '424cf66'
65-
```
66-
6733
Add your name as the`author` of the project in the package.json file.
6834
**Note:** Remember that you’re writing JSON, so all field names must use double-quotes (") and be separated with a comma (,).
6935

@@ -84,19 +50,6 @@ Here's an example:
8450

8551
###Step 1
8652

87-
```config
88-
setup:
89-
files:
90-
- package.json
91-
commits:
92-
- '68ddb97'
93-
solution:
94-
files:
95-
- package.json
96-
commits:
97-
- '138ad0e'
98-
```
99-
10053
Add a`description` to the package.json file of your project.
10154

10255
**Note:** Remember to use double-quotes for field-names (") and commas (,) to separate fields.
@@ -117,19 +70,6 @@ As you can see, this field is structured as an array of double-quoted strings.
11770

11871
###Step 1
11972

120-
```config
121-
setup:
122-
files:
123-
- package.json
124-
commits:
125-
- '2069439'
126-
solution:
127-
files:
128-
- package.json
129-
commits:
130-
- 'f2ed460'
131-
```
132-
13373
Add an array of suitable strings to the`keywords` field in the package.json file of your project.
13474

13575
One of the keywords should be "freecodecamp".
@@ -148,19 +88,6 @@ Some common licenses for open source projects include MIT and BSD. License infor
14888

14989
###Step 1
15090

151-
```config
152-
setup:
153-
files:
154-
- package.json
155-
commits:
156-
- 'f2229d1'
157-
solution:
158-
files:
159-
- package.json
160-
commits:
161-
- '9378267'
162-
```
163-
16491
Fill the`license` field in the package.json file of your project as you find suitable.
16592

16693
##Version
@@ -175,19 +102,6 @@ A `version` is one of the required fields of your package.json file. This field
175102

176103
###Step 1
177104

178-
```config
179-
setup:
180-
files:
181-
- package.json
182-
commits:
183-
- '60a4e7b'
184-
solution:
185-
files:
186-
- package.json
187-
commits:
188-
- 'f9f7f29'
189-
```
190-
191105
Add a`version` to the package.json file of your project.
192106

193107
##External Packages
@@ -217,22 +131,6 @@ Installed packages are created in a `node_modules` folder in your project. Avoid
217131

218132
###Step 1
219133

220-
```config
221-
setup:
222-
files:
223-
- package.json
224-
commits:
225-
- 'e97c095'
226-
watchers:
227-
- package.json
228-
- node_modules/moment
229-
solution:
230-
files:
231-
- package.json
232-
commits:
233-
- '97af83a'
234-
```
235-
236134
Install the "moment" package to the`dependencies` field of your package.json file by running the command line npm install.
237135

238136
**Note:** Moment is a handy library for working with time and dates.
@@ -264,22 +162,6 @@ npm install express@4.17.0
264162

265163
###Step 1
266164

267-
```config
268-
setup:
269-
files:
270-
- package.json
271-
commits:
272-
- 'be03933'
273-
watchers:
274-
- package.json
275-
- node_modules/moment
276-
solution:
277-
files:
278-
- package.json
279-
commits:
280-
- 'ba77ae7'
281-
```
282-
283165
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
284166

285167
##Receive Patch Updates
@@ -296,19 +178,6 @@ To allow an npm dependency to update to the latest PATCH version, you can prefix
296178

297179
###Step 1
298180

299-
```config
300-
setup:
301-
files:
302-
- package.json
303-
commits:
304-
- 'c4ff0f6'
305-
solution:
306-
files:
307-
- package.json
308-
commits:
309-
- 'cc1f2a5'
310-
```
311-
312181
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.
313182
Use the tilde (`~`) character to prefix the version of moment in your dependencies, and allow npm to update it to any new PATCH release.
314183

@@ -330,19 +199,6 @@ This would allow updates to any 1.x.x version of the package.
330199

331200
###Step 1
332201

333-
```config
334-
setup:
335-
files:
336-
- package.json
337-
commits:
338-
- 'fb75ecf'
339-
solution:
340-
files:
341-
- package.json
342-
commits:
343-
- 'd0e1a22'
344-
```
345-
346202
Use the caret (`^`) to prefix the version of moment in your dependencies and allow npm to update it to any new MINOR release.
347203

348204
**Note:** The version numbers themselves should not be changed.
@@ -359,19 +215,6 @@ This same method applies to removing other fields in your package.json as well.
359215

360216
###Step 1
361217

362-
```config
363-
setup:
364-
files:
365-
- package.json
366-
commits:
367-
- 'da1e99e'
368-
solution:
369-
files:
370-
- package.json
371-
commits:
372-
- '796b176'
373-
```
374-
375218
Remove the moment package from your dependencies.
376219

377220
**Note:** Make sure you have the right amount of commas after removing it.

‎coderoad-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"repo": {
2121
"uri":"https://github.com/coderoad/fcc-learn-npm",
22-
"branch":"v0.3.0"
22+
"branch":"v0.4.0"
2323
},
2424
"dependencies": [{
2525
"name":"node",

‎coderoad.yaml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
version:"0.4.0"
2+
config:
3+
testRunner:
4+
command:./node_modules/.bin/mocha
5+
args:
6+
filter:--grep
7+
tap:--reporter=mocha-tap-reporter
8+
setup:
9+
commands:
10+
-npm install
11+
directory:coderoad
12+
repo:
13+
uri:https://github.com/coderoad/fcc-learn-npm
14+
branch:v0.4.0
15+
dependencies:
16+
-name:node
17+
version:'>=10'
18+
levels:
19+
-id:L1
20+
-id:L2
21+
steps:
22+
-id:L2S1
23+
setup:
24+
commands:
25+
-npm install
26+
files:
27+
-package.json
28+
solution:
29+
files:
30+
-package.json
31+
-id:L3
32+
steps:
33+
-id:L3S1
34+
setup:
35+
files:
36+
-package.json
37+
solution:
38+
files:
39+
-package.json
40+
-id:L4
41+
steps:
42+
-id:L4S1
43+
setup:
44+
files:
45+
-package.json
46+
soluition:
47+
files:
48+
-package.json
49+
-id:L5
50+
steps:
51+
-id:L5S1
52+
setup:
53+
files:
54+
-package.json
55+
-id:L6
56+
steps:
57+
-id:L6S1
58+
setup:
59+
files:
60+
-package.json
61+
-id:L7
62+
steps:
63+
-id:L7S1
64+
setup:
65+
files:
66+
-package.json
67+
watchers:
68+
-package.json
69+
-node_modules/moment
70+
solution:
71+
files:
72+
-package.json
73+
-id:L8
74+
steps:
75+
-id:L8S1
76+
setup:
77+
files:
78+
-package.json
79+
watchers:
80+
-package.json
81+
-node_modules/moment
82+
-id:L9
83+
steps:
84+
-id:L9S1
85+
setup:
86+
files:
87+
-package.json
88+
solution:
89+
files:
90+
-package.json
91+
-id:L10
92+
steps:
93+
-id:L10S1
94+
setup:
95+
files:
96+
-package.json
97+
solution:
98+
files:
99+
-package.json
100+
-id:L11
101+
steps:
102+
-id:L11S1
103+
setup:
104+
files:
105+
-package.json
106+
solution:
107+
files:
108+
-package.json

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp