Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improve documentaton
  • Loading branch information
rse committed Nov 9, 2013
1 parent b0022f8 commit e5739a9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Expand Up @@ -46,6 +46,9 @@ Instead of writing...
```js
// Gruntfile.js
module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-less");

grunt.initConfig({
uglify: {
"lib": {
Expand All @@ -71,9 +74,6 @@ module.exports = function (grunt) {
}
});

grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-less");

grunt.registerTask("default", [ "lib", "app" ]);
grunt.registerTask("lib", [ "uglify:lib", "less:lib" ]);
grunt.registerTask("app", [ "uglify:app", "less:app" ]);
Expand All @@ -86,6 +86,8 @@ module.exports = function (grunt) {
// Gruntfile.js
module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-extend-config");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-less");

// general task configurations
grunt.initConfig({
Expand All @@ -100,6 +102,7 @@ module.exports = function (grunt) {
}
}
});
grunt.registerTask("default", [ "lib", "app" ]);

// all configurations for building the libraries
grunt.extendConfig({
Expand All @@ -114,6 +117,7 @@ module.exports = function (grunt) {
}
}
});
grunt.registerTask("lib", [ "uglify:lib", "less:lib" ]);

// all configurations for building the application
grunt.extendConfig({
Expand All @@ -128,12 +132,6 @@ module.exports = function (grunt) {
}
}
});

grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-less");

grunt.registerTask("default", [ "lib", "app" ]);
grunt.registerTask("lib", [ "uglify:lib", "less:lib" ]);
grunt.registerTask("app", [ "uglify:app", "less:app" ]);
};
```
Expand Down

0 comments on commit e5739a9

Please sign in to comment.