jsonresume-theme-polymer
Advanced tools
Comparing version 0.0.2 to 0.0.3
35
index.js
var fs = require("fs"); | ||
var Handlebars = require("handlebars"); | ||
var gravatar = require('gravatar'); | ||
var vulcan = require('vulcanize'); | ||
var path = require('path'); | ||
var options = {}; | ||
options.input = path.resolve(path.join('polymer-tutorial-master','finished','index.html')); | ||
options.output = __dirname + '/vulcanized.html'; | ||
//options.input = path.resolve('resume.template'); | ||
function render(resume) { | ||
var css = fs.readFileSync(__dirname + "/style.css", "utf-8"); | ||
var template = fs.readFileSync(__dirname + "/resume.template", "utf-8"); | ||
return Handlebars.compile(template)({ | ||
if(resume.basics && resume.basics.email) { | ||
resume.basics.gravatar = gravatar.url(resume.basics.email, { | ||
s: '100', | ||
r: 'pg', | ||
d: 'mm' | ||
}); | ||
} | ||
var resumeDataTemplate = fs.readFileSync(path.resolve(path.join('polymer-tutorial-master','finished','resume-data-template.html')), "utf-8"); | ||
var resumeData = Handlebars.compile(resumeDataTemplate)({resume: JSON.stringify(resume)}); | ||
console.log(JSON.stringify(resume)) | ||
fs.writeFileSync(path.resolve(path.join(__dirname, 'polymer-tutorial-master','finished','resume-data.html')), resumeData); | ||
/*return Handlebars.compile(template)({ | ||
css: css, | ||
resume: resume | ||
});*/ | ||
console.log('vulcanize'); | ||
vulcan.setOptions(options, function(err) { | ||
//console.log(arguments); | ||
vulcan.processDocument(); | ||
}); | ||
var file = fs.readFileSync(__dirname + '/vulcanized.html', 'utf8'); | ||
// console.log(file); | ||
return file; | ||
} | ||
@@ -12,0 +45,0 @@ |
{ | ||
"name": "jsonresume-theme-polymer", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Boilerplate theme for JSON Resume", | ||
@@ -12,5 +12,7 @@ "author": "Mattias Erming", | ||
"dependencies": { | ||
"gravatar": "^1.0.6", | ||
"handlebars": "^2.0.0-alpha.4", | ||
"resume-schema": "jsonresume/resume-schema" | ||
"resume-schema": "jsonresume/resume-schema", | ||
"vulcanize": "^0.4.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
2688339
343
3622
4
1
2
+ Addedgravatar@^1.0.6
+ Addedvulcanize@^0.4.1
+ AddedCSSselect@0.4.1(transitive)
+ AddedCSSwhat@0.4.7(transitive)
+ Addedabbrev@1.1.1(transitive)
+ Addedalign-text@0.1.4(transitive)
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedblueimp-md5@2.19.0(transitive)
+ Addedcamelcase@1.2.15.3.1(transitive)
+ Addedcenter-align@0.1.3(transitive)
+ Addedcheerio@0.17.0(transitive)
+ Addedclean-css@2.2.23(transitive)
+ Addedcliui@2.1.06.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcommander@2.2.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddom-serializer@0.0.10.2.2(transitive)
+ Addeddomelementtype@1.1.32.3.0(transitive)
+ Addeddomhandler@2.2.1(transitive)
+ Addeddomutils@1.4.31.5.1(transitive)
+ Addedemail-validator@2.0.4(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedentities@1.0.01.1.22.2.0(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedgravatar@1.8.2(transitive)
+ Addedhtmlparser2@3.7.3(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedkind-of@3.2.2(transitive)
+ Addedlazy-cache@1.0.4(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedlodash@2.4.2(transitive)
+ Addedlongest@1.0.1(transitive)
+ Addednopt@3.0.6(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedquerystring@0.2.0(transitive)
+ Addedreadable-stream@1.1.14(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedrequire-main-filename@2.0.0(transitive)
+ Addedright-align@0.1.3(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addeduglify-js@2.8.29(transitive)
+ Addeduglify-to-browserify@1.0.2(transitive)
+ Addedvulcanize@0.4.3(transitive)
+ Addedwhich-module@2.0.1(transitive)
+ Addedwindow-size@0.1.0(transitive)
+ Addedwordwrap@0.0.2(transitive)
+ Addedwrap-ansi@6.2.0(transitive)
+ Addedy18n@4.0.3(transitive)
+ Addedyargs@15.4.13.10.0(transitive)
+ Addedyargs-parser@18.1.3(transitive)