UNPKG

pimatic

Version:

A home automation server and framework for the Raspberry PI running on node.js

18 lines (12 loc) 492 B
# fs = require("fs") # env = require('../startup').env # modules = fs.readdirSync ".." # plugins = (m for m in modules when m.match(/^pimatic-.*/)?) # for plugin in plugins # if process.env['PIMATIC_PLUGIN_TEST']? and process.env['PIMATIC_PLUGIN_TEST'] isnt plugin # continue # testFolder = "../#{plugin}/test" # if fs.existsSync testFolder # testFiles = fs.readdirSync testFolder # for testFile in testFiles # (require "../#{testFolder}/#{testFile}") env