0x80 / yurnalist Goto Github PK
View Code? Open in Web Editor NEWAn elegant console reporter, borrowed from Yarn
License: Other
An elegant console reporter, borrowed from Yarn
License: Other
The code for this module is taken from ConsoleReporter in Yarn. Therefor I initially wanted to name the module console-reporter
. It is pretty clear from that name what it does, but it doesn't sound very exciting.
A synonym for reporter is journalist
, and I like that name, but of course it is already taken. Since we're literally borrowing the vast majority of code from Yarn, I think it is nice to make a reference to it and that's how I came up with the name yurnalist
.
The advantage of an ambiguous name like yurnalist
is that the scope is not immediately fixed. For example if we decide to expose other reporters, like JSON, in addition to the console one, we easily could under the same name.
A lot of times I find "cleaver" names to be annoying, so I'm wondering what you think. Do you prefer something plain like console-reporter
?
Respond with a ๐ if you like the name yurnalist
or a ๐ if you think it is absolute rubbish.
If you have a better idea please leave your suggestion below ๐.
Seeing rather ugly output when I build my gatsby app in Circle CI.
I see that the library already supports CI for other pieces, so I was hoping it would be easy to disable the spinner as well in CI, and instead just output a new line of text for each status update.
cc/ @KyleAMathews
We need examples for all the API methods. Some might be dropped since I have no clue yet how they work. The ones that are still missing are:
There are probably still a few dependencies listed that are not actually used in the code. Hunt them down.
This project is using the old babel-runtime package. I suggest to use the new babel 7 @babel/runtime package.
The main concern behind this is to remove the corejs2 dependency present in babel-runtime, since corejs2 is now deprecated.
I was just trying out yurnalist
and installed it via npm i --save yurnalist
(v2.1.0). I couldn't get my project to build because tsc
was complaining that no type definitions were found for yurnalist
. I checked the node_modules
folder and the yurnalist
folder is present. For now I declared yurnalist
as a module in a .d.ts
file, however it would be nice to know how I can install the type definitions of yurnalist
Hi, I tried installing this package with pnpm, but running the activity example fails because of a missing strip-ansi
dependency.
Steps to reproduce:
$ git clone https://github.com/0x80/yurnalist.git
$ pnpm i
$ npm run build
$ node examples/activity.js
module.js:550
throw err;
^
Error: Cannot find module 'strip-ansi'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/cdfa/Projects/yurnalist/dist/reporters/console/console-reporter.js:63:19)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
How to color for example a complete list output in one color. Yarn is doing it, but we probably need to expose it though API functions.
Also it might be useful to expose API to configure the color palette, but I'm not sure it's worth it yet.
Some messages use the internal Yarn language file. This means you have no influence over what is printed when for example you gave a wrong selection as input to reporter.select
. It would be nice to make it configurable.
Quick note: import report from 'yurnalist'
does not work (undefined), but import * as report from 'yurnalist'
does.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.