covered-cycle-example

Example Cycle.js counter demo with parts not covered by test coverage removed
code coverage cycle cycle.js example istanbul


Summary

Project Name covered-cycle-example Project Url https://github.com/bahmutov/covered-cycle-example#readme
InceptionYear 2016-04-12 13:21:09 更新时间 2016-04-14 08:30:57
IssueManagement https://github.com/bahmutov/covered-cycle-example/issues Licenses MIT
仓库地址 git+https://github.com/bahmutov/covered-cycle-example.git 用户数 0
Node Engine 文件大小 3.3 KB
install ban deps format issues license lint pretest secure size test unit semantic-release build server proxy nyc babel-original babel uglify uglify-original gzip-original gzip original covered deploy

项目介绍

# covered-cycle-example > Example Cycle.js counter demo with parts not covered by test coverage removed [![NPM][npm-icon] ][npm-url] [![Build status][ci-image] ][ci-url] [![semantic-release][semantic-image] ][semantic-url] [![js-standard-style][standard-image]][standard-url] I made single Cycle.js application bundle, then ran it through code coverage proxy [was-tested](https://github.com/bahmutov/was-tested) then removed functions that were unused. This eliminated some JavaScript and made bundle loading faster. Demo at [glebbahmutov.com/covered-cycle-example](https://glebbahmutov.com/covered-cycle-example/), read the blog post [Not tested - not included!](https://glebbahmutov.com/blog/not-tested-not-included/). ![screenshot](screenshots/covered-cycle-app.png) ![initial coverage](screenshots/coverage-initial.png) The difference in timing when browser loads original minified bundle vs bundle with unused code removed (160ms vs 100ms) ![original timing](screenshots/script-time-original.png) ![unused code removed timing](screenshots/script-time-covered.png) Difference in bundle sizes (use `ls -lh dist`) ``` Minified bundle: 199KB vs 141KB gzipped file: 50KB vs 38KB ``` ### Small print Author: Gleb Bahmutov <gleb.bahmutov@gmail.com> © 2016 * [@bahmutov](https://twitter.com/bahmutov) * [glebbahmutov.com](http://glebbahmutov.com) * [blog](http://glebbahmutov.com/blog) License: MIT - do anything with the code, but don't blame me if it does not work. Support: if you find any problems with this module, email / tweet / [open issue](https://github.com/bahmutov/covered-cycle-example/issues) on Github ## MIT License Copyright (c) 2016 Gleb Bahmutov <gleb.bahmutov@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. [npm-icon]: https://nodei.co/npm/covered-cycle-example.png?downloads=true [npm-url]: https://npmjs.org/package/covered-cycle-example [ci-image]: https://travis-ci.org/bahmutov/covered-cycle-example.png?branch=master [ci-url]: https://travis-ci.org/bahmutov/covered-cycle-example [semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg [semantic-url]: https://github.com/semantic-release/semantic-release [standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg [standard-url]: http://standardjs.com/

Dependencys

GroupId ArtifactID Version 引用量
Andre Staltz @cycle/core 7.0.0 20
cycle @cycle/dom 22.7.0 124
Gleb Bahmutov check-more-types 2.24.0 183
constellation escodegen 1.14.1 1621
Ariya Hidayat esprima 4.0.1 2006
Gleb Bahmutov lazy-ass 1.6.0 198
Cloud Programmability Team rx 4.1.0 1039

开发依赖

GroupId ArtifactID Version 引用量
Sebastian McKenzie babel-cli 6.26.0 958
Sebastian McKenzie babel-preset-es2015 6.24.1 660
Bartek Kus babel-preset-es2015-native-modules 6.9.4 199
Gleb Bahmutov ban-sensitive-files 1.9.5 215
Gleb Bahmutov deps-ok 1.4.1 129
Gabriel Petrovay git-issues 1.3.1 184
Grunt Team grunt-contrib-uglify 4.0.1 11205
Tim Schaub grunt-gh-pages 4.0.0 486
Gleb Bahmutov grunty 0.3.0 14
bigbluehat http-server 0.12.2 6008
Dav Glass license-checker 25.0.0 258
^lift security nsp 3.2.1 3339
Ben Coe nyc 15.0.1 40448
Arnout Kazemier pre-git 3.17.1 503
Stephan Bönnemann semantic-release 17.0.8 16326
Feross Aboukhadijeh standard 14.3.4 24914
max ogden standard-format 2.2.4 151
alexlamsl uglifyjs 2.4.11 1339
Gleb Bahmutov was-tested 0.10.0 1