-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
67 lines (58 loc) · 1.36 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
** Requires node.js version 6.0.0 and up **
This is a Gulp set-up with the following features:
- PostCSS/CSSNext
- Javascript merge & uglify
- Assemble with Handlebars templates
- Browsersync
===
===
Note that it is favorable to have the following folder structure in order for everything to compile in a good manner.
-project-folder
- app
- assets
- fonts
- img
- css
main.css (with imports)
- subfolder
- partial.css
- ...
- other subfolders
- js
- main.js
- vendors
- some-vendor-file.js
- ...
- templates
- layouts
- some-layout.hbs
- ...
- partials
- some-partial.hbs
- ...
- index.hbs
- ...
- Gulpfile.js
- package.json
===
===
If you then move to the project folder in terminal and run 'gulp', everything will compile into a dist folder like so:
- dist
- app
- assets
- fonts
- img
- css
- main.css
- js
- main.js
- vendor.jss
- index.html
- ...
===
===
Browsersync will then run from the app in the distfolder and every change made will result in a recompile & refresh of the browser.
===
===
Note that if the homepage of your project is not called 'index.html', you need to change the following setting in the browsersync task in the Gulpfile:
>> index: 'your-initial-page.html'