FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update scripts · codeTCbin25/postprocessing@e929e65 · GitHub

Commit e929e65

Browse files
committed
Update scripts
1 parent 63f6cb3 commit e929e65

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

‎.github/CONTRIBUTING.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ A proposed change should be focused and concise. Please adhere to the following
3232
This project contains scripts that will help you during development. All scripts can be executed with `npm run [script]`.
3333
The following table provides an overview of the most important scripts:
3434

35-
| Task | Description |
36-
|-------|-------------------------------------------------|
37-
| build | Builds the demo bundle. |
38-
| watch | Builds the demo bundle and listens for changes. |
39-
| dev | Runs the watch script and serves files locally. |
40-
| test | Generates production bundles and runs tests. |
41-
42-
__Note__: Setting `NODE_ENV` to `production` enables source code minification which slows down the build process. The `test` script does this automatically.
35+
| Task | Description |
36+
|-------|--------------------------------------------------------------|
37+
| build | Builds and minifies all bundles. |
38+
| watch | Lints source files, builds the demo and listens for changes. |
39+
| dev | Runs the watch script and serves files locally. |
40+
| test | Lints source files and runs unit tests. |
41+
42+
__Note__: Setting `NODE_ENV` to `production` enables source code minification which slows down the build process. The `build` script does this automatically.
4343

4444

4545
### Testing :heavy_check_mark:

‎package.json‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@
4545
"build": "run-s build:*",
4646
"build:js": "cross-env NODE_ENV=production ts-node-script esbuild",
4747
"clean": "del-cli build public tmp",
48-
"copy": "copyfiles -s -u 2 demo/static/**/* public/demo",
48+
"copy": "cpy --cwd=demo/static --parents **/* ../../public/demo",
49+
"deploy": "run-s copy doc",
4950
"dev": "npm run copy && run-p start watch",
5051
"doc": "esdoc",
51-
"lint": "eslint src demo/src --ext .js --fix",
52-
"prepublishOnly": "run-s test",
53-
"test": "run-s clean copy lint build ava doc",
52+
"lint": "eslint --ext .js --fix src demo/src",
53+
"prepublishOnly": "run-s clean build test doc",
54+
"test": "run-s lint ava",
5455
"start": "hs -s",
5556
"watch": "run-p watch:*",
5657
"watch:eslint": "esw -w --ext .js --color src demo/src",
@@ -77,7 +78,7 @@
7778
"@types/yargs": "15.x.x",
7879
"ava": "3.x.x",
7980
"chokidar": "3.x.x",
80-
"copyfiles": "2.x.x",
81+
"cpy-cli": "3.x.x",
8182
"cross-env": "7.x.x",
8283
"dat.gui": "0.x.x",
8384
"del-cli": "3.x.x",

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL