Instantly share code, notes, and snippets.

View wallaby-webpack with logging
'use strict';
var fs = require("graceful-fs");
class WallabyInputFileSystem {
constructor(webpackPostprocessor) {
this._postprocessor = webpackPostprocessor;
}
isSync() {
View wallaby-webpack with v8-profiler and logging
'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');
View index.js
'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');
View wallaby.js
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},
View atom-markers-performance.js
'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');