grunt-lodash
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "grunt-lodash", | ||
"version": "0.2.1", | ||
"description": "Grunt wrapper around the Lo-Dash build tool.", | ||
"version": "0.3.0", | ||
"description": "A Grunt wrapper around lodash-cli.", | ||
"homepage": "https://github.com/lodash/grunt-lodash", | ||
"license": "MIT", | ||
"main": "Gruntfile.js", | ||
"keywords": [ | ||
"builder", | ||
"compile", | ||
"customize", | ||
"gruntplugin", | ||
"lodash", | ||
"underscore", | ||
"custom", | ||
"builder" | ||
"util" | ||
], | ||
"author": { | ||
"name": "Blaine Bublitz", | ||
"email": "blaine@iceddev.com", | ||
"url": "http://iceddev.com/" | ||
}, | ||
"author": "Blaine Bublitz <blaine@iceddev.com> (http://iceddev.com/)", | ||
"contributors": [ | ||
{ | ||
"name": "John-David Dalton", | ||
"email": "john.david.dalton@gmail.com", | ||
"url": "http://allyoucanleet.com/" | ||
}, | ||
{ | ||
"name": "Mathias Bynens", | ||
"email": "mathias@qiwi.be", | ||
"url": "http://mathiasbynens.be/" | ||
}, | ||
{ | ||
"name": "Kit Cambridge", | ||
"email": "github@kitcambridge.be", | ||
"url": "http://kitcambridge.be/" | ||
}, | ||
{ | ||
"name": "asciidisco", | ||
"email": "public@asciidisco.com" | ||
} | ||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"Mathias Bynens <mathias@qiwi.be> (http://mathiasbynens.be/)", | ||
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)", | ||
"Sebastian Golasch <public@asciidisco.com> (http://asciidisco.com/)" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/lodash/grunt-lodash/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/lodash/grunt-lodash.git" | ||
}, | ||
"bugs": "https://github.com/lodash/grunt-lodash/issues", | ||
"repository": { "type": "git", "url": "git://github.com/lodash/grunt-lodash.git" }, | ||
"engines": { | ||
@@ -55,9 +32,9 @@ "node": ">=0.8.19" | ||
"peerDependencies": { | ||
"lodash-cli": ">=1.3.0" | ||
"lodash-cli": ">=1.3.1" | ||
}, | ||
"dependencies": { | ||
"lodash": "1.3.1" | ||
"lodash": "2.0.0" | ||
}, | ||
"devDependencies": { | ||
"lodash-cli": "1.3.1", | ||
"lodash-cli": ">=1.3.1", | ||
"grunt": "~0.4.1", | ||
@@ -67,4 +44,9 @@ "grunt-contrib-watch": "~0.4.4", | ||
"grunt-contrib-nodeunit": "~0.2.0", | ||
"grunt-contrib-clean": "~0.4.1" | ||
} | ||
"grunt-contrib-clean": "~0.4.1", | ||
"semver": "~2.1.0" | ||
}, | ||
"files": [ | ||
"LICENSE.txt", | ||
"tasks/lodash.js" | ||
] | ||
} |
@@ -1,11 +0,11 @@ | ||
# grunt-lodash <sup>v0.2.0</sup> | ||
# grunt-lodash v0.3.0 | ||
Grunt wrapper around the Lo-Dash build tool. | ||
A Grunt wrapper around [lodash-cli](https://npmjs.org/package/lodash-cli). | ||
## Getting Started | ||
This plugin requires Grunt `~0.4.1` | ||
If you haven’t used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you’re familiar with that process, you may install this plugin with this command: | ||
This plugin requires Grunt `~0.4.1`. | ||
If you haven’t used [Grunt](http://gruntjs.com/) before, be sure to check out the [“Getting Started”](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you’re familiar with that process, you may install this plugin with this command: | ||
```shell | ||
```bash | ||
npm install grunt-lodash --save-dev | ||
@@ -21,5 +21,6 @@ ``` | ||
### Overview | ||
In your project’s Gruntfile, add a section named `lodash` to the data object passed into `grunt.initConfig()`. | ||
```javascript | ||
In your project’s Gruntfile, add a section named `lodash` to the data object passed into `grunt.initConfig()`: | ||
```js | ||
grunt.initConfig({ | ||
@@ -39,13 +40,14 @@ 'lodash': { | ||
``` | ||
As you might have guessed, this would produce the same output as | ||
```shell | ||
As you might have guessed, this would produce the same output as: | ||
```bash | ||
lodash backbone -o build/lodash.build.js | ||
``` | ||
## All configuration options | ||
## Configuration options | ||
More information can be found in the [Lo-Dash custom builds section](http://lodash.com/custom-builds) | ||
For a more in-depth explanation of the build options head on over to the [lodash-cli documentation](http://lodash.com/custom-builds). | ||
```javascript | ||
```js | ||
'lodash': { | ||
@@ -60,2 +62,3 @@ 'target': { | ||
'modifier': 'backbone', | ||
'modularize': true, | ||
'category': ['collections', 'functions'], | ||
@@ -94,12 +97,10 @@ 'exports': ['amd', 'commonjs', 'node'], | ||
grunt-lodash has been tested in at least Node.js 0.8.19-0.10.7 (Node bug [#5622](https://github.com/joyent/node/issues/5622) prevents 0.10.8-0.10.10 from working) | ||
grunt-lodash has been tested in at least Node.js 0.8.19-0.10.7, 0.10.12, 0.10.16 (Node bug [#5622](https://github.com/joyent/node/issues/5622) prevents 0.10.8-0.10.10 from working). | ||
## Release Notes | ||
### <sup>v0.2.0</sup> | ||
### <sup>v0.3.0</sup> | ||
* Configuration syntax uses “grunt-style” | ||
* Ability to specify custom version of Lo-Dash through peerDependency | ||
* Use `grunt.util.spawn` to use Lo-Dash’s build process directly | ||
* Full test suite | ||
* Added modularize option + tests | ||
* Tested with Lo-Dash 2.0.0 release | ||
@@ -109,9 +110,11 @@ The full changelog is available [here](https://github.com/lodash/grunt-lodash/wiki/Changelog). | ||
## Contributing | ||
If you’d like to file an issue or submit a pull request, please check the [contributing guidelines](https://github.com/lodash/grunt-lodash/blob/master/CONTRIBUTING.md) | ||
If you’d like to file an issue or submit a pull request, please check the [contributing guidelines](https://github.com/lodash/grunt-lodash/blob/master/CONTRIBUTING.md). | ||
## Resources | ||
+ [grunt](https://github.com/gruntjs/grunt) | ||
+ [Getting started](http://gruntjs.com/getting-started) | ||
+ [Lo-Dash](http://lodash.com/) | ||
- [grunt](https://github.com/gruntjs/grunt) | ||
- [Getting started](http://gruntjs.com/getting-started) | ||
- [Lo-Dash](http://lodash.com/) | ||
## Author | ||
@@ -123,3 +126,2 @@ | ||
## Contributors | ||
@@ -126,0 +128,0 @@ |
@@ -10,3 +10,3 @@ module.exports = function(grunt) { | ||
var customOptions = ['modifier', 'flags', 'shortFlags']; | ||
var customOptions = ['modifier', 'modularize', 'flags', 'shortFlags']; | ||
@@ -48,2 +48,6 @@ var omitCustom = _.partialRight(_.omit, function(value, key) { | ||
var command = [builder]; | ||
if (opts.modularize) { | ||
command.push('modularize'); | ||
} | ||
if (opts.modifier) { | ||
@@ -56,3 +60,3 @@ command.push(opts.modifier); | ||
grunt.verbose.writeln('Lo-Dash Version: ' + _.VERSION); | ||
grunt.verbose.writeln('Lo-Dash CLI Version: ' + pkg.version); | ||
grunt.verbose.writeln('Build Arguments: ' + spawnArgs.join(' ')); | ||
@@ -59,0 +63,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6032
60
126
8419
7
2
+ Addedlodash@2.0.0(transitive)
- Removedlodash@1.3.1(transitive)
Updatedlodash@2.0.0