Twitter

Why not use a CI/CD at home? At @wehkamp we use #Jenkins / #Jenkins : a match made in heaven! Read how to setup Jenki… https://t.co/2J7nHCNb9s

1 month ago

Follow

Running a single Mocha Test, just change the it( into it.only( - https://t.co/Ir7vx7YK4z via @watirmelon

2 months ago

Follow

Deploy your #dotnet application though @Bitbucket pipeline to your #dotnet ♥️ https://t.co/ykrHc9gbLV

3 months ago

Follow

Nice #Hubot talks ES6 #Hubot 🔥. Learn how to connect a simple web-service using a Promise to your #Hubot bot 🤖: https://t.co/J6cRzqpBj2

3 months ago

Follow

Categories

Tag: JavaScript

JavaScript, Node.js, TypeScript

Support both Node.js and browser JS in one TypeScript file

TypeScript allows for better JavaScript development. JavaScript is getting useful in more domains. But different systems require different ways of handling modules and exposing features. TypeScript solves this by compiling differently when a target is specified.

But what if you need a TypeScript script that supports both vanilla browser JS and Node.js? What if you need to expose 10+ classes?

JavaScript, Node.js, TypeScript

Convert QUnit test to Mocha / Chai

Recently I’ve been playing around with NPM. I switched my unit tests from QUnit to Mocha. This was not as straight forward as one would hope. In this blog I’ll show some example code. At the end I’ll link to a side by side comparison of the entire test project. Hopefully it helps you to convert your code. I’ll be using the Chai BDD assertion engine.

Node.js

How to start Node.js app windowless in Windows

Node.js is getting more popular by the day. It breaks JavaScript free from the browser. I would love to auto start an application – much like a Windows service – without keeping a console window open. There are many services to wrap node applications into an executable, but I like to stick with just Node. This small trick will make your Node application windowless on Windows.