copy-file-util 0.1.7 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/copy-file.d.ts +1 -1
- package/dist/copy-file.js +1 -1
- package/dist/copy-file.umd.cjs +1 -1
- package/package.json +16 -14
package/README.md
CHANGED
|
@@ -55,8 +55,11 @@ Command-line flags:
|
|
|
55
55
|
| `--quiet` | Suppress informational messages. | N/A |
|
|
56
56
|
|
|
57
57
|
Examples:
|
|
58
|
-
- `copy-file app.js app.mjs --quiet
|
|
59
|
-
|
|
58
|
+
- `copy-file app.js app.mjs --quiet`<br>
|
|
59
|
+
Displays no output.
|
|
60
|
+
|
|
61
|
+
- `copy-file app.js --folder dist`<br>
|
|
62
|
+
Copies **app.js** into the **dist** folder.
|
|
60
63
|
|
|
61
64
|
### 4. Template variables
|
|
62
65
|
The *target* parameter can contain template variables, like `{{pkg.version}}` and `{{pkg.name}}`, which will be replaced with values with values from your project's **package.json** file.
|
|
@@ -70,6 +73,7 @@ Even though **copy-file-util** is primarily intended for build scripts, the pack
|
|
|
70
73
|
Example:
|
|
71
74
|
``` typescript
|
|
72
75
|
import { copyFile } from 'copy-file-util';
|
|
76
|
+
|
|
73
77
|
const result = copyFile.cp('src/web/api.html' { targetFile: 'docs/api-manual.html' });
|
|
74
78
|
console.log('Execution time:', result.duration, 'ms');
|
|
75
79
|
```
|
package/dist/copy-file.d.ts
CHANGED
package/dist/copy-file.js
CHANGED
package/dist/copy-file.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! copy-file-util
|
|
1
|
+
//! copy-file-util v1.0.1 ~~ https://github.com/center-key/copy-file-util ~~ MIT License
|
|
2
2
|
|
|
3
3
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copy-file-util",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -64,8 +64,10 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"runScriptsConfig": {
|
|
67
|
+
"clean": [
|
|
68
|
+
"rimraf build dist spec/fixtures/target"
|
|
69
|
+
],
|
|
67
70
|
"build": [
|
|
68
|
-
"rimraf build dist spec/fixtures/target **/.DS_Store",
|
|
69
71
|
"jshint . --exclude-path .gitignore",
|
|
70
72
|
"eslint --max-warnings 0 . --ext .ts",
|
|
71
73
|
"tsc",
|
|
@@ -75,29 +77,29 @@
|
|
|
75
77
|
]
|
|
76
78
|
},
|
|
77
79
|
"scripts": {
|
|
78
|
-
"pretest": "run-scripts build",
|
|
80
|
+
"pretest": "run-scripts clean build",
|
|
79
81
|
"test": "mocha spec/*.spec.js"
|
|
80
82
|
},
|
|
81
83
|
"dependencies": {
|
|
82
84
|
"chalk": "~5.2",
|
|
83
|
-
"cli-argv-util": "~0
|
|
84
|
-
"dna-engine": "~
|
|
85
|
+
"cli-argv-util": "~1.0",
|
|
86
|
+
"dna-engine": "~3.0",
|
|
85
87
|
"fancy-log": "~2.0",
|
|
86
|
-
"slash": "~5.
|
|
88
|
+
"slash": "~5.1"
|
|
87
89
|
},
|
|
88
90
|
"devDependencies": {
|
|
89
91
|
"@types/fancy-log": "~2.0",
|
|
90
|
-
"@types/node": "~
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
92
|
-
"@typescript-eslint/parser": "~5.
|
|
93
|
-
"add-dist-header": "~0
|
|
92
|
+
"@types/node": "~20.3",
|
|
93
|
+
"@typescript-eslint/eslint-plugin": "~5.59",
|
|
94
|
+
"@typescript-eslint/parser": "~5.59",
|
|
95
|
+
"add-dist-header": "~1.0",
|
|
94
96
|
"assert-deep-strict-equal": "~1.0",
|
|
95
97
|
"cpy-cli": "~4.2",
|
|
96
|
-
"eslint": "~8.
|
|
98
|
+
"eslint": "~8.43",
|
|
97
99
|
"jshint": "~2.13",
|
|
98
100
|
"mocha": "~10.2",
|
|
99
|
-
"rimraf": "~
|
|
100
|
-
"run-scripts-util": "~
|
|
101
|
-
"typescript": "~
|
|
101
|
+
"rimraf": "~5.0",
|
|
102
|
+
"run-scripts-util": "~1.1",
|
|
103
|
+
"typescript": "~5.1"
|
|
102
104
|
}
|
|
103
105
|
}
|