Use npm scripts for travis commands

pull/258/head
Richard Littauer 6 years ago
parent db69499594
commit 4b5cad207a

@ -7,6 +7,5 @@ before_script:
script: script:
- awesome_bot README.md --allow-dupe --allow-redirect - awesome_bot README.md --allow-dupe --allow-redirect
- awesome_bot README_*.md --allow-dupe --allow-redirect - awesome_bot README_*.md --allow-dupe --allow-redirect
- node node_modules/doctoc/doctoc.js --github README.md README_*.md - npm run toc
- test -z "`git diff -- README.md`" - npm run diff
- test -z "`git diff -- README_*.md`"

@ -3,6 +3,10 @@
"name": "git-flight-rules", "name": "git-flight-rules",
"version": "1.0.0", "version": "1.0.0",
"description": "Flight rules for git", "description": "Flight rules for git",
"scripts": {
"toc": "doctoc --github README.md README_*.md",
"diff": "test -z \"`git diff -- README.md`\" && test -z \"`git diff -- README_*.md`\""
},
"devDependencies": { "devDependencies": {
"doctoc": "^1.3.0", "doctoc": "^1.3.0",
"anchor-markdown-header": "thlorenz/anchor-markdown-header#master" "anchor-markdown-header": "thlorenz/anchor-markdown-header#master"

Loading…
Cancel
Save