Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mmonteith/autocomplete #342

Merged
merged 15 commits into from
Jan 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .npmignore

This file was deleted.

1 change: 0 additions & 1 deletion app/_templates/layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<link href="{{ baseUrl }}/assets/nhsuk.css" rel="stylesheet">

<script src="{{ baseUrl }}/assets/nhsuk.js" defer></script>
<script src="{{ baseUrl }}/assets/libraries/jquery.min.js"></script>

<!--[if IE]><link rel="shortcut icon" href="{{ baseUrl }}/assets/favicons/favicon.ico"><![endif]-->
<!-- Touch Icons - iOS and Android 2.1+ 180x180 pixels in size. -->
Expand Down
2 changes: 0 additions & 2 deletions docs/installation/installing-compiled.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ If you require any of this functionality, you should [install using npm](/docs/i

<!-- Scripts -->
<script src="js/nhsuk-[latest version].min.js" defer></script>
<script src="js/jquery-3.3.1.min.js"></script>

<!-- Favicons -->
<!--[if IE]><link rel="shortcut icon" href="assets/favicons/favicon.ico"><![endif]-->
Expand Down Expand Up @@ -62,7 +61,6 @@ If you require any of this functionality, you should [install using npm](/docs/i

<!-- Scripts -->
<script src="js/nhsuk-[latest version].min.js" defer></script>
<script src="js/jquery-3.3.1.min.js"></script>

<!-- Favicons -->
<!--[if IE]><link rel="shortcut icon" href="assets/favicons/favicon.ico"><![endif]-->
Expand Down
28 changes: 0 additions & 28 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,31 +79,6 @@ function webpackJS() {
.pipe(gulp.dest('./dist'));
}

/* Concat the NHS.UK components JS with third party JS (typeahead). */
function concatJS() {
return gulp.src([
'packages/components/header/typeahead.bundle.min.js',
'packages/components/header/nhs.typeahead.js',
'dist/nhsuk.js',
])
.pipe(concat('nhsuk.js'))
.pipe(gulp.dest(['dist/']));
}

/* Delete the Webpack nhsuk.bundle.js after its been concatenated. */
function cleanJS() {
return del('dist/nhsuk.bundle.js');
}

/* Copy jQuery dependency into dist folder for release */
function thirdPartyAssets() {
return gulp.src('./node_modules/jquery/dist/jquery.min.js')
.pipe(rename({
basename: 'jquery-3.3.1.min',
}))
.pipe(gulp.dest('dist/'));
}

/* Minify the JS file for release */
function minifyJS() {
return gulp.src([
Expand Down Expand Up @@ -181,8 +156,6 @@ gulp.task('style', compileCSS);
gulp.task('build', gulp.series([
compileCSS,
webpackJS,
concatJS,
cleanJS,
]));
gulp.task('bundle', gulp.series([
cleanDist,
Expand All @@ -194,7 +167,6 @@ gulp.task('bundle', gulp.series([
gulp.task('zip', gulp.series([
'bundle',
assets,
thirdPartyAssets,
jsFolder,
cssFolder,
createZip
Expand Down
Loading