add-dist-header
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
// "scripts": { | ||
// "add-headers": "add-dist-header build/*.js dist" | ||
// "add-headers": "dist-header build/*.js dist" | ||
// }, | ||
@@ -16,5 +16,5 @@ // | ||
// $ npm install --global copy-file-util | ||
// $ 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 | ||
// $ 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 | ||
// | ||
@@ -41,3 +41,3 @@ // Contributors to this project: | ||
const logResult = (result) => { | ||
const name = chalk.gray('add-dist-header'); | ||
const name = chalk.gray('dist-header'); | ||
const arrow = chalk.gray.bold(' ⟹ '); //extra space for alignment | ||
@@ -44,0 +44,0 @@ const source = chalk.blue.bold(result.source); |
@@ -1,2 +0,2 @@ | ||
//! add-dist-header v0.2.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License | ||
//! add-dist-header v0.2.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License | ||
@@ -3,0 +3,0 @@ export declare type Options = { |
@@ -1,2 +0,2 @@ | ||
//! add-dist-header v0.2.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License | ||
//! add-dist-header v0.2.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License | ||
@@ -3,0 +3,0 @@ import { format, parse } from 'path'; |
{ | ||
"name": "add-dist-header", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Prepend a one-line header comment (with license notice) to distribution files", | ||
@@ -21,2 +21,3 @@ "license": "MIT", | ||
"bin": { | ||
"dist-header": "bin/cli.js", | ||
"add-dist-header": "bin/cli.js" | ||
@@ -23,0 +24,0 @@ }, |
@@ -40,3 +40,3 @@ # Add Dist Header | ||
### 1. npm scripts | ||
Run `add-dist-header` from the `"scripts"` section of your **package.json** file. | ||
Run `dist-header` from the `"scripts"` section of your **package.json** file. | ||
@@ -49,3 +49,3 @@ The **first** parameter is the *source* file (defaults to `"build/*"`). | ||
"scripts": { | ||
"add-headers": "add-dist-header build dist" | ||
"add-headers": "dist-header build dist" | ||
}, | ||
@@ -61,5 +61,5 @@ ``` | ||
$ npm install --global add-dist-header | ||
$ add-dist-header "build" "dist" | ||
[17:13:50] add-dist-header dist/my-app.d.ts 413.11 KB | ||
[17:13:51] add-dist-header dist/my-app.js 1,569.70 KB | ||
$ 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) | ||
``` | ||
@@ -69,7 +69,7 @@ | ||
```shell | ||
$ add-dist-header #same as above since "build/*" "dist" are the default parameter values | ||
[17:13:50] add-dist-header dist/my-app.d.ts 413.11 KB | ||
[17:13:51] add-dist-header 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 dist/config.js 3.91 KB | ||
$ 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) | ||
``` | ||
@@ -93,4 +93,4 @@ | ||
Examples: | ||
- `add-dist-header temp dist --delimiter=🔥` Use "🔥" instead of "~~" in the header. | ||
- `add-dist-header --version=false build dist` Add headers but do not subsitute the version number. | ||
- `dist-header temp dist --delimiter=🔥` Use "🔥" as the separator instead of "~~". | ||
- `dist-header --version=false build dist` Add headers but do not subsitute the version number. | ||
@@ -97,0 +97,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
19804