From 74e4d451d8ac4311d0149ecad2075ceb26d40200 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 5 May 2020 13:41:06 -0400 Subject: [PATCH 1/5] Document iife format --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f0a8ea7..85ace151 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ Options -v, --version Displays current version -i, --entry Entry module(s) -o, --output Directory to place build files into - -f, --format Only build specified formats (default modern,es,cjs,umd) + -f, --format Only build specified formats (default modern,es,cjs,umd,iife) -w, --watch Rebuilds on any change (default false) --target Specify your target environment (node or web) (default web) --external Specify external dependencies, or 'none' From d67f3662448a3cbf9721f92171b1c3810587e7a4 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 5 May 2020 13:42:13 -0400 Subject: [PATCH 2/5] Update prog.js --- src/prog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prog.js b/src/prog.js index 9029b60e..93f7e1e3 100644 --- a/src/prog.js +++ b/src/prog.js @@ -22,7 +22,7 @@ export default handler => { .version(version) .option('--entry, -i', 'Entry module(s)') .option('--output, -o', 'Directory to place build files into') - .option('--format, -f', 'Only build specified formats', DEFAULT_FORMATS) + .option('--format, -f', `Only build specified formats (any of ${DEFAULT_FORMATS} or iife)`, DEFAULT_FORMATS) .option('--watch, -w', 'Rebuilds on any change', false) .option('--target', 'Specify your target environment (node or web)', 'web') .option('--external', `Specify external dependencies, or 'none'`) From d87aa22f23e8d730acc9ffd98784b87135039559 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 5 May 2020 13:43:05 -0400 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 85ace151..8756be18 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ Options -v, --version Displays current version -i, --entry Entry module(s) -o, --output Directory to place build files into - -f, --format Only build specified formats (default modern,es,cjs,umd,iife) + -f, --format Only build specified formats (any of modern,es,cjs,umd or iife) (default modern,es,cjs,umd) -w, --watch Rebuilds on any change (default false) --target Specify your target environment (node or web) (default web) --external Specify external dependencies, or 'none' From 4fe520715624257c4f53a62b10d3abd746d0a43a Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 5 May 2020 13:44:54 -0400 Subject: [PATCH 4/5] Update prog.js --- src/prog.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/prog.js b/src/prog.js index 93f7e1e3..46f483ce 100644 --- a/src/prog.js +++ b/src/prog.js @@ -22,7 +22,11 @@ export default handler => { .version(version) .option('--entry, -i', 'Entry module(s)') .option('--output, -o', 'Directory to place build files into') - .option('--format, -f', `Only build specified formats (any of ${DEFAULT_FORMATS} or iife)`, DEFAULT_FORMATS) + .option( + '--format, -f', + `Only build specified formats (any of ${DEFAULT_FORMATS} or iife)`, + DEFAULT_FORMATS + ) .option('--watch, -w', 'Rebuilds on any change', false) .option('--target', 'Specify your target environment (node or web)', 'web') .option('--external', `Specify external dependencies, or 'none'`) From 6f10e0b5639618d7dd951fd7b47e9137ecdc6b67 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 5 May 2020 14:37:23 -0400 Subject: [PATCH 5/5] Update prog.js --- src/prog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prog.js b/src/prog.js index 46f483ce..c47bae9a 100644 --- a/src/prog.js +++ b/src/prog.js @@ -25,7 +25,7 @@ export default handler => { .option( '--format, -f', `Only build specified formats (any of ${DEFAULT_FORMATS} or iife)`, - DEFAULT_FORMATS + DEFAULT_FORMATS, ) .option('--watch, -w', 'Rebuilds on any change', false) .option('--target', 'Specify your target environment (node or web)', 'web')