Add formatting

- Add format script
- Format all files
- Add .prettierignore
- Add .prettierrc.json
- Add Prettier dev dependency
This commit is contained in:
Rafael Bardini 2020-07-05 14:19:26 +02:00
parent 12d28f3dc8
commit a7a8ca14b3
10 changed files with 63 additions and 67 deletions

1
.prettierignore Normal file
View File

@ -0,0 +1 @@
tap-snapshots

6
.prettierrc.json Normal file
View File

@ -0,0 +1,6 @@
{
"arrowParens": "avoid",
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}

View File

@ -1,5 +1,4 @@
jsonresume-theme-even # jsonresume-theme-even
=====================
[![npm package version](https://img.shields.io/npm/v/jsonresume-theme-even.svg)](https://www.npmjs.com/package/jsonresume-theme-even) [![npm package version](https://img.shields.io/npm/v/jsonresume-theme-even.svg)](https://www.npmjs.com/package/jsonresume-theme-even)
[![Dependency status](https://img.shields.io/david/rbardini/jsonresume-theme-even.svg)](https://david-dm.org/rbardini/jsonresume-theme-even) [![Dependency status](https://img.shields.io/david/rbardini/jsonresume-theme-even.svg)](https://david-dm.org/rbardini/jsonresume-theme-even)

View File

@ -1,28 +1,28 @@
var fs = require("fs"); var fs = require('fs')
var Handlebars = require("handlebars"); var Handlebars = require('handlebars')
module.exports = { module.exports = {
render: render render: render,
};
function render(resume) {
var css = fs.readFileSync(__dirname + "/style.css", "utf-8");
var template = fs.readFileSync(__dirname + "/resume.hbs", "utf-8");
return Handlebars.compile(template)({
css: css,
resume: resume
});
} }
Handlebars.registerHelper("formatDate", function(dateString) { function render(resume) {
const date = new Date(dateString); var css = fs.readFileSync(__dirname + '/style.css', 'utf-8')
return date.toLocaleDateString("en", { var template = fs.readFileSync(__dirname + '/resume.hbs', 'utf-8')
month: "short", return Handlebars.compile(template)({
year: "numeric" css: css,
}); resume: resume,
}); })
}
Handlebars.registerHelper("join", function(arr, separator) { Handlebars.registerHelper('formatDate', function (dateString) {
separator = typeof separator === "string" ? separator : ", "; const date = new Date(dateString)
return arr.join(separator); return date.toLocaleDateString('en', {
}); month: 'short',
year: 'numeric',
})
})
Handlebars.registerHelper('join', function (arr, separator) {
separator = typeof separator === 'string' ? separator : ', '
return arr.join(separator)
})

6
package-lock.json generated
View File

@ -1938,6 +1938,12 @@
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
"dev": true "dev": true
}, },
"prettier": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.0.5.tgz",
"integrity": "sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==",
"dev": true
},
"progress": { "progress": {
"version": "2.0.3", "version": "2.0.3",
"resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",

View File

@ -18,6 +18,7 @@
"style.css" "style.css"
], ],
"scripts": { "scripts": {
"format": "prettier --write .",
"lint": "eslint .", "lint": "eslint .",
"test": "tap" "test": "tap"
}, },
@ -26,6 +27,7 @@
}, },
"devDependencies": { "devDependencies": {
"eslint": "7.4.0", "eslint": "7.4.0",
"prettier": "2.0.5",
"tap": "14.10.7" "tap": "14.10.7"
} }
} }

View File

@ -1,8 +1,9 @@
@font-face { @font-face {
font-family: "Octicons"; font-family: 'Octicons';
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
src: url("data:font/woff;base64,d09GRgABAAAAAAWgAAsAAAAABVQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIMrGNtYXAAAAFoAAAAXAAAAFzxE/EEZ2FzcAAAAcQAAAAIAAAACAAAABBnbHlmAAABzAAAAXwAAAF8tFkZ3Ghl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AQAAAAAACgAaAJYAAwABBAkAAQAQAAgAAwABBAkAAgAOAHAAAwABBAkAAwAQAEEAAwABBAkABAAQAIYAAwABBAkABQAWACMAAwABBAkABgAQAFkAAwABBAkACgA0ALBvY3RpY29ucwBvAGMAdABpAGMAbwBuAHNWZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBvY3RpY29ucwBvAGMAdABpAGMAbwBuAHNvY3RpY29ucwBvAGMAdABpAGMAbwBuAHNSZWd1bGFyAFIAZQBnAHUAbABhAHJvY3RpY29ucwBvAGMAdABpAGMAbwBuAHNGb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
format('woff');
} }
html { html {
font-size: 14px; font-size: 14px;
@ -28,12 +29,12 @@ li {
list-style: none; list-style: none;
} }
li:before { li:before {
content: "\f052"; content: '\f052';
float: left; float: left;
font: 13px Octicons; font: 13px Octicons;
margin-top: 6px; margin-top: 6px;
margin-left: -20px; margin-left: -20px;
opacity: .1; opacity: 0.1;
position: absolute; position: absolute;
} }
blockquote { blockquote {
@ -97,7 +98,7 @@ h4 span:first-child {
font-weight: bold; font-weight: bold;
} }
#education .area:before { #education .area:before {
content: "\f0d7"; content: '\f0d7';
font: 16px Octicons; font: 16px Octicons;
margin-right: 6px; margin-right: 6px;
vertical-align: bottom; vertical-align: bottom;
@ -156,7 +157,7 @@ h4 span:first-child {
text-align: left; text-align: left;
} }
#publications .website a:before { #publications .website a:before {
content: "View publication"; content: 'View publication';
} }
} }
@media (max-width: 480px) { @media (max-width: 480px) {

View File

@ -17,10 +17,11 @@ exports[`test/render.js TAP renders a resume > must match snapshot 1`] = `
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" /> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" />
<style> <style>
@font-face { @font-face {
font-family: "Octicons"; font-family: 'Octicons';
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
src: url("data:font/woff;base64,d09GRgABAAAAAAWgAAsAAAAABVQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIMrGNtYXAAAAFoAAAAXAAAAFzxE/EEZ2FzcAAAAcQAAAAIAAAACAAAABBnbHlmAAABzAAAAXwAAAF8tFkZ3GhlYWQAAANIAAAANgAAADYYMkpraGhlYQAAA4AAAAAkAAAAJAfBA8dobXR4AAADpAAAABgAAAAYDAAAAWxvY2EAAAO8AAAADgAAAA4A5gBgbWF4cAAAA8wAAAAgAAAAIAAKAFBuYW1lAAAD7AAAAZIAAAGSxxxndHBvc3QAAAWAAAAAIAAAACAAAwAAAAMCqwGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8NcDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAEAAAAAMAAgAAgAEAAEAIPBS8Nf//f//AAAAAAAg8FLw1//9//8AAf/jD7IPLgADAAEAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAwAIAAsAAGwAAEzQ3PgE3NjMyFx4BFxYVFAcOAQcGIyInLgEnJgAUFEYvLjU1Li9GFBQUFEYvLjU1Li9GFBQBwDUuL0YUFBQURi8uNTUuL0YUFBQURi8uAAMAAQCZA/8DDgAzAEEATQAAAQcFHgEVFAYHBQYiJyUVHgEVFAYHHgEdARQiPQE0NjcuATU0Njc1Jy4BNTQ2NyUyNjMyFgEXIxYyPwEVFAYjIiY1ExQWMzI2NTQmIy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oqDMAAAAADaioMwAAAAAAP/Aw4AAAAIAAIAAAAAAAAAAQAAA8D/wAAABAAAAAAAA/8AAQAAAAAAAAAAAAAAAAAAAAYEAAAAAAAAAAAAAAACAAAAAgAAAAQAAAEAAAAAAAoAFAAeAEwAvgAAAAEAAAAGAE4AAwAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAIAAAAAQAAAAAAAgAHAGkAAQAAAAAAAwAIADkAAQAAAAAABAAIAH4AAQAAAAAABQALABgAAQAAAAAABgAIAFEAAQAAAAAACgAaAJYAAwABBAkAAQAQAAgAAwABBAkAAgAOAHAAAwABBAkAAwAQAEEAAwABBAkABAAQAIYAAwABBAkABQAWACMAAwABBAkABgAQAFkAAwABBAkACgA0ALBvY3RpY29ucwBvAGMAdABpAGMAbwBuAHNWZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBvY3RpY29ucwBvAGMAdABpAGMAbwBuAHNvY3RpY29ucwBvAGMAdABpAGMAbwBuAHNSZWd1bGFyAFIAZQBnAHUAbABhAHJvY3RpY29ucwBvAGMAdABpAGMAbwBuAHNGb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
format('woff');
} }
html { html {
font-size: 14px; font-size: 14px;
@ -46,12 +47,12 @@ li {
list-style: none; list-style: none;
} }
li:before { li:before {
content: "\\f052"; content: '\\f052';
float: left; float: left;
font: 13px Octicons; font: 13px Octicons;
margin-top: 6px; margin-top: 6px;
margin-left: -20px; margin-left: -20px;
opacity: .1; opacity: 0.1;
position: absolute; position: absolute;
} }
blockquote { blockquote {
@ -115,7 +116,7 @@ h4 span:first-child {
font-weight: bold; font-weight: bold;
} }
#education .area:before { #education .area:before {
content: "\\f0d7"; content: '\\f0d7';
font: 16px Octicons; font: 16px Octicons;
margin-right: 6px; margin-right: 6px;
vertical-align: bottom; vertical-align: bottom;
@ -174,7 +175,7 @@ h4 span:first-child {
text-align: left; text-align: left;
} }
#publications .website a:before { #publications .website a:before {
content: "View publication"; content: 'View publication';
} }
} }
@media (max-width: 480px) { @media (max-width: 480px) {

View File

@ -1,9 +1,9 @@
const { test } = require('tap') const { test } = require('tap')
const { render } = require('..'); const { render } = require('..')
const resume = require('./resume.json') const resume = require('./resume.json')
test('renders a resume', t => { test('renders a resume', t => {
t.matchSnapshot(render(resume)); t.matchSnapshot(render(resume))
t.end(); t.end()
}) })

View File

@ -53,9 +53,7 @@
"startDate": "2012-01-01", "startDate": "2012-01-01",
"endDate": "2013-01-01", "endDate": "2013-01-01",
"summary": "Global movement of free coding clubs for young people.", "summary": "Global movement of free coding clubs for young people.",
"highlights": [ "highlights": ["Awarded 'Teacher of the Month'"]
"Awarded 'Teacher of the Month'"
]
} }
], ],
"education": [ "education": [
@ -67,10 +65,7 @@
"startDate": "2011-06-01", "startDate": "2011-06-01",
"endDate": "2014-01-01", "endDate": "2014-01-01",
"gpa": "4.0", "gpa": "4.0",
"courses": [ "courses": ["DB1101 - Basic SQL", "CS2011 - Java Introduction"]
"DB1101 - Basic SQL",
"CS2011 - Java Introduction"
]
} }
], ],
"awards": [ "awards": [
@ -94,20 +89,12 @@
{ {
"name": "Web Development", "name": "Web Development",
"level": "Master", "level": "Master",
"keywords": [ "keywords": ["HTML", "CSS", "Javascript"]
"HTML",
"CSS",
"Javascript"
]
}, },
{ {
"name": "Compression", "name": "Compression",
"level": "Master", "level": "Master",
"keywords": [ "keywords": ["Mpeg", "MP4", "GIF"]
"Mpeg",
"MP4",
"GIF"
]
} }
], ],
"languages": [ "languages": [
@ -119,10 +106,7 @@
"interests": [ "interests": [
{ {
"name": "Wildlife", "name": "Wildlife",
"keywords": [ "keywords": ["Ferrets", "Unicorns"]
"Ferrets",
"Unicorns"
]
} }
], ],
"references": [ "references": [
@ -140,15 +124,11 @@
"Built by all women team of newbie programmers", "Built by all women team of newbie programmers",
"Using modern technologies such as GoogleMaps, Chrome Extension and Javascript" "Using modern technologies such as GoogleMaps, Chrome Extension and Javascript"
], ],
"keywords": [ "keywords": ["GoogleMaps", "Chrome Extension", "Javascript"],
"GoogleMaps", "Chrome Extension", "Javascript"
],
"startDate": "2016-08-24", "startDate": "2016-08-24",
"endDate": "2016-08-24", "endDate": "2016-08-24",
"url": "missdirection.example.com", "url": "missdirection.example.com",
"roles": [ "roles": ["Team lead", "Designer"],
"Team lead", "Designer"
],
"entity": "Smoogle", "entity": "Smoogle",
"type": "application" "type": "application"
} }