Pooya Parsa
d94fddeb38
return promise in requireModule
2017-05-20 13:47:14 +04:30
Pooya Parsa
f0c66b490a
requireModule and addModule
...
requireModule can be used for Meta-Modules to prevent duplicate requires
2017-05-20 13:43:55 +04:30
Pooya Parsa
148c2fc471
serverMiddleware typo
2017-05-19 13:44:24 +04:30
Pooya Parsa
52ee3d050d
update tests
2017-05-15 03:47:13 +04:30
Pooya Parsa
0eb3fc4a05
update tests
2017-05-15 03:31:41 +04:30
Pooya Parsa
632a94a9c6
[module] Tests
2017-05-15 03:03:31 +04:30
Pooya Parsa
cb524e0424
[module] remove extra dot in generated template names
...
node.js preserves dot in ext
2017-05-15 01:29:06 +04:30
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