mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Add basic module integration
This commit is contained in:
parent
252e5cce0a
commit
9db29942e6
9
lib/module.js
Executable file
9
lib/module.js
Executable file
@ -0,0 +1,9 @@
|
||||
'use strict'
|
||||
|
||||
class Module {
|
||||
constructor (nuxt) {
|
||||
this.nuxt = nuxt
|
||||
}
|
||||
}
|
||||
|
||||
export default Module
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user