From b566627804e1758855c1c560936a8ced9fc17ff0 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Mon, 11 Sep 2017 21:53:21 +0200 Subject: [PATCH 1/4] Add "jsonhint" dependency --- .gitignore | 4 ++++ package.json | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 675cb3c5..40af94be 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,7 @@ Temporary Items *.css.map # End of https://www.gitignore.io/api/sass,macos,jekyll + + +# NPM dependencies +node_modules/ diff --git a/package.json b/package.json index 38d357d8..447c6abf 100644 --- a/package.json +++ b/package.json @@ -10,5 +10,8 @@ "main": "_data/simple-icons.json", "repository": "git@github.com:danleech/simple-icons.git", "author": "Dan Leech", - "license": "CCO" + "license": "CCO", + "devDependencies": { + "jsonlint": "^1.6.2" + } } From b194931025e1eca48ed4672a41fea4d5270c3adf Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Mon, 11 Sep 2017 21:56:40 +0200 Subject: [PATCH 2/4] Add NPM script Travis configuration for jsonlint --- .travis.yml | 11 +++++++++++ package.json | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..1f440be7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: node_js +node_js: + - "6" + +script: + - npm run jsonlint + +notifications: + email: + on_success: never + on_failure: change diff --git a/package.json b/package.json index 447c6abf..4c5c2226 100644 --- a/package.json +++ b/package.json @@ -13,5 +13,8 @@ "license": "CCO", "devDependencies": { "jsonlint": "^1.6.2" + }, + "scripts": { + "jsonlint": "jsonlint _data/simple-icons.json -q" } } From 4206841a2215f1923e75969fd35518a42b7a1659 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Mon, 11 Sep 2017 21:58:00 +0200 Subject: [PATCH 3/4] Invalidate _data/simple-icons.json to demonstrate Travis CI --- _data/simple-icons.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_data/simple-icons.json b/_data/simple-icons.json index fc986da6..233c503e 100644 --- a/_data/simple-icons.json +++ b/_data/simple-icons.json @@ -4,7 +4,7 @@ "title": "500px", "hex": "0099E5", "source": "https://about.500px.com/press" - }, + } { "title": "About.me", "hex": "044A75", From 7066981c99042afb20e02f9eaa86b7d98c8d3d86 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Wed, 13 Sep 2017 11:02:36 +0200 Subject: [PATCH 4/4] Correct mistake in _data/simple-icons.json --- _data/simple-icons.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_data/simple-icons.json b/_data/simple-icons.json index 233c503e..fc986da6 100644 --- a/_data/simple-icons.json +++ b/_data/simple-icons.json @@ -4,7 +4,7 @@ "title": "500px", "hex": "0099E5", "source": "https://about.500px.com/press" - } + }, { "title": "About.me", "hex": "044A75",