Move to a YAML-formated configuration

This commit is contained in:
Julien Reichardt 2017-10-21 14:02:27 +02:00
parent d78e81d76c
commit c783fa313c
4 changed files with 74 additions and 90 deletions

View File

@ -27,6 +27,7 @@
},
"dependencies": {
"font-awesome": "4.7.0",
"js-yaml": "3.10.0",
"material-design-icons": "3.0.1",
"material-icons": "0.1.0",
"npm-font-open-sans": "1.1.0",

70
resume/data.yml Executable file
View File

@ -0,0 +1,70 @@
/* #*/ export const PERSON = `
name:
first: John
middle:
last: Doe
about: Hi, my name is John Doe. I"m just about the most boring type of person you could
possibly imagine. I like collecting leaves from the tree in my back yard and documenting
each time I eat a peanut that is non-uniform. I am not a robot. Please hire me.
position: Software Developer
birth:
year: 1990
location: New York
experience:
- company: Company A
position: Developer
timeperiod: since January 2016
description: Programming and watching cute cat videos.
- company: Company B
position: Frontend Developer
timeperiod: January 2015 - December 2015
description: Fulfillment of extremely important tasks.
- company: Company C
position: Trainee
timeperiod: March 2014 - December 2014
description: Making coffee and baking cookies.
education:
- degree: Master of Arts
timeperiod: March 2012 - December 2013
description: Major in Hacking and Computer Penetration, University A, New York, USA.
- degree: Bachelor of Science
timeperiod: March 2009 - December 2011
description: Major in Engineering, University B, Los Angeles, USA.
# skill level goes 0 to 100
skills:
- name: HTML5
level: 99
- name: CSS3
level: 95
- name: JavaScript
level: 97
- name: Node.js
level: 93
- name: Angular 2
level: 60
- name: TypeScript
level: 80
- name: ES.Next
level: 70
- name: Docker
level: 99
skillDescription: Also proficient in Adobe Photoshop and Illustrator, grew up bilingual
(English and Klingon).
contact:
email: john.doe@email.com
phone: 0123 456789
street: 1234 Broadway
city: New York
website: johndoe.com
github: johnyD
# en, de, fr, pt, cn, it, es, th, pt-br, ru, sv, id, hu, pl, ja, nl, he, zh-tw, lt
lang: en
`

View File

@ -1,88 +0,0 @@
/* eslint-disable */
export const PERSON = {
name: {
first: 'John',
middle: '',
last: 'Doe',
},
about: 'Hi, my name is John Doe. I\'m just about the most boring type of person you could possibly imagine. I like collecting leaves from the tree in my back yard and documenting each time I eat a peanut that is non-uniform. I am not a robot. Please hire me.',
position: 'Software Developer',
birth: {
year: 1990,
location: 'New York'
},
experience: [{
company: 'Company A',
position: 'Developer',
timeperiod: 'since January 2016',
description: 'Programming and watching cute cat videos.'
},
{
company: 'Company B',
position: 'Frontend Developer',
timeperiod: 'January 2015 - December 2015',
description: 'Fulfillment of extremely important tasks.'
},
{
company: 'Company C',
position: 'Trainee',
timeperiod: 'March 2014 - December 2014',
description: 'Making coffee and baking cookies.'
}
],
education: [{
degree: 'Master of Arts',
timeperiod: 'March 2012 - December 2013',
description: 'Major in Hacking and Computer Penetration, University A, New York, USA.'
},
{
degree: 'Bachelor of Science',
timeperiod: 'March 2009 - December 2011',
description: 'Major in Engineering, University B, Los Angeles, USA.'
}
],
// skill level goes 0 to 100
skills: [{
name: 'HTML5',
level: '99'
},
{
name: 'CSS3',
level: '95'
},
{
name: 'JavaScript',
level: '97'
},
{
name: 'Node.js',
level: '93'
},
{
name: 'Angular 2',
level: '60'
},
{
name: 'TypeScript',
level: '80'
},
{
name: 'ES.Next',
level: '70'
},
{
name: 'Docker',
level: '99'
}
],
skillDescription: 'Also proficient in Adobe Photoshop and Illustrator, grew up bilingual (English and Klingon).',
contact: {
email: 'john.doe@email.com',
phone: '0123 456789',
street: '1234 Broadway',
city: 'New York',
website: 'johndoe.com',
github: 'johnyD'
},
lang: 'en' // en, de, fr, pt, cn, it, es, th, pt-br, ru, sv, id, hu, pl, ja, nl, he, zh-tw, lt
};

View File

@ -1,4 +1,5 @@
import { PERSON } from '../../resume/person';
import yaml from 'js-yaml';
import { PERSON } from '../../resume/data.yml';
import { terms } from '../terms';
// Called by templates to decrease redundancy
@ -7,7 +8,7 @@ function getVueOptions (name) {
name: name,
data () {
return {
person: PERSON,
person: yaml.load(PERSON),
terms: terms
};
},