Commit Graph

13 Commits

Author SHA1 Message Date
Pooya Parsa
2d7b1b1d60 [module] pass ssr as is
This prevents defaulting ssr to false when undefined
2017-05-15 01:26:30 +04:30
Pooya Parsa
11cb84d239 [module] support plugins injectAs 2017-05-15 01:09:27 +04:30
Pooya Parsa
be80f95278 middleware ~> serverMiddleware
To avoid confuse between client and serverSide middlewares
2017-05-12 23:24:00 +04:30
Pooya Parsa
9c1060e06c 🔥 Server Middlewares
This commit adds `middlewares` option to nuxt and accepts connect style middlewares.
Also modules can register middlewares using `this.addMiddleware()` method.
Each entry can be a simple middleware function or {path, handler} to support paths.
2017-05-12 14:52:06 +04:30
Pooya Parsa
12727d1165 [modules] Watch for template changes
`build.watch` option was added
2017-05-12 12:45:37 +04:30
Pooya Parsa
2c37811032 [modules] Add extendRoutes 2017-05-12 12:27:24 +04:30
Pooya Parsa
d57ea4de88 Simpler dst file name generation
Module developers can easily customize filename using fileName key
otherwise it is generated using `[dirname].[filename].[hash].[ext]` template
2017-05-12 00:07:59 +04:30
Pooya Parsa
b701424aae [modules] Support promise 2017-05-11 23:34:50 +04:30
Pooya Parsa
336ebd4959 templatesFiles ~> templates 2017-05-11 23:17:53 +04:30
Pooya Parsa
4800a9e8fd build.templatesFiles
This feature adds advanced plugin and template support to modules
2017-05-11 22:41:00 +04:30
Pooya Parsa
a8d681af3f Fix Module Require 2017-05-11 16:28:20 +04:30
Pooya Parsa
5039459f06 basic API ported from nuxt-modules 2017-05-11 15:29:08 +04:30
Pooya Parsa
9db29942e6 Add basic module integration 2017-05-11 14:34:15 +04:30