Skip to content

Commit

Permalink
change: package.json enhancement
Browse files Browse the repository at this point in the history
- add `scripts` for something like `npm test` and `npm run grunt`
- add missing devDep: `grunt-cli`
  • Loading branch information
zhuangya committed Dec 24, 2015
1 parent 78a8b9c commit 1a6d7d5
Show file tree
Hide file tree
Showing 12 changed files with 138 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
tests/sandbox/
docs/
npm-debug.log
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"type": "git",
"url": "https://github.com/hacksalot/HackMyResume.git"
},
"scripts": {
"test": "mocha && grunt",
"grunt": "grunt"
},
"keywords": [
"resume",
"CV",
Expand Down Expand Up @@ -61,6 +65,7 @@
"devDependencies": {
"chai": "*",
"grunt": "*",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.7.0",
"grunt-contrib-jshint": "^0.11.3",
"grunt-contrib-yuidoc": "^0.10.0",
Expand Down
File renamed without changes.
File renamed without changes.
130 changes: 130 additions & 0 deletions test/sandbox/richard-hendriks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"basics": {
"name": "Richard Hendriks",
"label": "Programmer",
"summary": "Richard hails from Tulsa. He has earned degrees from the University of Oklahoma and Stanford. (Go Sooners and Cardinals!) Before starting Pied Piper, he worked for Hooli as a part time software developer. While his work focuses on applied information theory, mostly optimizing lossless compression schema of both the length-limited and adaptive variants, his non-work interests range widely, everything from quantum computing to chaos theory. He could tell you about it, but THAT would NOT be a “length-limited” conversation!",
"website": "http://richardhendricks.com",
"phone": "(912) 555-4321",
"email": "richard.hendriks@gmail.com",
"picture": "",
"location": {
"address": "2712 Broadway St",
"postalCode": "CA 94115",
"city": "San Francisco",
"countryCode": "US",
"region": "California"
},
"profiles": [
{
"network": "Twitter",
"username": "neutralthoughts",
"url": ""
},
{
"network": "SoundCloud",
"username": "dandymusicnl",
"url": "https://soundcloud.com/dandymusicnl"
}
]
},
"work": [
{
"company": "Pied Piper",
"website": "http://piedpiper.com",
"position": "CEO/President",
"startDate": "2013-12-01",
"endDate": "2014-12-01",
"summary": "Pied Piper is a multi-platform technology based on a proprietary universal compression algorithm that has consistently fielded high Weisman Scores™ that are not merely competitive, but approach the theoretical limit of lossless compression.",
"highlights": [
"Build an algorithm for artist to detect if their music was violating copy right infringement laws",
"Successfully won Techcrunch Disrupt",
"Optimized an algorithm that holds the current world record for Weisman Scores"
]
}
],
"education": [
{
"institution": "University of Oklahoma",
"gpa": "4.0",
"courses": [
"DB1101 - Basic SQL",
"CS2011 - Java Introduction"
],
"startDate": "2011-06-01",
"endDate": "2014-01-01",
"area": "Information Technology",
"studyType": "Bachelor"
}
],
"skills": [
{
"name": "Web Development",
"level": "Master",
"keywords": [
"HTML",
"CSS",
"Javascript"
]
},
{
"name": "Compression",
"level": "Master",
"keywords": [
"Mpeg",
"MP4",
"GIF"
]
}
],
"volunteer": [
{
"organization": "CoderDojo",
"position": "Teacher",
"startDate": "2012-01-01",
"endDate": "2013-01-01",
"website": "http://coderdojo.com/",
"summary": "Global movement of free coding clubs for young people.",
"highlights": [
"Awarded 'Teacher of the Month'"
]
}
],
"awards": [
{
"title": "Digital Compression Pioneer Award",
"date": "2014-11-01",
"awarder": "Techcrunch",
"summary": "There is no spoon."
}
],
"publications": [
{
"name": "Video compression for 3d media",
"publisher": "Hooli",
"releaseDate": "2014-10-01",
"website": "http://en.wikipedia.org/wiki/Silicon_Valley_(TV_series)",
"summary": "Innovative middle-out compression algorithm that changes the way we store data."
}
],
"interests": [
{
"name": "Wildlife",
"keywords": [
"Ferrets",
"Unicorns"
]
}
],
"references": [
{
"name": "Erlich Bachman",
"reference": "It is my pleasure to recommend Richard, his performance working as a consultant for Main St. Company proved that he will be a valuable addition to any company."
}
],
"languages": [
{
"language": "English",
"fluency": "Native speaker"
}
]
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test-fresh-sheet.js → test/test-fresh-sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('jane-doe.json (FRESH)', function () {

it('should not be modified after saving', function() {
var savedSheet = new FRESHResume().open('tests/sandbox/jane-q-fullstacker.json');
_sheet.stringify().should.equal( savedSheet.stringify() )
_sheet.stringify().should.equal( savedSheet.stringify() );
});

it('should validate against the FRESH resume schema', function() {
Expand Down
2 changes: 1 addition & 1 deletion tests/test-jrs-sheet.js → test/test-jrs-sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function testResume( opts ) {

it('should not be modified after saving', function() {
var savedSheet = new JRSResume().open( 'tests/sandbox/' + opts.title + '.json' );
_sheet.stringify().should.equal( savedSheet.stringify() )
_sheet.stringify().should.equal( savedSheet.stringify() );
});

it('should ' + (opts.isValid ? '' : 'NOT ') + 'validate against the JSON Resume schema', function() {
Expand Down
File renamed without changes.

0 comments on commit 1a6d7d5

Please sign in to comment.