@@ -13,44 +13,39 @@ export const copy = gulp.parallel(
1313 * Copy GitHub release images, icons and other assets
1414 */
1515 task . name ( 'copy:assets' , ( ) =>
16- assets . copy ( 'nhsuk/ assets/**' , {
17- srcPath : join ( config . paths . pkg , 'dist' ) ,
16+ assets . copy ( 'assets/**' , {
17+ srcPath : join ( config . paths . pkg , 'dist/nhsuk ' ) ,
1818 destPath : join ( config . paths . root , 'dist/assets' )
1919 } )
2020 ) ,
2121
2222 /**
23- * Copy and version GitHub release scripts
23+ * Copy versioned GitHub release scripts
2424 */
2525 task . name ( "copy:scripts 'versioned'" , ( ) =>
26- assets . copy ( 'nhsuk/nhsuk-frontend.min.js' , {
27- srcPath : join ( config . paths . pkg , 'dist' ) ,
28- destPath : join ( config . paths . root , 'dist' ) ,
29- output : { file : `nhsuk-frontend-${ NPM_PACKAGE_VERSION } .min.js` }
26+ assets . copy ( `nhsuk-frontend-${ NPM_PACKAGE_VERSION } .min.js` , {
27+ srcPath : join ( config . paths . pkg , 'dist/nhsuk' ) ,
28+ destPath : join ( config . paths . root , 'dist' )
3029 } )
3130 ) ,
3231
3332 /**
34- * Copy and version GitHub release styles
33+ * Copy versioned GitHub release styles
3534 */
3635 task . name ( "copy:styles 'versioned'" , ( ) =>
37- assets . copy ( 'nhsuk/nhsuk-frontend.min.css' , {
38- srcPath : join ( config . paths . pkg , 'dist' ) ,
39- destPath : join ( config . paths . root , 'dist' ) ,
40- output : { file : `nhsuk-frontend-${ NPM_PACKAGE_VERSION } .min.css` }
36+ assets . copy ( `nhsuk-frontend-${ NPM_PACKAGE_VERSION } .min.css` , {
37+ srcPath : join ( config . paths . pkg , 'dist/nhsuk' ) ,
38+ destPath : join ( config . paths . root , 'dist' )
4139 } )
4240 ) ,
4341
4442 /**
45- * Copy and version GitHub release styles (dynamic type)
43+ * Copy versioned GitHub release styles (dynamic type)
4644 */
4745 task . name ( "copy:styles 'versioned, dynamic type'" , ( ) =>
48- assets . copy ( 'nhsuk/nhsuk-frontend-dynamic-type.min.css' , {
49- srcPath : join ( config . paths . pkg , 'dist' ) ,
50- destPath : join ( config . paths . root , 'dist' ) ,
51- output : {
52- file : `nhsuk-frontend-dynamic-type-${ NPM_PACKAGE_VERSION } .min.css`
53- }
46+ assets . copy ( `nhsuk-frontend-dynamic-type-${ NPM_PACKAGE_VERSION } .min.css` , {
47+ srcPath : join ( config . paths . pkg , 'dist/nhsuk' ) ,
48+ destPath : join ( config . paths . root , 'dist' )
5449 } )
5550 )
5651)
0 commit comments