Different node versions per directory?

My project is doing a gradual move to gulp-angular-es5 to webpack-angular-es6.
Because some gulp packages require node version<= 0.12, and some packages on webpack-angular-es6 require node version >4, I’m wondering if circleci could be configured to have different node versions per directory.

Currently, the project structure is as follows:
/ : proj. root: uses node v0.12

  • src
  • gulp
  • gulpfile.js
  • package.json
  • webpack_transition/ : uses node v4
    • package.json

ps: Fallback to .nvmrc if Node version not specified looks like one way to do this.

This is actually pretty easy:

machine:
  node:
    version: 0.12
    
test:
  override:
    - test that you want to run with v0.12
    - nvm use 4.0; test you want to run with v4

Ref: https://circleci.com/gh/drazisil/fun-with-circle/4