In this episode we’re going to learn what AVA is, how to set it up and after that we’ll check out a few of AVA’s features.
この記事は、textlintのチェックでエラーとなった結果を、Pull Requestのレビューコメントとして書く設定をする手順をまとめたものです。 textlintを使っているCI環境に数行追加する程度で、次のようにPull Requestのコメントに指摘内容が自動で書き込めるようになります。 reviewdogを使うことで、CIからレビューコメントとしてLintの結果を書き込むことができます。 CIでLintがエラーとなった場合、CIの画面までエラーを見に行く必要があって面倒です。 reviewdogを使うことで、PRの画面上にLintのエラーが表示されるので手間が省けて便利です。 基本的には次の記事と同様です。 textlintをTravis CIで動かして継続的に文章をチェックする - Qiita Travis CIでtextlintの指摘をPull Requestのレビューコメン
A simple, lightweight and standalone content embed plugin for web /** * @implements Embedo setup * * @package {npm} npm install embedo --save * @package {bower} bower install embedo * * @import {jsdelivr} https://cdn.jsdelivr.net/npm/embedo * @import {cdnjs} https://cdnjs.com/libraries/embedo * @import {unpkg} https://unpkg.com/embedo */ import Embedo from './my/vendor/folder'; const embedo = new
Curated collection of data structures for the JavaScript language. Mnemonist is a collection of data structures implemented in JavaScript. It gathers classic data structures (think heap, trie etc.) as well as more exotic ones such as Burkhard-Keller trees etc. It strives at being: As performant as possible for a high-level language. Completely modular (don’t need to import the whole library just t
The specification es2015 introduces a new feature called tagged template literals. Support of this feature now close to 100%. This standard allow for javascript expressions to be embedded within literal strings. This conception is very close to philosophy of jsx. And you can write code for react and other virtual dom frameworks using template literals instead of jsx. This library is very useful if
What is CQRS? CQRS is an architectural pattern, where the acronym stands for Command Query Responsibility Segregation. We can talk about CQRS when the data read operations are separated from the data write operations, and they happen on a different interface. In most of the CQRS systems, read and write operations use different data models, sometimes even different data stores. This kind of segrega
February 8, 2017 - Alexandru Dima Visual Studio Code version 1.9 includes a cool performance improvement that we've been working on and I wanted to tell its story. TL;DR TextMate themes will look more like their authors intended in VS Code 1.9, while being rendered faster and with less memory consumption. Syntax Highlighting Syntax Highlighting usually consists of two phases. Tokens are assigned t
Update: The Cost Of JavaScript In 2019 is now available to read. As web developers, we know how easy it is to end up with web page bloat. But loading a webpage is much more than shipping bytes down the wire. Once the browser has downloaded our page’s scripts it then has to parse, interpret & run them. In this post, we’ll dive into this phase for JavaScript, why it might be slowing down your app’s
Jest-like snapshot feature for the rest of us + data-driven testing! deprecated please use snap-shot-it - it grabs test instance at runtime, avoiding looking at the source code and getting lost in the transpiled code. snap-shot-jest-test - for testing snap-shot against Jest runner (React + JSX) snap-shot-modules-test - for testing against transpiled ES6 modules snap-shot-vue-test - for testing sna
I really liked snapshot testing as implemented in Jest. Once you have a complex object, compare it with its previous value using expect(value).toMatchSnapshot(). If there is no previous snapshot, it will be saved under the test name. If there is a snapshot file already, the assertion compares the given value with the saved one and throws a well formatted exception if the two values differ. Other f
As WebPack 2 barrels forward, Tree Shaking --- or more technically, the removal of unused exports using static analysis --- is finding its way to the mainstream. Developers are putting their hopes high, as it promises to solve the pressing problem of bloated packages. Usually, only a fraction of code is actually needed from each dependency but their entire codebase is bundled, increasing the size.
Bug 1331638 is a good example of why feature detection is important, but also a good reminder to test in enviroments where the feature totally doesn’t exist. A website (Twitter, in this example) tries to do the right thing and check for support before throwing notifications at you: this.isSupported = function() { var a = "PushManager" in window, b = this.getNotificationPermission() !== "denied", c
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く