Skip to content

Commit e567028

Browse files
authored
Bump to latest version of spec-md + npm run watch (#417)
The most recent version of spec-md fixes a few bugs and adds keyword highlighting which makes reading algorithms a bit more pleasent. This also introduces nodemon and an `npm run watch` script which rebuilds output when markdown files change. Also bumps node to latest version for travis builds
1 parent 593dd2c commit e567028

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ git:
22
depth: 5
33

44
language: node_js
5-
node_js: 6
5+
node_js: 9
66

77
deploy:
88
provider: script

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
},
1818
"scripts": {
1919
"test": "spec-md spec/GraphQL.md > /dev/null",
20-
"build": "mkdir -p out; spec-md spec/GraphQL.md > out/index.html"
20+
"build": "mkdir -p out; spec-md spec/GraphQL.md > out/index.html",
21+
"watch": "mkdir -p out; nodemon --exec 'spec-md > out/index.html' spec/GraphQL.md"
2122
},
2223
"devDependencies": {
23-
"spec-md": "0.5.1"
24+
"nodemon": "1.17.1",
25+
"spec-md": "0.6.0"
2426
}
2527
}

0 commit comments

Comments
 (0)