Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-facebookhtml

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-facebookhtml - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

25

package.json
{
"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": {}
}
}

15

tasks/facebookhtml.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc