-
Notifications
You must be signed in to change notification settings - Fork 90
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
Reorder grunt tasks, remove the Procfile, remove grunt-shell dependency #311
Conversation
29383a9
to
8ed1a0d
Compare
'lint', | ||
'Use govuk-scss-lint to lint the sass files', | ||
'test', | ||
'', |
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.
Should this be empty?
b60011e
to
06b820e
Compare
'encode_snippets', | ||
'Encode HTML snippets', | ||
function () { | ||
grunt.task.run('htmlentities') | ||
} | ||
) | ||
|
||
// Test | ||
grunt.registerTask( |
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.
Might be my ignorance but do these need to be this verbose?
http://gruntjs.com/api/grunt.task
e.g.
task.registerTask('test', ['jshint', 'test_default', 'test_default_success']);
cc. @robinwhittleton, @NickColley. This also includes the removal of the grunt-shell dependency, to match the govuk_frontend_toolkit. |
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.
LGTM 👍
} | ||
) | ||
// Encode HTML snippets | ||
grunt.registerTask('encode_snippets', ['htmlentities', 'htmlentities_success']) |
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.
Minor: You don't expect to see underscores in idomatic JavaScript that much so it feels odd to see encode_snippets
instead of encode-snippet
etc but it's not a big deal
ed21b72
to
7d284b2
Compare
- Add comments to each of the test tasks - Make tasks less verbose - Rename Grunt tasks to use hyphens not underscores
Also use standard —fix to fix indentation.
https://devcenter.heroku.com/articles/nodejs-support#default-web-process -type If no Procfile is present in the root directory of your app during the build process, your web process will be started by running npm start, a script you can specify in package.json.
This then outputs `npm ERR! Test failed. See above for more details.`, rather than the more verbose error.
7d284b2
to
43df27c
Compare
8c76080
to
38b1f24
Compare
What does it do?
This PR:
[*] If no Procfile is present in the root directory of your app during the build process, your web process will be started by running
npm start
, specified in package.json.What type of change is it?
Put an
x
in all the boxes that apply