-
Notifications
You must be signed in to change notification settings - Fork 4
/
gulpfile.js
45 lines (36 loc) · 1.03 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
const uswds = require("@uswds/compile");
const gulp = require('gulp');
/**
* USWDS version
*/
uswds.settings.version = 3;
/**
* Path settings
*/
uswds.paths.src.projectSass = './src/sass';
uswds.paths.dist.css = "./uswds/assets/css";
uswds.paths.dist.theme = "./src/sass";
uswds.paths.dist.img = "./uswds/assets/img";
uswds.paths.dist.fonts = "./uswds/assets/fonts";
uswds.paths.dist.js = "./public/assets/js";
/**
* Exports
*/
exports.compile = uswds.compile;
exports.watch = uswds.watch;
exports.init = uswds.init;
exports.updateUswds = uswds.updateUswds;
exports.copyAssets = uswds.copyAssets;
exports.default = uswds.watch;
/**
* ONRR tasks
*/
gulp.task('onrrCopyImg', function() {
return gulp.src('./node_modules/@uswds/uswds/dist/img/**/*')
.pipe(gulp.dest('./public/assets/img'));
});
gulp.task('onrrCopyFonts', function() {
return gulp.src('./node_modules/@uswds/uswds/dist/fonts/**/*')
.pipe(gulp.dest('./public/assets/fonts'));
});
gulp.task('onrrPostGatsbyBuild', gulp.series('onrrCopyImg', 'onrrCopyFonts'));