UNPKG

@page-libs/dom

Version:

Set of async objects for creating DOM elements in Page framework.

36 lines (33 loc) 1.02 kB
'use strict' const { ExecutedLint, ExecutedTestCoverage, ExecutedTestCoverageCheck, ExecutedTestCoverageReport, LoggedTotalCoverageByJsonSummary } = require('@cuties/wall') const { ReadDataByPath } = require('@cuties/fs') const { ParsedJSON } = require('@cuties/json') const { SpawnedCommand } = require('@cuties/spawn') new SpawnedCommand( 'grunt' ).after( new ExecutedLint(process, './src', './test').after( new ExecutedTestCoverageReport( new ExecutedTestCoverageCheck( new ExecutedTestCoverage( process, './test-executor.js' ), { 'lines': 100, 'functions': 100, 'branches': 100 } ), 'json-summary' ).after( new LoggedTotalCoverageByJsonSummary( new ParsedJSON( new ReadDataByPath('coverage/coverage-summary.json', { encoding: 'utf8' }) ), (linesPct, statementsPct, functionsPct, branchesPct) => { return (linesPct + statementsPct + functionsPct + branchesPct) / 4 } ) ) ) ).call()