+12
-0
| Changes | ||
| ======= | ||
| 1.0.0 | ||
| ----- | ||
| * [Issue #7][issue 7] | ||
| 0.3.0 | ||
| ----- | ||
| * [Pull Request #5][pull 5] | ||
| 0.2.0 | ||
@@ -17,4 +27,6 @@ ----- | ||
| [grunt]: http://gruntjs.com/ | ||
| [issue 7]: https://github.com/dvberkel/grunt-peg/issues/7 | ||
| [pull 5]: https://github.com/dvberkel/grunt-peg/pull/5 | ||
| [pull 3]: https://github.com/dvberkel/grunt-peg/pull/3 | ||
| [pull 2]: https://github.com/dvberkel/grunt-peg/pull/2 | ||
| [issue 4]: https://github.com/dvberkel/grunt-peg/issues/4 |
+2
-16
@@ -34,20 +34,6 @@ /* | ||
| default_options: { | ||
| grammar: 'test/fixtures/a.peg', | ||
| outputFile: 'tmp/default_options' | ||
| }, | ||
| custom_options: { | ||
| grammar: 'test/fixtures/a.peg', | ||
| exportVar: 'Namespace.parser', | ||
| outputFile: 'tmp/custom_options' | ||
| }, | ||
| passing_options: { | ||
| grammar: 'test/fixtures/a.peg', | ||
| outputFile: 'tmp/passing_options', | ||
| options: { cache: true } | ||
| }, | ||
| default_options_standard: { | ||
| src: 'test/fixtures/a.peg', | ||
| dest: 'tmp/default_options_standard' | ||
| }, | ||
| custom_options_standard: { | ||
| custom_options: { | ||
| src: 'test/fixtures/a.peg', | ||
@@ -57,3 +43,3 @@ dest: 'tmp/custom_options_standard', | ||
| }, | ||
| passing_options_standard: { | ||
| passing_options: { | ||
| src: 'test/fixtures/a.peg', | ||
@@ -60,0 +46,0 @@ dest: 'tmp/passing_options_standard', |
+1
-1
| { | ||
| "name": "grunt-peg", | ||
| "description": "A grunt multi task that generates parsers from PEG grammars.", | ||
| "version": "0.3.0", | ||
| "version": "1.0.0", | ||
| "homepage": "https://github.com/dvberkel/grunt-peg", | ||
@@ -6,0 +6,0 @@ "author": { |
+9
-1
@@ -107,2 +107,8 @@ # grunt-peg | ||
| ## PEG.js dependency | ||
| As described in [issue #6][#6] sometimes the wrong PEG.js version | ||
| is downloaded by npm. The solution for now seems to be to call | ||
| `npm cache clear`. | ||
| ## Contributing | ||
@@ -117,2 +123,3 @@ | ||
| * 2013-08-21 v1.0.0 Remove support for old-style options | ||
| * 2013-07-04 v0.3.0 Adhere to grunt's configuration convention | ||
@@ -131,2 +138,3 @@ * 2013-06-02 v0.2.0 Pass options to PEG.js | ||
| [PEG]: https://npmjs.org/package/pegjs | ||
| [Gruntfile]: http://gruntjs.com/sample-gruntfile | ||
| [Gruntfile]: http://gruntjs.com/sample-gruntfile | ||
| [#6]: https://github.com/dvberkel/grunt-peg/pull/6 |
+0
-13
@@ -18,10 +18,2 @@ /* | ||
| // Legacy "grammar -> outputFile" support. | ||
| if(this.data.grammar && this.data.outputFile) { | ||
| files.push({ | ||
| src: [this.data.grammar], | ||
| dest: this.data.outputFile | ||
| }); | ||
| } | ||
| // Merge task-specific and/or target-specific options with these defaults. | ||
@@ -32,7 +24,2 @@ var options = this.options({ | ||
| // Legacy "exportVar" support. | ||
| if(this.data.exportVar) { | ||
| options.exportVar = this.data.exportVar; | ||
| } | ||
| // Iterate over all src-dest file pairs. | ||
@@ -39,0 +26,0 @@ files.forEach(function(f) { |
+2
-29
@@ -29,29 +29,2 @@ 'use strict'; | ||
| var actual = grunt.file.read('tmp/default_options'); | ||
| var expected = grunt.file.read('test/expected/default_options'); | ||
| test.equal(actual, expected, 'should describe what the default behavior is.'); | ||
| test.done(); | ||
| }, | ||
| custom_options: function(test) { | ||
| test.expect(1); | ||
| var actual = grunt.file.read('tmp/custom_options'); | ||
| var expected = grunt.file.read('test/expected/custom_options'); | ||
| test.equal(actual, expected, 'should describe what the custom option(s) behavior is.'); | ||
| test.done(); | ||
| }, | ||
| passing_options: function(test) { | ||
| test.expect(1); | ||
| var actual = grunt.file.read('tmp/passing_options'); | ||
| var expected = grunt.file.read('test/expected/passing_options'); | ||
| test.equal(actual, expected, 'should describe what the passing option(s) behavior is.'); | ||
| test.done(); | ||
| }, | ||
| default_options_standard: function(test) { | ||
| test.expect(1); | ||
| var actual = grunt.file.read('tmp/default_options_standard'); | ||
@@ -63,3 +36,3 @@ var expected = grunt.file.read('test/expected/default_options'); | ||
| }, | ||
| custom_options_standard: function(test) { | ||
| custom_options: function(test) { | ||
| test.expect(1); | ||
@@ -73,3 +46,3 @@ | ||
| }, | ||
| passing_options_standard: function(test) { | ||
| passing_options: function(test) { | ||
| test.expect(1); | ||
@@ -76,0 +49,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
-100%138
6.98%33198
-3.54%150
-23.47%