You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/1-quick-start.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ sidebar_label: Quick Start
9
9
10
10
If you've previously installed gulp globally, run `npm rm --global gulp` before following these instructions. For more information, read this [Sip][sip-article].
11
11
12
-
###Check for node, npm, and npx
12
+
## Check for node, npm, and npx
13
13
```sh
14
14
node --version
15
15
```
@@ -25,33 +25,33 @@ npx --version
25
25
26
26
If they are not installed, follow the instructions [here][node-install].
27
27
28
-
###Install the gulp command line utility
28
+
## Install the gulp command line utility
29
29
```sh
30
30
npm install --global gulp-cli
31
31
```
32
32
33
33
34
-
###Create a project directory and navigate into it
34
+
## Create a project directory and navigate into it
35
35
```sh
36
36
npx mkdirp my-project
37
37
```
38
38
```sh
39
39
cd my-project
40
40
```
41
41
42
-
###Create a package.json file in your project directory
42
+
## Create a package.json file in your project directory
43
43
```sh
44
44
npm init
45
45
```
46
46
47
47
This will guide you through giving your project a name, version, description, etc.
48
48
49
-
###Install the gulp package in your devDependencies
49
+
## Install the gulp package in your devDependencies
50
50
```sh
51
51
npm install --save-dev gulp@next
52
52
```
53
53
54
-
###Verify your gulp versions
54
+
## Verify your gulp versions
55
55
56
56
```sh
57
57
gulp --version
@@ -61,7 +61,7 @@ Ensure the output matches the screenshot below or you might need to restart the
61
61
62
62
![Output: CLI version 2.0.1 & Local version 4.0.0][img-gulp-version-command]
63
63
64
-
###Create a gulpfile
64
+
## Create a gulpfile
65
65
Using your text editor, create a file named gulpfile.js in your project root with these contents:
66
66
```js
67
67
functiondefaultTask(cb) {
@@ -72,14 +72,14 @@ function defaultTask(cb) {
72
72
exports.default= defaultTask
73
73
```
74
74
75
-
###Test it
75
+
## Test it
76
76
Run the gulp command in your project directory:
77
77
```sh
78
78
gulp
79
79
```
80
80
To run multiple tasks, you can use `gulp <task> <othertask>`.
0 commit comments