@@ -11,73 +11,74 @@ If you don't have, [click here](https://nodejs.org/)
11
11
12
12
13
13
#### 1. Check if you have it installed or not,
14
-
15
- npm -v
16
-
14
+ ```
15
+ npm -v
16
+ ```
17
17
and,
18
-
19
- node -v
20
-
18
+ ```
19
+ node -v
20
+ ```
21
21
you should see some version info in return.
22
22
23
23
#### 2. Install global packages
24
24
run on any directory,
25
-
26
- npm install -g gulp-cli node-gyp
27
-
25
+ ```
26
+ npm install -g gulp-cli node-gyp
27
+ ```
28
28
in case of mac or linux, you might need to mention "sudo"
29
29
30
30
31
31
#### 3. Now go to the directory where you want to place the project files using git bash
32
32
(terminal for mac or linux)
33
33
run the command,
34
-
35
- git clone URL
36
-
34
+ ```
35
+ git clone URL
36
+ ```
37
37
here URL is the http url you get from the repository page, [ Click here to clone] ( https://github.com/tanmoythander/angular-gulp-boilerplate )
38
38
39
39
#### 4. now navigate to the project directory with cmd (terminal for mac or linux)</b ><br >
40
40
run the command,
41
-
42
- npm install
43
-
44
- wait for it to be completed. It usually takes 5-10 minutes to complete.< br >
45
- It will download all the dependencies, build the project and serve the build on browser< br >< br >
41
+ ```
42
+ npm install
43
+ ```
44
+ wait for it to be completed. It usually takes 5-10 minutes to complete.
45
+ It will download all the dependencies, build the project and serve the build on browser.
46
46
47
47
## Using the gulp commands
48
48
49
49
50
50
#### 1. Serve the source
51
51
File watching enabled (Development Mode)
52
52
```
53
- gulp
53
+ gulp
54
54
```
55
55
You should see the browser window opening address http://localhost:3000 (opens another port if unavailable).
56
56
57
57
58
- If you want to serve the source without watching file changes(Source Testing Mode),
58
+ If you want to serve the source without watching file changes (Source Testing Mode),
59
59
run this,
60
60
```
61
- gulp serveSource
61
+ gulp serveSource
62
62
```
63
63
64
64
65
65
#### 2. Build the source
66
66
Build the source code into ./_ build (Deployment Mode)
67
67
```
68
- gulp build
68
+ gulp build
69
69
```
70
- Warning: it will delete previous build !!!
70
+ Warning: It will delete previous build !!!
71
71
72
72
73
73
#### 3. Serve the build
74
- Serve the ./_ build/ without watch (Build Testing Mode)
74
+ Serve the ./_ build/ without watching file changes (Build Testing Mode)
75
75
76
76
```
77
- gulp serveBuild
77
+ gulp serveBuild
78
78
```
79
79
you should see the browser window opening address http://localhost:3000 (opens another port if unavailable).
80
- Warning: it will delete previous build !!!
80
+
81
+ Warning: It will delete previous build !!!
81
82
82
83
83
84
## Developer Hint
0 commit comments