{"_id":"@atlaskit/measure","_rev":"7-c74b62f8206e51dbac02fd71aad8f3e3","name":"@atlaskit/measure","dist-tags":{"latest":"0.4.2","next":"0.4.2"},"versions":{"0.4.0":{"name":"@atlaskit/measure","version":"0.4.0","author":{"name":"Atlassian Pty Ltd"},"license":"Apache-2.0","_id":"@atlaskit/measure@0.4.0","maintainers":[{"name":"atlaskit","email":"design-platform@atlassian.com"}],"bin":{"measure":"./cli.js"},"dist":{"shasum":"e38c99561d7cf8c51ae62b65b9f0fe229fdad1f2","tarball":"https://registry.npmjs.org/@atlaskit/measure/-/measure-0.4.0.tgz","fileCount":14,"integrity":"sha512-M0r+SquMjH36v2Cad/RcQCt6doiAZvK+CNpLMgBYFRlg2eGPuNqhLrMgjZIzVsYTIMaVT10RKvisTyHUTBAyNg==","signatures":[{"sig":"MEUCIQDahvRZdTdVXkHu9stHx530nOR1ZirAAEbh7S5p6b70DQIgOGfSpNEJ90YEuHEfPAEplVmLnhAUzUnGvegIDEw57zg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49518,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVlFhCRA9TVsSAnZWagAAaIYP/AvTLKWua9HqLgn3t6Nz\ng1URrlFN2Tt52+sqNfw5VNLyA1heB4uJ/aOi/kZltgRhB8+a5CFXoIkxnrjV\nXDd6KZtGjY5tn6bOpt3WmJTherg8JeDXjAke4xyYKku0uVPvgN+V2iCVzNzR\nx56z0T6Mjy11nX9sdEtkh753bT2R1zuQ9drs/OyWWJrhXa53mleWmIpfuY1t\nbiyPye3qQV/2+obX9ztpavJjRJ8FEL+EFC+Gltno766NZBIY0hhmfQaLXvFY\n59hwMZUzZgD+PUuIR46IboydvS05qzVtG6CVU3W7KBrX5Nu8+YhdF6Wjetq2\nlIanZWjmxSns0d4abmikfccwLADs9M3LpQfHfDe7VMFk5ZcfGfV/AmujXb16\nRBolXRyTjKZXOIgYK0j74PlhujuyQue6ArwhEexD0bd0wahGD+n4RKu213ch\n6zOH04o85ii0wpJDq7NwY+xSw2y/HdN5BDRjmxP5WClQTIq6Hft6FBBCcuUR\nrvRQuNFO5UrWiD+aUvRnn7ApAU3460UQYhupV0mWhypfEdOM4Na3DXZosO6K\nzbAAmUK4m/KcHZL8OaMpUW8T+q8k6HC9Fa5003QHwZOij2VYLlvqUGIlkGTG\n7ieJuH+TTerR+zQI27Nh5QIuxYllebW59aEvrG4LYNApi6Fy+Drb2LiuQX6V\nrhDL\r\n=JEmw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./cli.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"atlaskit","email":"design-platform@atlassian.com"},"_npmVersion":"6.9.0","description":"Tool for measuring bundle size of an individual package in Atlaskit","directories":{},"_nodeVersion":"10.16.2","dependencies":{"ora":"^3.0.0","bolt":"^0.23.6","meow":"^5.0.0","axios":"^0.18.0","chalk":"^2.1.0","npm-run":"^4.1.2","webpack":"^4.16.1","gzip-size":"^5.0.0","minimatch":"^3.0.4","pretty-bytes":"^5.1.0","@atlaskit/webpack-config":"^2.0.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/measure_0.4.0_1565938017309_0.7279064699580404","host":"s3://npm-registry-packages"}},"0.4.1":{"name":"@atlaskit/measure","version":"0.4.1","author":{"name":"Atlassian Pty Ltd"},"license":"Apache-2.0","_id":"@atlaskit/measure@0.4.1","maintainers":[{"name":"atlaskit","email":"design-platform@atlassian.com"}],"bin":{"measure":"./cli.js"},"dist":{"shasum":"d9054e94354b4a6b30aab774bf27bd13ca8b80c1","tarball":"https://registry.npmjs.org/@atlaskit/measure/-/measure-0.4.1.tgz","fileCount":14,"integrity":"sha512-8JqOv3/JZemF00PKAmfSLZFCZkKX+rvlXtDLQwXdgCpLwLXIEHPoVOzVfaXs+Uf62TGiYoqLSaBZnKoScsZ6Tg==","signatures":[{"sig":"MEQCIAN0IUW3fJftm6zSRoSfcFk1BWRARPUtyV2JpDZA5fsDAiBHFrbdl51Hai7OTxXeqsTK8/Gsmm/USTY1+rlX+DSLtw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXmMBCRA9TVsSAnZWagAAproP/jkBgq8qLl4yybdU9tuj\neq+q8CsLkHlfvNh52DhHumfv7TK22s1+fY66MggTxPh7ITfIbtbNZBmKkQzE\nCbxWRb1zvk4lKVwDO53XM5tBX1KEYOfg7lqLiEQ8H/+8HrwIhXwaNC/ZcGZf\n2OdhS3RA0DecEQwnNOLiNxgAHurc1AYUYWd7cqemSd7mgyoiaO4FqkdFsfd0\n7VEnJbp8s8UYo/Y0rKEQUn8CLsQyRBylb/SmVNVG089kpYjG9XjO8X0vXlOy\nXJ5COUI2KhrZscJ/KdRaxxaFS0ASRsdocZV4PJibJaqs+V8p3VQrd4L808V0\n2iot2ETYOZzUDHpfEaMAXIAUMNHnsMGPm4yAenyPII4yaWh51GMwkrUU2MDP\nFdmnFgxVn7zPoBkuZFPSRhcm9WrUZULMnfjo3bSYkn82l08edCwYu303QYMO\n5eXYvG+/meb2hjwSvi9p+uyBKQpcG3rmQEPt+N7M1ByyShY+F2I8JAADc7m1\n3HJcn0LDZks91v7TSewUbKllPbBy7W5mJazggQEUxgn3P+8xB+EYx5Yks+l4\npCkElM4MN0gW8bj/Oo36NpaIY6WqQ3oUu3WtW93WnBpzvxpvMQjhHShCebNF\nEi3mqi9MIfpzvx//Q10M/00uREmGcRMUVg1wrS4GAe/lbf1MHTwlanEe8Lv6\nX6OH\r\n=c7Gn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./cli.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"atlaskit","email":"design-platform@atlassian.com"},"_npmVersion":"6.9.0","description":"Tool for measuring bundle size of an individual package in Atlaskit","directories":{},"_nodeVersion":"10.16.2","dependencies":{"ora":"^3.0.0","bolt":"^0.23.6","meow":"^5.0.0","axios":"^0.18.0","chalk":"^2.1.0","npm-run":"^4.1.2","webpack":"^4.16.1","gzip-size":"^5.0.0","minimatch":"^3.0.4","pretty-bytes":"^5.1.0","@atlaskit/webpack-config":"^2.0.12"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/measure_0.4.1_1566466816777_0.25617710342563704","host":"s3://npm-registry-packages"}},"0.4.2":{"name":"@atlaskit/measure","version":"0.4.2","author":{"name":"Atlassian Pty Ltd"},"license":"Apache-2.0","_id":"@atlaskit/measure@0.4.2","maintainers":[{"name":"atlaskit","email":"design-platform@atlassian.com"}],"bin":{"measure":"./cli.js"},"dist":{"shasum":"dd57479138bf26e828f3b30d872b9c806d551b58","tarball":"https://registry.npmjs.org/@atlaskit/measure/-/measure-0.4.2.tgz","fileCount":14,"integrity":"sha512-UvRRTmeEiern5vSPskEoodAg1cRmTNm8Ht1lMMnOn4ir/ZHx9xb/zsxw8GyO9DVUQCpBygd2pjtBwJk74NLMkg==","signatures":[{"sig":"MEYCIQCvf+OpchLXkf65T6nCgHK8KBKxWB49d4wq4+jKOZsXeQIhAPL5umHIWOT6eV1GSXEjstkTwQoAP62fpwh1Y0HPKg65","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdYzU4CRA9TVsSAnZWagAAXU4P/iEPZk9Gbi/zSqJZOtlu\nNIYJ0Hp+YNbvHsGt2Bhsa2aqJIKiCupFsu2u+viATRSaBFS6eAAw0HQ9F3zv\nFzTpvmQDtYMIUlwHAfO7qJieiClS/YhTyux2xrra07S7ZdBSmgKoKp0Z1y+7\n8Vh5/yXJ7WQWVJhWtsvvsHdP2SKcFEd7ApCtVQw6TI657bF4x2LdqFJg2y36\nSRDw44WEWItlONKxQFBJrNV19ihB6FmMUargXEDSTZxh7D1mKhlnisvInwFP\nsXFhp8lLeimuUmR2Y5PYyuPjL+rGmcaxHetimlVKoEET0uKsr6P4iSuDZPCc\n7gOVECJIi+gfSGrkwBGHWZHTejZ0QNa9FHU/Fx74XipGez12r/lqbpjwbXgG\n38DHyGobpIovwlKFxfEniyipQ0cJiXxF9/tRFwYV1q6ViKdBN2XCT/4qoLil\nFVGXRy9Yo2gqw8fAQZxl0Chrrya78Q7Hsnbafa0aXcUqKNm3nuEJVaf/OlLm\nXqoQHaS0FKOz8gEeAm5mVbZY7tOEnC7fuIVFHOnx1EKrQwdQL9PvPMegnkhX\nB8QXRnZJaGo3i2SSnydQ3BTw/LpqdvDpNknib4fBTkTH0Wh5AC2Tp+7txpB6\nzzYTITM26ZwVEu4XFkoaHjzJBRHf1lOM/6iqUotk3IsfLjeAu/32pN8UaMs/\neoIo\r\n=32nJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./cli.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"atlaskit","email":"design-platform@atlassian.com"},"_npmVersion":"6.9.0","description":"Tool for measuring bundle size of an individual package in Atlaskit","directories":{},"_nodeVersion":"10.16.2","dependencies":{"ora":"^3.0.0","bolt":"^0.23.6","meow":"^5.0.0","axios":"^0.18.0","chalk":"^2.1.0","npm-run":"^4.1.2","webpack":"^4.16.1","gzip-size":"^5.0.0","minimatch":"^3.0.4","pretty-bytes":"^5.1.0","@atlaskit/webpack-config":"^2.0.13"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/measure_0.4.2_1566782775360_0.5637571490266897","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-08-16T06:46:57.091Z","modified":"2025-01-29T23:26:37.328Z","0.4.0":"2019-08-16T06:46:57.455Z","0.4.1":"2019-08-22T09:40:16.970Z","0.4.2":"2019-08-26T01:26:15.541Z"},"author":{"name":"Atlassian Pty Ltd"},"license":"Apache-2.0","description":"Tool for measuring bundle size of an individual package in Atlaskit","maintainers":[{"email":"eng-development-tooling-secrets-and-artifacts@atlassian.com","name":"atlassianartifactteam"}],"readme":"# Atlaskit Measure Tool\n\nThe atlaskit measure tool is effectively a quick script to analyze the webpack bundle for a package. This is incredibly useful both to get the bundle size at-a-glance as well as when doing deep dives into bundle size.\n\nThere are two commands in measure:\n\n## Basic usage\n\n```sh\nyarn measure [path1] [path2] [path3]\n```\n\nFor example, to measure button, you would use:\n\n```sh\nyarn measure packages/core/button\n```\n\nThis prints output just to the terminal which will look like:\n\n![measure output](./screenshots/measure-output.png)\n\nAs you can see, we have split our code into different chunks to better understand where weight is. Most importantly, you can see if atlaskit, the code's own source, or external dependencies are the things weighing the package down.\n\n## Updating snapshot\n\nIf changes that have been introduced increase a bundle size beyond the allowed threshold, you might need to update measure snapshot. To do this, you can add the `--updateSnapshot` flag.\n\nPlease make sure that this decision is carefully considered and discussed. The point of measuring bundle size change like this is to prevent things growing unexpectedly. Always ask if there is a better way to do what you are trying to do.\n\n```sh\nyarn measure:updateSnapshot [path]\n```\n\n## In-depth analysis\n\nSometime you will need to look into what is in each chunk. To do this, you can add the `--analyze` flag.\n\n```sh\nyarn measure [path] --analyze\n```\n\nThis will output the information above to the console, but will also launch a new tab in your browser which shows the [webpack-bundle-analyzer](https://www.npmjs.com/package/webpack-bundle-analyzer) view of the code.\n\nWith this, you can see exactly what packages or files are heavy.\n\n## Exceptions\n\nIt is important to know that we filter out some 'common packages' that are a cost that will be paid by almost everyone using atlaskit. Including these common packages in each output would distort information.\n\nThe excluded packages are:\n\n- `react` 5.9kb (2.5kb)\n- `react-dom` 96.5kb (30.9kb)\n- `styled-components` 43.1kb (16kb)\n- `tslib` 5.6kb (2kb)\n- `prop-types` 829B (502B)\n\n## A note on this package\n\nThe way this package is currently written it is **heavily** tied to the Atlaskit code-base. If you wish to use it elsewhere, we strongly recommend making sure you understand why each piece of the code exists when rolling your own version.\n","readmeFilename":"README.md"}