From 9db29942e6f20c25fbcbe5f3d286da8926f978b5 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 11 May 2017 14:34:15 +0430 Subject: [PATCH] Add basic module integration --- lib/module.js | 9 +++++++++ lib/nuxt.js | 3 +++ 2 files changed, 12 insertions(+) create mode 100755 lib/module.js diff --git a/lib/module.js b/lib/module.js new file mode 100755 index 0000000000..54ff424059 --- /dev/null +++ b/lib/module.js @@ -0,0 +1,9 @@ +'use strict' + +class Module { + constructor (nuxt) { + this.nuxt = nuxt + } +} + +export default Module diff --git a/lib/nuxt.js b/lib/nuxt.js index 8ffd6adfe3..c1637f3878 100644 --- a/lib/nuxt.js +++ b/lib/nuxt.js @@ -6,6 +6,7 @@ import compression from 'compression' import fs from 'fs-extra' import pify from 'pify' import Server from './server' +import Module from './module' import * as build from './build' import * as render from './render' import generate from './generate' @@ -111,6 +112,8 @@ class Nuxt { this.generate = generate.bind(this) // Add this.utils (tests purpose) this.utils = utils + // Add module integration + this.module = new Module(this) return this }