-
Notifications
You must be signed in to change notification settings - Fork 237
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
Migrate changed files if possible #2049
Conversation
50e3fcc
to
d72d00a
Compare
5cc1d1a
to
4800248
Compare
4800248
to
ba776fa
Compare
__tests__/fixtures/test-v11-prototype/app/assets/javascripts/application.js
Outdated
Show resolved
Hide resolved
@@ -142,7 +143,7 @@ async function migrate () { | |||
prepareSass('app/assets/sass/application.scss'), | |||
deleteUnusedFiles(filesToDelete), | |||
deleteUnusedDirectories(directoriesToDelete), | |||
upgradeIfUnchanged(filesToUpdateIfUnchanged), | |||
upgradeIfUnchanged(filesToUpdateIfUnchanged, '', upgradeIfPossible), |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
6d42c66
to
2dbd2f9
Compare
06b6224
to
abfa486
Compare
…sible Migrate changed filters if possible
1481a77
to
1eb72ab
Compare
1eb72ab
to
40f2d4e
Compare
|
||
// Warn about using the kit in production | ||
if (window.console && window.console.info) { | ||
window.console.info('GOV.UK Prototype Kit - do not use for production') | ||
} | ||
|
||
$(document).ready(function () { | ||
window.GOVUKFrontend.initAll() | ||
// Use GOV.UK shim-links-with-button-role.js to trigger a link styled to look like a button, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've removed initAll()
from this test, I think it's important that it's still in.
migrator/migration-steps.spec.js
Outdated
const starterFileContents = `const govukPrototypeKit = require('govuk-prototype-kit') | ||
const addFilter = govukPrototypeKit.views.addFilter | ||
` | ||
const expectedFileContents = `const govukPrototypeKit = require('govuk-prototype-kit') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add the comment that's in the starter kit.
I'd also like to remove the big old comment if it's unchanged - technically it still works but I think the user is better off having the new comment instead of the old comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just spotted that there's not a comment in the starter kit, I think we should remove the old one anyway.
38c3f36
to
0240eaf
Compare
…nctions to new upgrade-steps.js
0240eaf
to
6a2f813
Compare
See: