grunt-facebookhtml
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "grunt-facebookhtml", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"author": "", | ||
"license": "ISC", | ||
"readme": "ERROR: No README data found!", | ||
"_id": "grunt-facebookhtml@0.0.2", | ||
@@ -10,23 +11,3 @@ "_from": "grunt-facebookhtml@~0.0.1", | ||
"handlebars": "~2.0.0-alpha.4" | ||
}, | ||
"dist": { | ||
"shasum": "a3598adc8f9a0fdb74ef2fc5bf8348f2cf483d8d", | ||
"tarball": "http://registry.npmjs.org/grunt-facebookhtml/-/grunt-facebookhtml-0.0.2.tgz" | ||
}, | ||
"_npmVersion": "1.3.21", | ||
"_npmUser": { | ||
"name": "speaktosteve", | ||
"email": "speaktosteve@gmail.com" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "speaktosteve", | ||
"email": "speaktosteve6@gmail.com" | ||
} | ||
], | ||
"directories": {}, | ||
"_shasum": "52844b3b620e77162cdbfa8763c5103a8d7ed766", | ||
"_resolved": "https://registry.npmjs.org/grunt-facebookhtml/-/grunt-facebookhtml-0.0.2.tgz", | ||
"readme": "ERROR: No README data found!", | ||
"scripts": {} | ||
} | ||
} |
@@ -8,2 +8,3 @@ var Handlebars = require('handlebars'); | ||
grunt.registerMultiTask('facebookhtml', 'generates static files for facebook links',function(target){ | ||
var done = this.async(); | ||
@@ -14,10 +15,15 @@ | ||
'iframeRoot' : 'http://mands-autumnwinter2014-qa.s3-website-eu-west-1.amazonaws.com/', | ||
'parentUrl' : 'http://www.marksandspencer.com/' | ||
'parentUrl' : 'http://www.marksandspencer.com/', | ||
'helpers' : {} | ||
}), | ||
srcFiles = this.files[0].src, | ||
destFolder = this.files[0].dest, | ||
env = this.env, | ||
template, | ||
data = []; | ||
data = [], | ||
helper; | ||
for(helper in options.helpers){ | ||
Handlebars.registerHelper(helper, options.helpers[helper]); | ||
} | ||
function generateTemplates(){ | ||
@@ -32,4 +38,3 @@ data.forEach(generateTemplate); | ||
var output = template(item), | ||
outputfile = path.join(destFolder, item.id + '.' + options.env + '.html'); | ||
grunt.log.writeln('output: ' + item.id + '.' + options.env + '.html'); | ||
outputfile = path.join(destFolder, item.id + '.html'); | ||
fs.writeFileSync(outputfile, output, {encoding:'utf8'}); | ||
@@ -36,0 +41,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
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
45
0
2148