The first thing we will learn to do with gulp is to move files.
Let’s create simple styles files some_styles.css and more_styles.css.
1 2 3 |
|
1 2 3 |
|
Our project structure should now look like:
1 2 3 4 5 6 7 |
|
Update our gulpfile.js
from the previous section and instruct gulp to move all the files found in the styles folder to our build/styles
folder.
1 2 3 4 5 6 7 |
|
Well, What do we expect will happen when we run gulp? If you guessed the files will be copied and moved to the build/styles
folder, then give yourself a cookie.
When we run gulp , we should see:
1 2 3 4 5 6 |
|
Our project should now look like:
1 2 3 4 5 6 7 8 9 10 11 |
|
So far so good, That’s it!!! See ya!!! :)