mithril-vndb/scripts
Pierre-Yves Gérardy 4a3a486d80
Pimp the docs linter (and assorted changes) (#2553)
### Pimp the docs linter (and assorted changes)

 #### `scripts/lint-docs.js`

- Add an optional cache for faster runs
- Add a final report
- Don't return anything from `exec()`
- Cover more files

 #### `scripts/_command.js`

- Look for a "--cache" option

 #### `package.json` scripts

- Added `watch:lint-docs`
- Added `cleanup:lint` to remove the eslint and lint-docs cache files
- Changed `lint:docs` to use the `--cache` option
- Added `test:js` so that we can run the test suite without the linter
- Changed `test` to defer to `test:js`

 #### Actual lint fixes:

- Bad link in a migration guide
- The unicode dashes in the "https://en.wikipedia.org/wiki/Subject–verb–object" are not escaped by marked

### Some more lint-docs pimping

#### `scripts/lint-docs.js`

- some code reorg and cleanup (take a hint from the local coding conventions)
- fix misc bugs
- pass a User-Agent header to the requests
- even nicer reporting

#### `package.json`

- bump the @babel/parser dep to the latest

#### Docs

- tweaks based on lints missed due to previous bugs

### Docs: use the github page for velocity.js, the home page has too many errors.

Co-Authored-By: Isiah Meadows <contact@isiahmeadows.com>
2019-12-19 23:40:52 +01:00
..
tests Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
.eslintrc.js Refactor the scripts to work as advertised 2019-08-17 21:58:57 -04:00
_bundler-impl.js Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
_command.js Pimp the docs linter (and assorted changes) (#2553) 2019-12-19 23:40:52 +01:00
_upstream.js Refactor the scripts to work as advertised 2019-08-17 21:58:57 -04:00
bundler-readme.md Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
bundler.js Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
generate-docs.js Fix a docs generation bug [skip ci] 2019-08-18 14:53:53 -04:00
lint-docs.js Pimp the docs linter (and assorted changes) (#2553) 2019-12-19 23:40:52 +01:00
minify-stream.js Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
release.js Update release docs [skip ci] 2019-08-21 19:01:12 -04:00
update-docs.js Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00