Skip to content

Commit

Permalink
npm task to run sed + jshint, #13
Browse files Browse the repository at this point in the history
* npm 'lint' task to run jshint
* fixes #13 Neuinstallation funktioniert nicht mehr durch jshint-Kommentare
* remove grunt file and installation line in .travis.yml
* remove jshintrc, since boss option is no longer needed
  • Loading branch information
kba authored and zuphilip committed Apr 7, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 62d9a54 commit 62a2198
Showing 8 changed files with 4 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
*~
3 changes: 0 additions & 3 deletions .jshintrc

This file was deleted.

2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
language: node_js
node_js:
- "0.12"
before_script:
- npm install grunt-cli -g
2 changes: 0 additions & 2 deletions BIBFRAME.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* jshint ignore:start */
{
"translatorID": "292d45bb-f3c7-428d-aed7-22f437b7fce9",
"label": "BIBFRAME",
@@ -15,7 +14,6 @@
"browserSupport": "gcsiv",
"lastUpdated": "2014-12-19 21:12:00"
}
/* jshint ignore:end */

/*
***** BEGIN LICENSE BLOCK *****
2 changes: 0 additions & 2 deletions MARC21XML.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* jshint ignore:start */
{
"translatorID": "ce0ab080-7d72-4fa3-ab4b-4bd8950f3379",
"label": "MARC21XML",
@@ -15,7 +14,6 @@
"browserSupport": "g",
"lastUpdated": "2014-09-07 12:58:51"
}
/* jshint ignore:end */

// DISCLAIMER:
// There are different cataloguing rules, specification of MARC dialects,
2 changes: 0 additions & 2 deletions PicaSWB.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* jshint ignore:start */
{
"translatorID": "2edf7a1b-eded-48d7-ae11-7126fd1c1b07",
"label": "PicaSWB",
@@ -12,7 +11,6 @@
"browserSupport": "gcs",
"lastUpdated": "2016-01-23 13:10:00"
}
/* jshint ignore:end */

// Zotero Export Translator für das Pica Intern Format
// (wie es im SWB Verbund benutzt wird)
15 changes: 0 additions & 15 deletions gruntfile.js

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -4,11 +4,9 @@
"description": "Erweiterung von Zotero für die Katalogisierung in Bibliotheken",
"main": "PicaSWB.js",
"scripts": {
"test": "grunt test"
"test": "for f in BIBFRAME.js MARC21XML.js PicaSWB.js;do sed '1,/^}/d' $f|jshint -;done"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.11.3",
"grunt-contrib-nodeunit": "~0.4.1"
"jshint": "^2.9.1"
}
}

0 comments on commit 62a2198

Please sign in to comment.