Blog Logo
  • boneskull dot com
Menu
  • boneskull dot com

Use Rollup to Bundle JavaScript Actions for Apache OpenWhisk

by Christopher Hiller

Like other “serverless” platforms, an OpenWhisk JavaScript Action may be a single .js file. As functions grow beyond trivial—and begin to depend on third-party modules—that single, forlorn .js file can no longer shoulder the burden.

The OpenWhisk Documentation suggests simply throwing an entire project—node_modules and all—

(continue reading)

openwhisk, rollup, node.js, serverless
Mar 28, 2018

From millis() to MicroPython: Arduino for Web Developers

by Christopher Hiller

In late 2013, I received a SparkFun Inventor’s Kit as a non-denominational holiday present from a coworker. Without hyperbole, this was the best present I’ve ever received (thanks Anthony).

Before this, I knew nothing of electronics, hardware, or firmware. The SparkFun RedBoard (an Arduino Uno-compatible device) and

(continue reading)

python, micropython, esp8266, node.js, arduino, esp32
Nov 30, 2017

Mocha v4 Nears Release

by Christopher Hiller

Mocha v4.0.0 is nearing release. With this new version also comes the obligatory breaking changes, and I'll enumerate them below.

UPDATE (April 18, 2018): Mocha v4 was released on October 2, 2017.

Mocha Will No Longer Support Node.js Pre-v4.0.0

There are several reasons for this:

(continue reading)

node.js, mocha, web, testing
Sep 28, 2017

DIY Object Recognition with Raspberry Pi, Node.js, & Watson

by Christopher Hiller

A glorious thing nowadays is that you needn't be an AI researcher nor have expensive hardware to leverage machine learning in your projects.

Granted, a domain-specific design will net greater benefits in the long run. Yet, until recently, a general-purpose, off-the-shelf solution wasn't easily consumable by your average developer (that's

(continue reading)

node.js, watson, raspberry-pi, ai
Sep 12, 2017

How to Abuse TypeScript Definitions for Better Code Assistance in JavaScript Projects

by Christopher Hiller

So there I was, writing a CLI tool in plain old JavaScript. I had pulled in yargs, as I often do.

Here's the source of my executable:

screenshot

I'm looking at the above and wondering why demandCommand is highlighted as an instance member function, but usage, command, help etc. are not.

(continue reading)

jetbrains, typescript, node.js
Sep 07, 2017

About

"boneskull" is the alias of Christopher Hiller. This is his blog. Maintainer of Mocha, a JS testing framework. Dev Advocate in Node.js @ IBM. Shenanigans & opinions his own. Also a lizard person.

Tags

  • ai
  • arduino
  • ci
  • cli
  • esp32
  • esp8266
  • ghost
  • javascript
  • jetbrains
  • macos
  • meta
  • micropython
  • mocha
  • mqtt
  • node.js
  • npm
  • openwhisk
  • python
  • raspberry-pi
  • rimraf
  • rollup
  • sensor
  • serverless
  • testing
  • travis-ci
  • tutorial
  • typescript
  • vscode
  • watson
  • web
  • webstorm
  • yeoman

Recent Posts

  • Recursive Directory Removal in Node.js
  • Mocha v6 adds Configuration File Support & Drops Node.js v4.x
  • create-yo: Use any Yeoman generator. Don't install stuff.
Page 2 of 2
Newer Posts

© 2017-2018 Christopher Hiller. Some rights reserved.

boneskull.com is licensed under a Creative Commons Attribution 4.0 International License .