This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { exec } = require('child_process'); | |
const { promisify } = require('util'); | |
const path = require('path'); | |
module.exports.default = async function tsc(options, context) { | |
process.chdir( | |
path.join(context.cwd, context.workspace.projects[context.projectName].root) | |
); | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
fs.readFile('lcov.info', 'utf8', (err, data) => { | |
const arr = data.split('\n'); | |
let file; | |
const counts = []; | |
arr.forEach((a) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
// const report = { | |
// 'foo.tsx': { | |
// 12: ['foo.spec.tsx', 'bar.spec.tsx'], | |
// 389: ['bat.spec.tsx'] | |
// } | |
// }; | |
class reporter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just SomeRecord | |
|> andMap model.prop1 | |
|> andMap model.prop2 | |
|> andMap model.prop3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just SomeRecord | |
|> foo model.prop1 | |
|> foo model.prop2 | |
|> foo model.prop3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo : Maybe a -> Maybe (a -> b) -> Maybe b | |
foo a b = | |
Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = | |
foo model.prop1 (Just SomeRecord) | |
b = | |
foo model.prop2 a | |
c = | |
foo model.prop3 b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo : Maybe (a -> b) -> Maybe a -> Maybe b | |
foo a b = | |
Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = | |
foo (Just SomeRecord) model.prop1 | |
b = | |
foo a model.prop2 | |
c = | |
foo b model.prop3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"article": { | |
"id": "b5df0b22-8870-11e8-a0fd-e428ecc3ac12", | |
"headline": "Brexit climbdown as Theresa May accepts rebel amendment", | |
"publicationName": "TIMES", | |
"publishedTime": "2018-07-16T16:00:00.000Z", | |
"label": "", | |
"standfirst": | |
"Brussels would have to agree to collect tariffs on behalf of the UK", |
NewerOlder