Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update example to show using almond

Closes gh-52
  • Loading branch information...
commit a92862502130c241d478ef908fee6d3281fb4cb8 1 parent 601ee2d
@tkellen tkellen authored
Showing with 8 additions and 6 deletions.
  1. +5 −4 README.md
  2. +3 −2 docs/requirejs-examples.md
View
9 README.md
@@ -1,4 +1,4 @@
-# grunt-contrib-requirejs [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-requirejs.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-requirejs)
+# grunt-contrib-requirejs v0.4.1 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-requirejs.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-requirejs)
> Optimize RequireJS projects using r.js.
@@ -44,6 +44,7 @@ requirejs: {
options: {
baseUrl: "path/to/base",
mainConfigFile: "path/to/config.js",
+ name: "path/to/almond", // assumes a production build using almond
out: "path/to/optimized.js"
}
}
@@ -60,13 +61,13 @@ requirejs: {
mainConfigFile: "path/to/config.js",
done: function(done, output) {
var duplicates = require('rjs-build-analysis').duplicates(output);
-
+
if (duplicates.length > 0) {
grunt.log.subhead('Duplicates found in requirejs build:');
grunt.log.warn(duplicates);
done(new Error('r.js built duplicate modules, please check the excludes option.'));
}
-
+
done();
}
}
@@ -90,4 +91,4 @@ requirejs: {
Task submitted by [Tyler Kellen](http://goingslowly.com/)
-*This file was generated on Wed Jun 05 2013 17:35:19.*
+*This file was generated on Thu Jan 02 2014 11:07:24.*
View
5 docs/requirejs-examples.md
@@ -6,6 +6,7 @@ requirejs: {
options: {
baseUrl: "path/to/base",
mainConfigFile: "path/to/config.js",
+ name: "path/to/almond", // assumes a production build using almond
out: "path/to/optimized.js"
}
}
@@ -22,13 +23,13 @@ requirejs: {
mainConfigFile: "path/to/config.js",
done: function(done, output) {
var duplicates = require('rjs-build-analysis').duplicates(output);
-
+
if (duplicates.length > 0) {
grunt.log.subhead('Duplicates found in requirejs build:');
grunt.log.warn(duplicates);
done(new Error('r.js built duplicate modules, please check the excludes option.'));
}
-
+
done();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.