Skip to content

Commit 3db492e

Browse files
author
Isaac Ramirez
committed
- summary changes:
- move spec folder to root - install standardjs & jsdocs - move dependencies to devDependencies - add linting scripts
1 parent ad027ea commit 3db492e

File tree

5 files changed

+1587
-155
lines changed

5 files changed

+1587
-155
lines changed

jasmine.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"!**/*nospec.js"
66
],
77
"helpers": [
8-
"spec/helpers/**/*.js"
8+
"../spec/helpers/**/*.js"
99
],
1010
"stopSpecOnExpectationFailure": false,
1111
"random": false

package.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"name": "algorithms-4th-javascript",
33
"version": "1.0.0",
44
"description": "Personal notes & JavaScript code for the book: Algorithms 4th edition by Robert Sedgewick and Kevin Wayne.",
5-
"main": "index.js",
65
"scripts": {
6+
"lint": "standard \"src/**/*.js\"",
7+
"lint:fix": "yarn lint --fix",
8+
"pretest": "yarn lint",
79
"test": "jasmine --config=jasmine.json"
810
},
911
"keywords": [
@@ -16,21 +18,23 @@
1618
"license": "ISC",
1719
"standard": {
1820
"globals": [
19-
"jasmine",
20-
"spyOn",
21-
"describe",
22-
"it",
23-
"expect",
21+
"TestCase",
22+
"afterEach",
2423
"beforeAll",
2524
"beforeEach",
26-
"afterEach",
27-
"TestCase"
25+
"describe",
26+
"expect",
27+
"it",
28+
"jasmine",
29+
"spyOn"
2830
]
2931
},
30-
"dependencies": {
32+
"devDependencies": {
3133
"d3": "^5.15.1",
32-
"jasmine": "^3.5.0",
33-
"jsdom": "^16.2.2",
34-
"mathjs": "^6.6.4"
34+
"jasmine": "^3.6.3",
35+
"jsdoc": "~3.6.6",
36+
"jsdom": "^16.4.0",
37+
"mathjs": "^8.0.1",
38+
"standard": "^16.0.1"
3539
}
3640
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)