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
+25-44
Original file line number
Diff line number
Diff line change
@@ -3,68 +3,49 @@ Configurable assets builder
3
3
4
4
A collection of configurable [gulp](http://gulpjs.com/) tasks we use to build front-end code, mostly for fully static or CMS-based website projects, using [gulp-task-maker](https://www.npmjs.com/package/gulp-task-maker).
5
5
6
-
⚠ Requires Node.js 4 or later.
6
+
⚠ Requires Node.js 6.5 or later.
7
7
8
8
Task list
9
9
---------
10
10
11
-
-[less](doc/less.md): compile Less stylesheets
12
-
-[mincss](doc/mincss.md): concatenate and minify CSS
13
-
-[minjs](doc/minjs.md): concatenate and minify JS code
14
-
-[sass](doc/sass.md): compile Sass stylesheets
15
-
-[svgsymbols](doc/svgsymbols.md): build SVG symbol sprites
11
+
-[less](doc/less.md): compile Less stylesheets
12
+
-[mincss](doc/mincss.md): concatenate and minify CSS
13
+
-[minjs](doc/minjs.md): concatenate and minify JS code
14
+
-[sass](doc/sass.md): compile Sass stylesheets
15
+
-[svgsymbols](doc/svgsymbols.md): build SVG symbol sprites
16
16
17
17
Installation
18
18
------------
19
19
20
-
### Simple installation
21
-
22
-
1.[Download a ZIP of this repo](https://github.com/gradientz/assets-builder/archive/master.zip) and unzip it in your projet directory.
23
-
3. Change the main config in `gulpfile.js`.
24
-
4. Finally, in a command prompt, go to your project dir and run: `npm install`.
25
-
26
-
### Custom installation
27
-
28
-
1. Install `gulp` and `gulp-task-maker` as devDependencies: `npm install -D gulp gulp-task-maker`.
29
-
2.[Download a ZIP of this repo](https://github.com/gradientz/assets-builder/archive/master.zip) and copy the `gulp-tasks` directory or only the task scripts you want to ue.
30
-
3. Write your own `gulpfile.js`, following the [gulp-task-maker documentation](https://github.com/fvsch/gulp-task-maker/blob/master/README.md).
20
+
1.[Download a ZIP of this repo](https://github.com/gradientz/assets-builder/archive/master.zip) and unzip it in your projet directory.
21
+
3. Change the main config in `gulpfile.js` as needed.
22
+
4. Finally, in a command prompt, go to your project dir and run: `npm install`.
31
23
32
24
Usage
33
25
-----
34
26
35
-
-`npm run build`: build assets once
36
-
-`npm run watch`: run in the background and build assets when source files are changed
37
-
38
-
The first time you try to run a task, e.g. with `npm run build`, you might see an error that looks like this:
39
-
40
-
```
41
-
[13:37:21] [gulp-task-maker] Errors in 'sass', 'minjs'
This is because task dependencies are not installed by default, but documented in the task’s `.json` file. This allows us to maintain as many tasks as we want in this repo, but not install dependencies we don’t use.
27
+
-`npm run build`: build assets once
28
+
-`npm run watch`: run in the background and build assets when source files are changed
48
29
49
-
Run the provided command (`npm install -D …`), then run `npm run build` again. You should see something like this:
30
+
You should see something like this:
50
31
51
32
```
52
33
$ npm run build
53
34
54
-
> assets-builder@4.0.0 build ~/my-project
35
+
> assets-builder@5.0.0 build ~/my-project
55
36
> gulp build
56
37
57
38
[13:38:12] Using gulpfile ~/my-project/gulpfile.js
0 commit comments