Skip to content

Commit

Permalink
Merge pull request #43 from unexpectedjs/evaldown-and-align
Browse files Browse the repository at this point in the history
Switch to evaldown for examples and align plugin config with -dom.
  • Loading branch information
alexjeffburke committed Aug 16, 2020
2 parents 37475fb + d66937d commit 6590597
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
17 changes: 15 additions & 2 deletions .travis.yml
@@ -1,4 +1,8 @@
language: node_js

env:
- TARGET=test

node_js:
- 8
- 10
Expand All @@ -9,7 +13,16 @@ matrix:
include:
- name: Lint
node_js: 12
script: npm run lint
env:
- TARGET=lint
- name: Coverage
node_js: 12
env:
- TARGET=coverage
- name: Documentation
node_js: 12
env:
- TARGET=test-docs

script: npm run test:ci
script: npm run $TARGET
after_success: '<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js'
7 changes: 4 additions & 3 deletions bootstrap-unexpected-markdown.js
@@ -1,5 +1,6 @@
/* global unexpected:true */
unexpected = require('unexpected').clone().use(require('./lib/unexpected-set'));
unexpected.output.preferredWidth = 80;
/* global expect:true */
expect = require('unexpected').clone();
expect.output.preferredWidth = 80;
expect.use(require('./lib/unexpected-set'));

require('es6-set/implement');
13 changes: 7 additions & 6 deletions package.json
Expand Up @@ -5,12 +5,12 @@
"main": "lib/unexpected-set.js",
"scripts": {
"lint": "eslint . && prettier --check '**/*.{js,md}'",
"test": "mocha test/*.js `find documentation -name '*.md'`",
"test:ci": "npm run coverage",
"test": "mocha",
"test-docs": "evaldown --comment-marker unexpected-markdown --require ./bootstrap-unexpected-markdown.js --validate --reporter=spec ./documentation",
"coverage": "nyc --reporter=lcov --reporter=text --all -- npm test && echo google-chrome coverage/lcov-report/index.html",
"generate-site": "generate-site --require ./bootstrap-unexpected-markdown.js",
"update-examples": "generate-site --require ./bootstrap-unexpected-markdown.js --update-examples",
"deploy-site": "deploy-site.sh"
"update-examples": "evaldown --comment-marker unexpected-markdown --require ./bootstrap-unexpected-markdown.js --inplace ./documentation",
"deploy-site": "gh-pages -d site-build"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -39,12 +39,13 @@
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"evaldown": "^1.2.2",
"gh-pages": "^3.1.0",
"mocha": "^7.0.0",
"nyc": "^15.0.0",
"prettier": "~2.0.2",
"unexpected": "^11.0.0-4",
"unexpected-documentation-site-generator": "^6.0.0",
"unexpected-markdown": "^5.0.0"
"unexpected-documentation-site-generator": "^7.0.1"
},
"peerDependencies": {
"unexpected": "^10.37.4 || ^11.0.0-4"
Expand Down
2 changes: 0 additions & 2 deletions test/mocha.opts
@@ -1,5 +1,3 @@
--reporter spec
--recursive
--check-leaks
--require ./bootstrap-unexpected-markdown
--require unexpected-markdown

0 comments on commit 6590597

Please sign in to comment.