add linkchecker node scriopt to package.json scripts instead of ci script (#31)

fixes pantheon part of pan-3117

will enable more consistent experience when sample test scripts will be added to
package.json too.
Signed-off-by: Edward Evans <edward.evans@consensys.net>
pull/1/head
Nicolas MASSART 5 years ago committed by GitHub
parent 68cb7abe23
commit 689a559733
  1. 5
      .circleci/config.yml
  2. 1
      .gitignore
  3. 6
      package.json

@ -59,16 +59,13 @@ jobs:
keys:
- deps-{{ checksum "package.json" }}
- run:
# copy files into this volume
name: Install dependencies
command: |
npm install
- run:
# copy files into this volume
name: Run markdown link checker
command: |
find . -name \*.md ! -path "./node_modules/*" -exec ./node_modules/markdown-link-check/markdown-link-check -q -c link_check_conf.json {} \; > linkchecker.out 2>&1
! grep "ERROR:" ./linkchecker.out
npm run test:links
- save_cache:
paths:
- ./node_modules

1
.gitignore vendored

@ -3,3 +3,4 @@ site/
env/
*.out
node_modules/
.circleci/process.yml

@ -7,7 +7,11 @@
"doc": "docs"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test:links:check": "find . -name \\*.md ! -path \"./node_modules/*\" -exec ./node_modules/markdown-link-check/markdown-link-check -q -c link_check_conf.json {} \\; > linkchecker.out 2>&1",
"test:links:display": "cat ./linkchecker.out",
"test:links:verify": "! grep 'ERROR:' ./linkchecker.out",
"test:links": "npm run test:links:check && npm run test:links:display && npm run test:links:verify",
"test": "npm run test:links"
},
"repository": {
"type": "git",

Loading…
Cancel
Save