-
Notifications
You must be signed in to change notification settings - Fork 12
/
gulpfile.js
54 lines (46 loc) · 1.37 KB
/
gulpfile.js
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
/*
* * * * * ==============================
* * * * * ==============================
* * * * * ==============================
* * * * * ==============================
========================================
========================================
========================================
----------------------------------------
USWDS SASS GULPFILE
----------------------------------------
from https://designsystem.digital.gov/documentation/getting-started/developers/phase-two-compile/
*/
/**
* Import uswds-compile
*/
const uswds = require("@uswds/compile");
const gulp = require("gulp");
/**
* USWDS version
* Set the major version of USWDS you're using
* (Current options are the numbers 2 or 3)
*/
uswds.settings.version = 3;
/**
* Path settings
* Set as many as you need
*/
uswds.paths.src.projectSass = './src/theme';
uswds.paths.dist.theme = './src/theme';
uswds.paths.dist.img = './src/img';
uswds.paths.dist.fonts = './src/fonts';
uswds.paths.dist.js = './src/js';
uswds.paths.dist.css = './src/css';
/**
* Gulp tasks
*/
gulp.task("copy-nasa-images", () => {
return gulp.src(`${uswds.paths.dist.theme}/img/**`)
.pipe(gulp.dest(uswds.paths.dist.img));
});
gulp.task('copy', gulp.series(uswds.copyAssets, 'copy-nasa-images'));
gulp.task('init', gulp.series('copy', uswds.compile));
gulp.task('watch', uswds.watch);
gulp.task("default", gulp.series("watch"));
require("./release");