add-dist-header
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
// "scripts": { | ||
// "add-headers": "dist-header build/*.js dist" | ||
// "add-headers": "add-dist-header build/*.js dist" | ||
// }, | ||
@@ -15,5 +15,5 @@ // | ||
// $ npm install --global add-dist-header | ||
// $ dist-header "build" "dist" | ||
// $ dist-header #same as above since "build/*" "dist" are the default parameters | ||
// $ dist-header "target/app.js" #creates "dist/app.js" prepended with a comment header | ||
// $ add-dist-header "build" "dist" | ||
// $ add-dist-header #same as above since "build/*" "dist" are the default parameters | ||
// $ add-dist-header "target/app.js" #creates "dist/app.js" prepended with a comment header | ||
// | ||
@@ -46,4 +46,4 @@ // Contributors to this project: | ||
const logResult = (result) => { | ||
const name = chalk.gray('dist-header'); | ||
const arrow = chalk.gray.bold(' ⟹ '); //extra space for alignment | ||
const name = chalk.gray('add-dist-header'); | ||
const arrow = chalk.gray.bold('→'); | ||
const source = chalk.blue.bold(result.source); | ||
@@ -50,0 +50,0 @@ const target = chalk.magenta(result.file); |
@@ -1,2 +0,2 @@ | ||
//! add-dist-header v0.3.6 ~~ https://github.com/center-key/add-dist-header ~~ MIT License | ||
//! add-dist-header v0.3.7 ~~ https://github.com/center-key/add-dist-header ~~ MIT License | ||
@@ -3,0 +3,0 @@ export type Settings = { |
@@ -1,2 +0,2 @@ | ||
//! add-dist-header v0.3.6 ~~ https://github.com/center-key/add-dist-header ~~ MIT License | ||
//! add-dist-header v0.3.7 ~~ https://github.com/center-key/add-dist-header ~~ MIT License | ||
@@ -3,0 +3,0 @@ import { isBinary } from 'istextorbinary'; |
{ | ||
"name": "add-dist-header", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Prepend a one-line banner comment (with license notice) to distribution files", | ||
@@ -21,4 +21,4 @@ "license": "MIT", | ||
"bin": { | ||
"dist-header": "bin/cli.js", | ||
"add-dist-header": "bin/cli.js" | ||
"add-dist-header": "bin/cli.js", | ||
"dist-header": "bin/cli.js" | ||
}, | ||
@@ -103,3 +103,3 @@ "repository": "github:center-key/add-dist-header", | ||
"copy-folder-util": "~0.2", | ||
"eslint": "~8.27", | ||
"eslint": "~8.28", | ||
"jshint": "~2.13", | ||
@@ -106,0 +106,0 @@ "mocha": "~10.1", |
@@ -49,3 +49,3 @@ # Add Dist Header | ||
"scripts": { | ||
"add-headers": "dist-header build dist" | ||
"add-headers": "add-dist-header build dist" | ||
}, | ||
@@ -60,5 +60,5 @@ ``` | ||
$ npm install --global add-dist-header | ||
$ dist-header "build" "dist" | ||
[17:13:50] dist-header build/my-app.d.ts --> dist/my-app.d.ts (413.11 KB) | ||
[17:13:51] dist-header build/my-app.js --> dist/my-app.js (1,569.70 KB) | ||
$ add-dist-header "build" "dist" | ||
[17:13:50] add-dist-header build/my-app.d.ts --> dist/my-app.d.ts (413.11 KB) | ||
[17:13:51] add-dist-header build/my-app.js --> dist/my-app.js (1,569.70 KB) | ||
``` | ||
@@ -68,7 +68,7 @@ | ||
```shell | ||
$ dist-header #same as above since "build/*" "dist" are the default parameter values | ||
[17:13:50] dist-header build/my-app.d.ts --> dist/my-app.d.ts (413.11 KB) | ||
[17:13:51] dist-header build/my-app.js --> dist/my-app.js (1,569.70 KB) | ||
$ dist-header "meta/config.js" #creates "dist/config.js" prepended with header | ||
[17:15:03] dist-header meta/config.js --> dist/config.js (3.91 KB) | ||
$ add-dist-header #same as above since "build/*" "dist" are the default parameter values | ||
[17:13:50] add-dist-header build/my-app.d.ts --> dist/my-app.d.ts (413.11 KB) | ||
[17:13:51] add-dist-header build/my-app.js --> dist/my-app.js (1,569.70 KB) | ||
$ add-dist-header "meta/config.js" #creates "dist/config.js" prepended with header | ||
[17:15:03] add-dist-header meta/config.js --> dist/config.js (3.91 KB) | ||
``` | ||
@@ -94,4 +94,4 @@ | ||
Examples: | ||
- `dist-header temp dist --delimiter=🔥` Use "🔥" as the separator instead of "~~". | ||
- `dist-header --no-version build dist` Add headers but do not substitute the version number. | ||
- `add-dist-header temp dist --delimiter=🔥` Use "🔥" as the separator instead of "~~". | ||
- `add-dist-header --no-version build dist` Add headers but do not substitute the version number. | ||
@@ -98,0 +98,0 @@ ## C) Application Code |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21475