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: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,13 @@ A boilerplate for building web projects with [Gulp](https://gulpjs.com/). Uses G
7
7
- Concatenate, minify, and lint JavaScript.
8
8
- Compile, minify, autoprefix, and lint Sass.
9
9
- Optimize SVGs.
10
-
- Copy static files and folders into your `dist` directory.
10
+
- Render twig templates with JSON data
11
+
- Copy static assets files and folders into your `dist` directory.
11
12
- Automatically add headers and project details to JS and CSS files.
12
13
- Create polyfilled and non-polyfilled versions of JS files.
13
14
- Watch for file changes, and automatically recompile build and reload webpages.
14
15
15
-
**Gulp Boilerplate makes it easy to turn features on and off**, so you can reuse it for all of your projects without having to delete or modify tasks.
16
+
**Turn features on and off**, so you can reuse it for all of your projects without having to delete or modify tasks.
16
17
17
18
18
19
@@ -45,8 +46,8 @@ Add your source files to the appropriate `src` subdirectories. Gulp will process
45
46
46
47
- JavaScript files in the `src/js` directory will be compiled to `dist/js`. Files in subdirectories under the `js` folder will be concatenated. For example, files in `js/detects` will compile into `detects.js`.
47
48
- Files in the `src/sass` directory will be compiled to `dist/css`.
48
-
- SVG files placed in the `src/svg` directory will be optimized with SVGO and compiled into `dist/svg`.
49
-
-Files and folders placed in the `copy` directory will be copied as-is into the `dist` directory.
49
+
- SVG files placed in the `src/assets/svg/` directory will be optimized with SVGO and compiled into `dist/assets/svg/`.
50
+
-Other files and folders (except `assets/svg`) placed in the `assets` directory will be copied as-is into the `dist/assets` directory.
50
51
51
52
### package.json
52
53
@@ -91,13 +92,13 @@ Gulp generates minified and unminified CSS files. It also includes [autoprefixer
91
92
92
93
### SVGs
93
94
94
-
Place SVG files in the `src/svg` directory.
95
+
Place SVG files in the `src/assets/svg/` directory.
95
96
96
-
SVG files will be optimized with [SVGO](https://github.com/svg/svgo) and compiled into `dist/svg`.
97
+
SVG files will be optimized with [SVGO](https://github.com/svg/svgo) and compiled into `dist/assets/svg/`.
97
98
98
99
### Copy Files
99
100
100
-
Files and folders placed in the `src/copy` directory will be copied as-is into `dist`.
101
+
Files and folders placed in the `src/assets` directory will be copied as-is into `dist`.
101
102
102
103
This is a great place to put HTML files, images, and pre-compiled assets.
0 commit comments