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.md
+29-7Lines changed: 29 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,27 @@
1
1
# Getting Started
2
2
3
-
*If you've previously installed gulp globally, run `npm rm --global gulp` before following these instructions.*
3
+
*If you've previously installed gulp globally, run `npm rm --global gulp` before following these instructions.* For more information, read this [Sip](https://medium.com/gulpjs/gulp-sips-command-line-interface-e53411d4467).
4
+
5
+
#### Check for Node and npm
6
+
Make sure that you've installed Node and npm before attempting to install gulp.
7
+
8
+
```sh
9
+
node --version
10
+
```
11
+
```sh
12
+
npm --version
13
+
```
4
14
5
15
#### Install the `gulp` command
6
16
7
17
```sh
8
18
npm install --global gulp-cli
9
19
```
10
20
21
+
#### Create a `package.json`
22
+
If you don't have a package.json, create one. If you need help, run an `npm init` which will walk you through giving it a name, version, description, etc.
23
+
24
+
11
25
#### Install `gulp` in your devDependencies
12
26
13
27
Run this command in your project directory:
@@ -18,7 +32,7 @@ npm install --save-dev gulp
18
32
19
33
#### Create a `gulpfile`
20
34
21
-
Create a file called`gulpfile.js` in your project root with these contents:
35
+
In your project directory, create a file named`gulpfile.js` in your project root with these contents:
22
36
23
37
```js
24
38
var gulp =require('gulp');
@@ -36,13 +50,21 @@ Run the gulp command in your project directory:
36
50
gulp
37
51
```
38
52
53
+
To run multiple tasks, you can use `gulp <task> <othertask>`.
54
+
55
+
#### Result
56
+
39
57
Voila! The default task will run and do nothing.
40
58
41
-
To run multiple tasks, you can use `gulp <task> <othertask>`.
59
+
```sh
60
+
Using gulpfile ~/my-project/gulpfile.js
61
+
[11:15:51] Starting 'default'...
62
+
[11:15:51] Finished 'default' after 103 μs
63
+
```
42
64
43
65
## Where do I go now?
44
66
45
-
-[API Documentation](API.md)
46
-
-[Recipes](recipes)
47
-
-[Help Articles](README.md#articles)
48
-
-[Plugins](http://gulpjs.com/plugins/)
67
+
-[API Documentation](API.md) - The programming interface, defined
68
+
-[Recipes](recipes) - Specific examples from the community
69
+
-[In Depth Help](https://travismaynard.com/writing/getting-started-with-gulp) - A tutorial from the the guy who wrote the book
70
+
-[Plugins](http://gulpjs.com/plugins/) - Building blocks for your gulp file
0 commit comments