Refactor scripts (#2465)
* Refactor all kinds of scripts * Update docs to ensure linter passes
This commit is contained in:
parent
62172cbe08
commit
48e7fd1711
23 changed files with 1695 additions and 340 deletions
10
scripts/watch-docs.js
Normal file
10
scripts/watch-docs.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
"use strict"
|
||||
|
||||
const path = require("path")
|
||||
const chokidar = require("chokidar")
|
||||
const generate = require("./generate-docs")
|
||||
const command = require("./_command")
|
||||
|
||||
chokidar.watch(path.resolve(__dirname, "../docs")).on("all", () => {
|
||||
command.run(() => generate())
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue