| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,14 +32,14 @@ A proposed change should be focused and concise. Please adhere to the following | |||
| 32 | 32 | This project contains scripts that will help you during development. All scripts can be executed with `npm run [script]`. | |
| 33 | 33 | The following table provides an overview of the most important scripts: | |
| 34 | 34 | ||
| 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. | ||
| 43 | 43 | ||
| 44 | 44 | ||
| 45 | 45 | ### Testing :heavy_check_mark: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,12 +45,13 @@ | |||
| 45 | 45 | "build": "run-s build:*", | |
| 46 | 46 | "build:js": "cross-env NODE_ENV=production ts-node-script esbuild", | |
| 47 | 47 | "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", | ||
| 49 | 50 | "dev": "npm run copy && run-p start watch", | |
| 50 | 51 | "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", | ||
| 54 | 55 | "start": "hs -s", | |
| 55 | 56 | "watch": "run-p watch:*", | |
| 56 | 57 | "watch:eslint": "esw -w --ext .js --color src demo/src", | |
@@ -77,7 +78,7 @@ | |||
| 77 | 78 | "@types/yargs": "15.x.x", | |
| 78 | 79 | "ava": "3.x.x", | |
| 79 | 80 | "chokidar": "3.x.x", | |
| 80 | - "copyfiles": "2.x.x", | ||
| 81 | + "cpy-cli": "3.x.x", | ||
| 81 | 82 | "cross-env": "7.x.x", | |
| 82 | 83 | "dat.gui": "0.x.x", | |
| 83 | 84 | "del-cli": "3.x.x", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments