forked from hmcts/sscs-cor-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
34 lines (25 loc) · 1.36 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
const gulp = require('gulp');
const appDirectory = './cookie-banner/common/components/imported';
const assetsDirectory = './cookie-banner/public';
const stylesheetsDirectory = `${assetsDirectory}/stylesheets`;
function copyCookieBanner(done) {
gulp.src(['./node_modules/cmc-cookies-manager/shared-component/components/cookie-manager/**/*.js'])
.pipe(gulp.dest(`${assetsDirectory}/js/`));
gulp.src(['./node_modules/cmc-cookies-manager/shared-component/components/cookie-manager/cookies-manager.js'])
.pipe(gulp.dest('./public/js/'));
gulp.src(['./node_modules/cmc-cookies-manager/shared-component/components/cookie-manager/**/*.njk'])
.pipe(gulp.dest(`${appDirectory}/cookie-manager/`));
gulp.src(['./node_modules/cmc-cookies-manager/shared-component/components/button/**/*.*'])
.pipe(gulp.dest(`${appDirectory}/button/`));
gulp.src(['./node_modules/cmc-cookies-manager/shared-component/components/styles/**/*.css'])
.pipe(gulp.dest(`${stylesheetsDirectory}/`));
gulp.src(['./node_modules/cmc-cookies-manager/shared-component/components/cookie-banner/**/*.*'])
.pipe(gulp.dest(`${appDirectory}/cookie-banner/`));
gulp.src([
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/govuk_template_jinja/assets/javascripts/**/*.js'
])
.pipe(gulp.dest(`${assetsDirectory}/js/lib/`));
done();
}
exports.default = copyCookieBanner;