grunt-asciify
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "grunt-asciify", | ||
"description": "Ascii awesomizer. A Grunt task for better banners and hot logs", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/olizilla/grunt-asciify", | ||
@@ -32,11 +32,11 @@ "author": { | ||
"dependencies": { | ||
"asciify": "~1.0.1" | ||
"asciify": "~1.3.0" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4", | ||
"grunt-cli": "~0.1.6", | ||
"grunt-contrib-jshint": "~0.1.1", | ||
"grunt": "~0.4.1", | ||
"grunt-cli": "~0.1.6", | ||
"grunt-contrib-jshint": "~0.6.0", | ||
"grunt-contrib-clean": "~0.4.0", | ||
"grunt-contrib-nodeunit": "~0.1.2", | ||
"grunt-contrib-uglify": "~0.1.1" | ||
"grunt-contrib-nodeunit": "~0.2.0", | ||
"grunt-contrib-uglify": "~0.2.2" | ||
}, | ||
@@ -43,0 +43,0 @@ "keywords": [ |
@@ -16,2 +16,3 @@ # grunt-asciify | ||
Running the asciify task as configured below will push your awesomized text into property called `asciify_myBanner` which can then be used else where, as the template for an awesome file banner for example. | ||
@@ -34,2 +35,3 @@ ```js | ||
``` | ||
Asciify picks a property name to store the output by prepending your target name with `asciify_`. In the above example we used `myBanner` as the target, so the property name became `asciify_myBanner`. | ||
@@ -53,3 +55,2 @@ ## Getting Started | ||
### Overview | ||
In your project's Gruntfile, add a section named `asciify` to the data object passed into `grunt.initConfig()`. | ||
@@ -79,3 +80,3 @@ | ||
![asciify options.log=true](https://raw.github.com/olizilla/grunt-asciify/master/doc/grunt-asciify.png); | ||
![asciify options.log=true](https://raw.github.com/olizilla/grunt-asciify/master/doc/grunt-asciify.png) | ||
@@ -86,6 +87,9 @@ ### Usage Examples | ||
grunt.initConfig({ | ||
asciify: { | ||
asciify: { | ||
banner:{ | ||
text: 'GRUNT-ASCIIFY!', | ||
options:{ | ||
// Add the awesome to the console, and use the best font. | ||
options:{ | ||
font:'graffiti', | ||
@@ -97,4 +101,6 @@ log:true | ||
// Use asciify to make banner | ||
uglify:{ | ||
// Use the property holding our awesomised text in the banner template | ||
options: { | ||
@@ -105,6 +111,12 @@ banner: '/*!\n <%= asciify_banner %> \n*/\n' | ||
src:'Gruntfile.js', | ||
dest:'Grunfile.withbanner.min.js' | ||
dest:'Grunfile.withbanner.min.js' | ||
} | ||
} | ||
}) | ||
}); | ||
grunt.loadNpmTasks('grunt-asciify'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
// Run asciify before uglify so the asciify_banner property is available. | ||
grunt.registerTask('default', ['asciify', 'uglify']); | ||
``` | ||
@@ -116,3 +128,4 @@ | ||
## Release History | ||
* 0.2.1 - ASCIIFY CORE UPDATED. NO BANNERS WERE HARMED. | ||
* 0.2.0 - GRAFFITI BEATS STANDARD AS DEFAULT FONT. NOW DEPENDS ON THE ASCIIFY MODULE. | ||
* 0.1.0 - IT BEGINS. ASCII BANNERS NOW MANDTORY. | ||
* 0.2.0 - GRAFFITI BEATS STANDARD AS DEFAULT FONT. NOW DEPENDS ON THE ASCIIFY MODULE. |
@@ -29,3 +29,8 @@ /* | ||
asciify(this.data.text, options.font, function(result) { | ||
asciify(this.data.text, options.font, function(err, result) { | ||
if (err) { | ||
grunt.log.error('Failed to asciify:', err); | ||
return done(); | ||
} | ||
@@ -32,0 +37,0 @@ self.files.forEach(function(file){ |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11005
139
124
0
+ Addedansi-styles@0.2.0(transitive)
+ Addedasciify@1.3.5(transitive)
+ Addedchalk@0.3.0(transitive)
+ Addedhas-color@0.1.7(transitive)
+ Addedminimist@0.0.10(transitive)
+ Addedoptimist@0.6.1(transitive)
+ Addedpad@0.0.4(transitive)
- Removedasciify@1.0.1(transitive)
- Removedoptimist@0.3.7(transitive)
Updatedasciify@~1.3.0