rollup-plugin-filesize
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -15,7 +15,7 @@ 'use strict'; | ||
return boxen((bundle.dest ? colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n' : '') + colors[primaryColor].bold('Bundle size: ') + colors[secondaryColor](size) + ', ' + colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip$$1), { padding: 1 }); | ||
return boxen('' + (bundle.dest ? colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n' : '') + colors[primaryColor].bold('Bundle size: ') + colors[secondaryColor](size) + (opt.showGzippedSize ? ', ' + colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip$$1) : ''), { padding: 1 }); | ||
} | ||
function filesize() { | ||
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -26,3 +26,4 @@ | ||
theme: 'dark', | ||
render: render | ||
render: render, | ||
showGzippedSize: true | ||
}; | ||
@@ -29,0 +30,0 @@ |
{ | ||
"name": "rollup-plugin-filesize", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "A rollup plugin to show filesize in the cli", | ||
@@ -32,14 +32,14 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"boxen": "^0.2.0", | ||
"boxen": "^1.1.0", | ||
"colors": "^1.1.2", | ||
"deep-assign": "^2.0.0", | ||
"filesize": "^3.5.6", | ||
"gzip-size": "^3.0.0", | ||
"starring": "0.2.1" | ||
"gzip-size": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.13.0", | ||
"ava": "^0.19.1", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-es2015-rollup": "^1.1.1", | ||
"babel-preset-es2015-rollup": "^3.0.0", | ||
"babel-register": "^6.7.2", | ||
"rollup": "^0.43.0", | ||
"rollup-plugin-babel": "^2.3.9" | ||
@@ -46,0 +46,0 @@ }, |
@@ -29,2 +29,8 @@ # rollup-plugin-filesize | ||
#### showGzippedSize | ||
type: `boolean` | ||
default: true | ||
Whether to show Gzipped size or not | ||
#### format | ||
@@ -31,0 +37,0 @@ type : `object` |
@@ -12,5 +12,4 @@ import fileSize from 'filesize'; | ||
return boxen( | ||
(bundle.dest ? (colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n') : '') + | ||
colors[primaryColor].bold('Bundle size: ') + colors[secondaryColor](size) + ', ' + | ||
colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip), { padding: 1 } | ||
`${bundle.dest ? (colors[primaryColor].bold('Destination: ') + colors[secondaryColor](bundle.dest) + '\n') : ''}${colors[primaryColor].bold('Bundle size: ')}${colors[secondaryColor](size)}${opt.showGzippedSize ? (', ' + | ||
colors[primaryColor].bold('Gzipped size: ') + colors[secondaryColor](gzip)) : ''}`, { padding: 1 } | ||
) | ||
@@ -24,3 +23,4 @@ } | ||
theme: 'dark', | ||
render: render | ||
render: render, | ||
showGzippedSize: true | ||
}; | ||
@@ -27,0 +27,0 @@ |
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
4942
5
73
69
6
- Removedstarring@0.2.1
- Removedansi-escapes@3.2.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedany-promise@1.3.0(transitive)
- Removedapplication-config@1.0.1(transitive)
- Removedapplication-config-path@0.1.1(transitive)
- Removedarray-find-index@1.0.2(transitive)
- Removedarray-to-sentence@1.1.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbl@1.1.2(transitive)
- Removedboxen@0.2.0(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcamelcase@2.1.1(transitive)
- Removedcamelcase-keys@2.1.0(transitive)
- Removedcapitalize@1.0.0(transitive)
- Removedcapture-stack-trace@1.0.2(transitive)
- Removedchalk@1.1.3(transitive)
- Removedchardet@0.4.2(transitive)
- Removedci-info@1.6.0(transitive)
- Removedcli-cursor@2.1.0(transitive)
- Removedcli-spinners@1.3.1(transitive)
- Removedcli-width@2.2.1(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconfigstore@3.1.5(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcreate-error-class@3.0.2(transitive)
- Removedcrypto-random-string@1.0.0(transitive)
- Removedcurrently-unhandled@0.4.1(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddot-prop@4.2.1(transitive)
- Removedduplexer2@0.0.2(transitive)
- Removedduplexer3@0.1.5(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedexternal-editor@2.2.0(transitive)
- Removedfigures@2.0.0(transitive)
- Removedfilled-array@1.1.0(transitive)
- Removedfind-up@1.1.22.1.0(transitive)
- Removedfs-extra@0.26.7(transitive)
- Removedfs-promise@0.5.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-stdin@4.0.1(transitive)
- Removedgh-got@5.0.0(transitive)
- Removedghauth@3.2.1(transitive)
- Removedglob@7.2.3(transitive)
- Removedglobal-dirs@0.1.1(transitive)
- Removedglobal-packages@0.1.1(transitive)
- Removedgot@6.7.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedhyperquest@2.0.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedimport-lazy@2.1.0(transitive)
- Removedimurmurhash@0.1.4(transitive)
- Removedindent-string@2.1.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedini@1.3.8(transitive)
- Removedinquirer@3.3.0(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-ci@1.2.1(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedis-installed-globally@0.1.0(transitive)
- Removedis-npm@1.0.0(transitive)
- Removedis-path-inside@1.0.1(transitive)
- Removedis-plain-obj@1.1.0(transitive)
- Removedis-redirect@1.0.0(transitive)
- Removedis-retry-allowed@1.2.0(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedisarray@0.0.11.0.0(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedjust-is-empty@1.1.0(transitive)
- Removedklaw@1.3.1(transitive)
- Removedlatest-version@3.1.0(transitive)
- Removedload-json-file@1.1.02.0.0(transitive)
- Removedlocate-path@2.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlog-symbols@2.2.0(transitive)
- Removedloud-rejection@1.6.0(transitive)
- Removedlowercase-keys@1.0.1(transitive)
- Removedmake-dir@1.3.0(transitive)
- Removedmap-obj@1.0.1(transitive)
- Removedmeow@3.7.0(transitive)
- Removedmimic-fn@1.2.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedmute-stream@0.0.7(transitive)
- Removedmz@2.7.0(transitive)
- Removednormalize-package-data@2.5.0(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedonetime@2.0.1(transitive)
- Removedora@1.4.0(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedp-limit@1.3.0(transitive)
- Removedp-locate@2.0.0(transitive)
- Removedp-reflect@1.0.0(transitive)
- Removedp-settle@2.1.0(transitive)
- Removedp-try@1.0.0(transitive)
- Removedpackage-json@4.0.1(transitive)
- Removedparse-github-url@1.0.3(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedpath-exists@2.1.03.0.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-is-inside@1.0.2(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@1.1.02.0.0(transitive)
- Removedpify@2.3.03.0.0(transitive)
- Removedpinkie@1.0.02.0.4(transitive)
- Removedpinkie-promise@1.0.02.0.1(transitive)
- Removedpluralize@4.0.0(transitive)
- Removedprepend-http@1.0.4(transitive)
- Removedprocess-nextick-args@1.0.7(transitive)
- Removedrc@1.2.8(transitive)
- Removedread@1.0.7(transitive)
- Removedread-pkg@1.1.02.0.0(transitive)
- Removedread-pkg-up@1.0.12.0.0(transitive)
- Removedreadable-stream@1.0.341.1.142.0.6(transitive)
- Removedredent@1.0.0(transitive)
- Removedregistry-auth-token@3.4.0(transitive)
- Removedregistry-url@3.1.0(transitive)
- Removedrepeating@2.0.1(transitive)
- Removedresolve@1.22.8(transitive)
- Removedrestore-cursor@2.0.0(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedrun-async@2.4.1(transitive)
- Removedrx-lite@4.0.8(transitive)
- Removedrx-lite-aggregates@4.0.8(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsemver-diff@2.1.0(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.20(transitive)
- Removedstarring@0.2.1(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedstrip-bom@2.0.03.0.0(transitive)
- Removedstrip-indent@1.0.1(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedthenify@3.3.1(transitive)
- Removedthenify-all@1.6.0(transitive)
- Removedthrough@2.3.8(transitive)
- Removedthrough2@0.6.5(transitive)
- Removedtimed-out@4.0.1(transitive)
- Removedtmp@0.0.33(transitive)
- Removedtrim-newlines@1.0.0(transitive)
- Removedunique-string@1.0.0(transitive)
- Removedunzip-response@2.0.1(transitive)
- Removedupdate-notifier@2.5.0(transitive)
- Removedurl-parse-lax@1.0.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedwhich-promise@1.0.0(transitive)
- Removedwidest-line@1.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedwrite-file-atomic@2.4.3(transitive)
- Removedxdg-basedir@3.0.0(transitive)
- Removedxtend@4.0.2(transitive)
Updatedboxen@^1.1.0