Commit Graph

232 Commits

Author SHA1 Message Date
Pooya Parsa
0f180ad39f remove extra import 2018-03-19 20:00:03 +03:30
Pooya Parsa
984788362a fix(renderer): setAnsiColors is not a function 2018-03-19 19:56:56 +03:30
Pooya Parsa
6f718ec24b hide OPEN message on test 2018-03-18 12:23:06 +03:30
Pooya Parsa
6e54a3868d fix resolvePath with relative paths 2018-03-16 23:33:33 +03:30
Pooya Parsa
ed5bfacb4d eslint: fix import/order 2018-03-16 23:22:17 +03:30
Pooya Parsa
6234ae84c0 refactor(core): use strict mjs 2018-03-16 22:41:24 +03:30
Pooya Parsa
ec616f109b refactor options 2018-03-16 20:53:15 +03:30
Pooya Parsa
53e98a958c feat: rewrite core to esm 2018-03-16 19:42:06 +03:30
Clark Du
1080dfdbd6
deprecate: remove callback in module definition 2018-03-15 18:09:36 +08:00
Clark Du
78aac2df26
deprecate: remove nuxt.plugin 2018-03-15 17:49:14 +08:00
Clark Du
3957bf63bc
chore: fix typo 2018-03-15 15:55:52 +08:00
Clark Du
7bc3ac501b
refactor: add timeout in renderAndGetWindow 2018-03-14 16:18:40 +08:00
Pooya Parsa
4c6bb3767b fix tests 2018-03-12 01:10:16 +03:30
Pooya Parsa
b8f8f18384 optimize webpack 2018-03-12 00:58:56 +03:30
Clark Du
e514ce326c
coverage: ignore file name in error stack trace does not exist 2018-03-09 10:18:08 +08:00
oXg3n
b554a524a8 Fix HTML script tag in core/renderer to pass W3C validation (The type attribute is unnecessary for Javascript resources) 2018-03-08 15:38:29 +01:00
Sébastien Chopin
bb5a604c1b
Merge pull request #2950 from clarkdo/jsdomError
fix: throw jsdomError to avoid renderAndGetWindow hanging
2018-03-06 10:17:07 +01:00
Clark Du
0783be2790
refator: remove jsdomError listener before returning window 2018-03-06 16:29:21 +08:00
Clark Du
d9d747c9a8
refator: only throw jsdomerror in window initialization 2018-03-06 16:14:34 +08:00
Clark Du
d6f22c904d
fix: throw jsdomError to avoid renderAndGetWindow hanging 2018-03-06 14:03:09 +08:00
dojineko
dd9dfc6d55 to be simple 2018-03-05 09:58:10 +09:00
Hana Shiro
0a823252ae fix file permission in lib and test (#2883) 2018-02-27 00:18:36 +03:30
Ricardo Gobbo de Souza
f7928d0413 perf: if need parse path 2018-02-14 17:32:41 -02:00
Ricardo Gobbo de Souza
764fe7b8f1 fix: typo 2018-02-14 17:31:11 -02:00
Ricardo Gobbo de Souza
f0a6bdd51a feat: add layout on module 2018-02-07 09:58:48 -02:00
Ricardo Gobbo de Souza
6f073d7093 fix: conflict old pr 2018-02-05 12:54:36 -02:00
Sébastien Chopin
0b1e54dc57
Merge branch 'dev' into config-pages-dir 2018-02-05 09:16:27 +01:00
Sébastien Chopin
6acd9b6516
Merge pull request #2736 from dojineko/variable-csp
Multiple policy support for Content-Security-Policy
2018-02-05 09:14:11 +01:00
Sébastien Chopin
0a52cd2031
Merge pull request #2755 from clarkdo/static_prefix
feature: add static.prefix
2018-02-05 08:55:28 +01:00
Clark Du
215832769e refactor: add context as third param of render:route hook 2018-02-04 17:57:51 +03:30
Clark Du
28d28cb8c1 feature: pass request to render:route hook 2018-02-04 17:57:51 +03:30
Clark Du
a81af22d41
feature: add static.prefix 2018-02-04 00:54:42 +08:00
Ricardo Gobbo de Souza
536aab6380 Moved options to a new dir block: 2018-02-03 14:04:15 -02:00
Ricardo Gobbo de Souza
483cd9ea29 feat: custom static directory 2018-02-03 09:54:16 -02:00
dojineko
a403205abe tiny fix 2018-02-02 11:18:23 +09:00
dojineko
4fb644fdb3 add csp.policies 2018-02-01 21:20:28 +09:00
Clark Du
f15eb9efa7
test: spa meta preload files 2018-01-29 11:59:05 +08:00
Clark Du
4907e81574
test: resolvePath throws error 2018-01-29 11:41:56 +08:00
Clark Du
a2ac4cb331
test: user istanbul ignore next due to nyc issue 2018-01-29 11:01:37 +08:00
Diederik van den Burger
7bea248fe4 feat: added errorMiddleware hook. (#2703) 2018-01-27 18:42:30 +03:30
Sébastien Chopin
d0e011bdc4
Update meta.js 2018-01-23 11:42:25 +01:00
Clark Du
8b634c210d
feat: add noscript in head 2018-01-23 18:30:36 +08:00
Pooya Parsa
95c85bba62 minor improvements for #2608 2018-01-16 18:41:17 +03:30
Kouki Narumi
5ebf60f2a1 feat: external script support for CSP (#2608) 2018-01-16 18:40:10 +03:30
Pooya Parsa
1075492d8b fix(module): default module options to empty object 2018-01-13 09:45:00 +03:30
Pooya Parsa
10d1b5974c style: format with prettier 2018-01-13 08:52:11 +03:30
Pooya Parsa
642cf4038a fix: regression with module.addVendor with array. fixes #2574. 2018-01-13 00:29:42 +03:30
Pooya Parsa
3c4b57e1f7 minor fixes 2018-01-11 23:13:34 +03:30
Pooya Parsa
f30ef38c70 fix(core): use options.extensions for resolvePath 2018-01-11 22:19:54 +03:30
Pooya Parsa
13166bcf78 misc: improve CLI errors 2018-01-11 19:41:50 +03:30
Pooya Parsa
58279166e2 eslint 2018-01-11 18:45:40 +03:30
Pooya Parsa
cef64cdbad improve error handling 2018-01-11 18:43:52 +03:30
Pooya Parsa
771945c789 use pretty error handler 2018-01-11 17:41:49 +03:30
Pooya Parsa
83236d82ce fix(module): always fill requiredModules 2018-01-11 17:02:31 +03:30
Pooya Parsa
e5ffbdfcd2 feat(module): improve error handling 2018-01-11 16:58:56 +03:30
Samuel Horwitz
6e9be715b2 Adding support for Content-Security-Policy script-src safe inline, for SSR state transfer 2018-01-10 01:36:34 -05:00
Sébastien Chopin
8c04f5d8a6 cov: Ignore fallback conditions 2018-01-08 16:02:18 +01:00
Pooya Parsa
9fc2bace44 feat: upgrade to launch-editor 2.0.0 2018-01-07 11:51:36 +03:30
Pooya Parsa
4e24ec7eba feat: use launch-editor for open-in-editor functionality 2018-01-06 23:27:34 +03:30
Pooya Parsa
05a7595701 improve error source maps 2018-01-05 12:50:08 +03:30
Pooya Parsa
60714ecfc0 minor fixes 2018-01-05 02:03:46 +03:30
Pooya Parsa
42807fcdf9 perf: Use getPreloadFiles for HTTP2 push headers 2018-01-05 01:40:52 +03:30
Pooya Parsa
88b795a83b fix typo 2018-01-04 21:09:12 +03:30
Pooya Parsa
e54beeee1e refactor: move renderer middleware into seperate modules 2018-01-04 21:06:47 +03:30
Pooya Parsa
96c3b4a15b refactor: change _open endpoint to /__open-in-editor
upgrade @nuxtjs/youch to 4.0.0

ref: vuejs/vue-devtools#483
2018-01-04 20:44:48 +03:30
Pooya Parsa
49b43c4be3 improve modulesDir 2017-12-13 04:39:38 +03:30
Pooya Parsa
9b8cbed512 perf: remove rollup build
Using native node 8.x for less transpilations
2017-12-12 13:12:29 +03:30
Pooya Parsa
65f2419052 coverage 2017-12-08 12:34:08 +03:30
Pooya Parsa
cac06d7067 fix(render): add _open middleware only for dev + debug 2017-12-08 12:22:15 +03:30
Clark Du
06ae3868fe feat: add Nuxt.version 2017-11-30 14:00:49 +03:30
Dmitriy
967a442d5e resolve extra modules if nuxt linked (#2212) 2017-11-24 11:50:00 +03:30
Clark Du
4cc4eefcf8 refactor: change getMeta to async 2017-11-24 11:40:21 +03:30
Clark Du
30714c989a refactor: change settimeout to waitFor (#2220) 2017-11-24 11:39:45 +03:30
Clark Du
377416a7ef refactor: eslint adjustments 2017-11-19 17:18:02 +03:30
Clark Du
73509c29ba refactor: remove alreadyRequired which is always true 2017-11-19 17:18:02 +03:30
Pooya Parsa
711e6a916e fix: add deprecated warn for tapables + simple backward compatibility 2017-11-07 17:18:46 +03:30
Atinux
07eab4c643 feat: Handle body scripts from vue-meta 2017-11-06 13:33:19 +01:00
Atinux
8e9f17c491 hooks: Await for modules:before hook 2017-10-31 12:45:32 +01:00
Atinux
7137f848a2 hooks: Handle hooks as object 2017-10-31 12:33:15 +01:00
Sébastien Chopin
daaa5bdd12 hook: Handle hook error and continue process 2017-10-30 23:15:35 +01:00
Sébastien Chopin
ad59f788dc hook: Add render:route hook 2017-10-30 23:15:06 +01:00
Sébastien Chopin
94ad5955e6 Hooks ready to be tested 2017-10-30 22:39:08 +01:00
Atinux
f72e620d7d fix: Remove console.log 2017-10-30 18:44:39 +01:00
Atinux
6648695015 refacto: Hooks 2017-10-30 18:41:22 +01:00
Atinux
83815de91b lint: Update linting rule on space-before-paren 2017-10-30 17:51:11 +01:00
Atinux
379d4f72d4 refacto: Refacto nuxt.build() to finish after webpack is done 2017-10-30 15:46:06 +01:00
Clark Du
327fabb663
fix: originalPositionFor return null when using babel-loader 2017-10-30 12:15:25 +08:00
Sébastien Chopin
262bffc35d minor: Add ENV into app.html template 2017-10-28 16:10:01 +02:00
Sebastien Chopin
e3974b4729 deprecation: Deprecate isServer, isClient and dev 2017-10-20 12:05:22 +02:00
Sebastien Chopin
7afa5e4c13 Fix serverMiddleware as express app without path 2017-10-20 10:52:07 +02:00
Clark Du
f8bc7e2383
refactor: renderToString now returns a Promise if no callback is passed 2017-10-16 11:29:09 +08:00
Pooya Parsa
f6d09642d7 fix renderAndGetWindow for SPA mode 2017-10-07 12:36:34 +03:30
Pooya Parsa
e289edc67e fix: show server errors in console 2017-09-12 02:57:51 +04:30
Pooya Parsa
b41fcbc789 feat: open in editor 2017-09-10 00:52:07 +04:30
Clark Du
eae828ccc6 remove condition due to 'this.options.dev' is always false
Signed-off-by: Clark Du <clark.duxin@gmail.com>
2017-09-08 12:10:57 +08:00
Pooya Parsa
9b8d3f11e7 fix: Handle 404 errors in SPA 2017-09-07 17:06:56 +04:30
Smadey
fd07d1ff38 Add "resourcesLoaded" plugin for Renderer
Provide the ability to modify resources before use.
2017-09-06 10:38:56 +08:00
Pooya Parsa
888b141a27 feat(renderer): allow disable router.base with prefix:false 2017-09-05 21:16:06 +04:30
Pooya Parsa
1fcf3e685e fix(meta): remove data-n-head-ssr 2017-09-05 13:34:59 +04:30
Sebastien Chopin
696ada09c4 Add resourceHints for SPA mode 2017-08-30 14:47:07 +02:00