Skip to content

Commit

Permalink
Addind package.json for npm support
Browse files Browse the repository at this point in the history
  • Loading branch information
greird committed Feb 15, 2016
1 parent 3e150d7 commit 3d996a9
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
4 changes: 4 additions & 0 deletions _testfiles/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ <h3>guitar.getChordInfo("131211")</h3>
<h3>guitar.getChordsList("G", 5)</h3>
<pre><script>
var chordsList = guitar.getChordsList("G");
var count = 0;
for (var types in chordsList.chordList) {
count += chordsList.chordList[types].length;
}document.write("<h4>" + count + " chords found.</h4>");
for (var key in chordsList) {
document.write('<b>' + key + ' => </b>');
if (typeof chordsList[key] === "object") {
Expand Down
31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "chordictionary",
"version": "0.4.0",
"description": "A Javascript library for dynamic chord recognition, generation and graphic representation for any fretted instrument.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/greird/chordictionaryjs.git"
},
"keywords": [
"music",
"score",
"chord",
"note",
"guitar",
"instrument"
],
"author": "Hubert Fauconnier",
"license": "MIT",
"bugs": {
"url": "https://github.com/greird/chordictionaryjs/issues"
},
"homepage": "https://www.chordictionaryjs.com",
"dependencies": {},
"devDependencies" : {
"uglify-js": "*"
}
}
2 changes: 1 addition & 1 deletion source/chordictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@
}
}

// Sort the chord that matches the criterias
// Sort and filter the chords according to the previously defined criterias
var sorted = false;
while (sorted === false) {
// Basic chord
Expand Down

0 comments on commit 3d996a9

Please sign in to comment.