Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: cowboy/grunt
base: 0f47e77688
...
head fork: cowboy/grunt
compare: b6825d7326
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 13 additions and 2 deletions.
  1. +8 −1 tasks/init.js
  2. +5 −1 tasks/init/jquery.js
View
9 tasks/init.js
@@ -233,7 +233,14 @@ module.exports = function(grunt) {
if (callback) { pkg = callback(pkg, props); }
// Write file.
- grunt.file.write(init.destpath(filename), JSON.stringify(pkg, null, 2));
+ grunt.verbose.or.write('Writing ' + filename + '...');
+ try {
+ grunt.file.write(init.destpath(filename), JSON.stringify(pkg, null, 2));
+ grunt.verbose.or.ok();
+ } catch(e) {
+ grunt.verbose.or.error().error(e);
+ throw e;
+ }
}
};
View
6 tasks/init/jquery.js
@@ -70,7 +70,11 @@ exports.template = function(grunt, init, done) {
});
// Generate jquery.json file.
- init.writePackageJSON(props.jqueryjson, props);
+ init.writePackageJSON(props.jqueryjson, props, function(pkg, props) {
+ // The jQuery site needs the "bugs" value as a string.
+ if ('bugs' in props) { pkg.bugs = props.bugs; }
+ return pkg;
+ });
// All done!
done();

No commit comments for this range

Something went wrong with that request. Please try again.