Skip to content

Instantly share code, notes, and snippets.

View ArtemGovorov's full-sized avatar

Artem Govorov ArtemGovorov

View GitHub Profile
‎‎​
'use strict';
var fs = require("graceful-fs");
class WallabyInputFileSystem {
constructor(webpackPostprocessor) {
this._postprocessor = webpackPostprocessor;
}
isSync() {
'use strict';
var path = require('path');
var _ = require('lodash');
var mm = require('minimatch');
var WallabyInputFileSystem = require('./lib/WallabyInputFileSystem');
var fs = require('fs');
var profiler = require('v8-profiler');
@ArtemGovorov
ArtemGovorov / index.js
Created July 17, 2018 02:00
wallaby-webpack with v8-profiler
'use strict';
var path = require('path');
var _ = require('lodash');
var mm = require('minimatch');
var WallabyInputFileSystem = require('./lib/WallabyInputFileSystem');
var fs = require('fs');
var profiler = require('v8-profiler');
@ArtemGovorov
ArtemGovorov / wallaby.js
Last active June 28, 2017 06:09
Wallaby.js config for ng-cli generated project. The config file needs to be in the project root. Works faster with Electron runner: https://wallabyjs.com/docs/integration/electron.html
module.exports = function (wallaby) {
const compilerOptions = require('./src/tsconfig.json').compilerOptions;
compilerOptions.noEmitOnError = false;
return {
files: [
{pattern: 'node_modules/es6-shim/es6-shim.js', instrument: false},
{pattern: 'node_modules/systemjs/dist/system-polyfills.js', instrument: false},
{pattern: 'node_modules/reflect-metadata/Reflect.js', instrument: false},
@ArtemGovorov
ArtemGovorov / atom-markers-performance.js
Last active August 29, 2015 14:26
Atom markers for non empty lines
'use babel';
class Test {
activate(state) {
let self = this;
atom.commands.add('atom-workspace', {
'atom-markers-performance:toggle': () => {
// just creating markers for all non-empty lines of the the active document
let editor = atom.workspace.getActiveTextEditor();
let lines = editor.getText().split('\n');