Skip to content

Commit

Permalink
Setup jsonlint tests and configuration for TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatWizard committed Mar 17, 2018
1 parent 3401597 commit 1ba0346
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
# dependencies
node_modules

# Only apps should have lockfiles
yarn.lock
package-lock.json

# misc
npm-debug.log*
yarn-error.log

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
language: node_js
node_js:
# we recommend testing addons with the same minimum supported node version as Ember CLI
# so that your addon works for all apps
- "4"

sudo: false
dist: trusty

cache:
directories:
- $HOME/.npm

before_install:
- npm config set spin false
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ update:
node scripts/importer $(REGISTRY_CACHE) data/json

test:
jshint data/json/*.json
find ./data/json/*.json -exec ./node_modules/.bin/jsonlint -q {} \;

.PHONY: update test
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "language-subtag-registry",
"version": "0.3.18",
"implements": ["CommonJS/Modules/1.0"],
"implements": [
"CommonJS/Modules/1.0"
],
"description": "Full BCP 47 language subtag data from the official IANA repository, in JSON format with multiple indices.",
"homepage": "https://github.com/mattcg/language-subtag-registry",
"repository": {
Expand All @@ -12,6 +14,10 @@
{
"name": "Matthew Caruana Galizia",
"email": "[email protected]"
},
{
"name": "Guillaume Gérard",
"email": "[email protected]"
}
],
"licenses": [
Expand All @@ -29,5 +35,8 @@
"subtags",
"rfc5646",
"language"
]
],
"devDependencies": {
"jsonlint": "1.x.x"
}
}

0 comments on commit 1ba0346

Please sign in to comment.