diff options
Diffstat (limited to 'devbot')
-rw-r--r-- | devbot/build.py | 6 | ||||
-rw-r--r-- | devbot/config.py | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/devbot/build.py b/devbot/build.py index bfb2ce8..23e70e7 100644 --- a/devbot/build.py +++ b/devbot/build.py @@ -177,6 +177,12 @@ def _build_activity(module, log): _builders["activity"] = _build_activity +def _build_node(module, log): + command.run(["npm", "install", "-g"], log) + +_builders["node"] = _build_node + + def _distribute_autotools(module): makefile = parse_makefile("Makefile") filename = makefile["DIST_ARCHIVES"] diff --git a/devbot/config.py b/devbot/config.py index 17283c8..05ffcca 100644 --- a/devbot/config.py +++ b/devbot/config.py @@ -57,6 +57,8 @@ class Module: elif os.path.exists(os.path.join(source_dir, "autogen.sh")) or \ os.path.exists(os.path.join(source_dir, "configure")): return "autotools" + elif os.path.exists(os.path.join(source_dir, "package.json")): + return "node" else: print("The source directory has unexpected content, please " "delete it and pull\nthe source again.") |