-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from scottyeck/master
Adds replace functionality / tests
- Loading branch information
Showing
6 changed files
with
59 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,9 +66,14 @@ grunt.initConfig({ | |
#### options.position | ||
Type: `String` | ||
Default: `'top'` | ||
Value range: `'top'` or `'bottom'` | ||
Value range: `'top'` or `'bottom'` or `'replace'` | ||
|
||
The position to place the banner - *either* the top or bottom (other values will default to top). | ||
The position to place the banner - *either* the top or bottom or in place of the contents in the desired file specified by `'replaceContent'`. | ||
|
||
#### options.replaceContent | ||
Type: `String` or `RegExp` | ||
|
||
The text in the specified file that the banner should replace. Valid only when ```position``` is set to `'replace'`. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mattstyles
Author
Owner
|
||
|
||
#### options.banner | ||
Type: `String` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var variable1 = "this is a variable"; | ||
// the banner | ||
var variable2 = "this is another variable"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var variable1 = "this is a variable"; | ||
// replace-this-comment | ||
var variable2 = "this is another variable"; |
position
is shortposition