enb / enb-magic-platform

ENB make platform to create nodes and targets in runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get enb-magic-factory within platform

tadatuta opened this issue · comments

Project to reproduce: https://github.com/theprotein/svg-example

Error text:

TypeError: Cannot read property 'getMetaTaskName' of undefined
    at module.exports (/Users/tadatuta/Sites/svg-example/node_modules/enb-magic-platform/lib/run-tasks.js:14:27)

In run-tasks.js:

module.exports = function (tasks, makePlatform, opts) {
    var factory = makePlatform._projectConfig._modules['enb-magic-factory'],

in runtime makePlatform._projectConfig._modules is just an empty object.

enb-magic-factory is installed:

ls node_modules/ | grep magic
enb-magic-factory
enb-magic-platform

This check https://github.com/enb-bem/enb-magic-platform/blob/7891309dda2fe1a4ed297f3310964c28a2d6d13b/lib/run-tasks.js#L21 was never reached.

I tryed to update npm deps:

diff --git a/package.json b/package.json
index 0359106..8c97639 100644
--- a/package.json
+++ b/package.json
@@ -12,12 +12,12 @@
     "bower-npm-install": "~0.5.4",
     "csscomb": "~3.0.3",
     "cssparser": "^0.2.2",
-    "enb": "0.13.11",
-    "enb-autoprefixer": "0.2.0",
-    "enb-bem-techs": "1.0.0",
+    "enb": "~0.15.0",
+    "enb-autoprefixer": "0.3.0",
+    "enb-bem-techs": "1.0.4",
     "enb-bemxjst": "1.3.3",
-    "enb-borschik": "1.4.0",
-    "enb-magic-platform": "0.4.1",
+    "enb-borschik": "1.5.0",
+    "enb-magic-platform": "0.5.0",
     "enb-modules": "0.2.0",
     "enb-stylus": "^1.2.3",
     "fs-extra": "^0.18.3",
@@ -26,6 +26,7 @@
     "jshint": "2.5.11",
     "jshint-groups": "0.6.2",
     "lodash": "^3.8.0",
+    "nodemon": "^1.3.7",
     "stylus": "0.49.3",
     "svgo": "0.5.0"
   },

but with no luck.

// cc @verybigman

hmm... work fine for me. Use enb make instead magic make

@verybigman yup, looks like it really works with enb make