File: sync-docs.js

package info (click to toggle)
node-espree 9.4.1~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,068 kB
  • sloc: javascript: 211,653; makefile: 33; sh: 1; xml: 1
file content (28 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
 * @fileoverview Build file
 * @author nzakas
 */
/* global cp, echo, rm */

/* eslint no-console: 0*/
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------

import "shelljs/make.js";


//------------------------------------------------------------------------------
// Data
//------------------------------------------------------------------------------

const DOCS_DIR = "./docs";

//------------------------------------------------------------------------------
// Tasks
//------------------------------------------------------------------------------

echo("Syncing README.md from root with docs/README.md");
rm("-r", `${DOCS_DIR}/README.md`);
cp("README.md", DOCS_DIR);
echo("Done. ");