Commit Graph

55 Commits

Author SHA1 Message Date
Sebastien Chopin
4f1e82e959 fix: payload is not fully working on nuxt generate 2017-05-30 12:00:31 +02:00
Sébastien Chopin
ec9e334ed6 Merge pull request #776 from motia/build_dir
[feature] multiple nuxt apps in project
2017-05-28 12:44:25 +02:00
Johan Roxendal
7cfa548ddf renamed generatePayload -> payload 2017-05-24 12:46:22 +02:00
Johan Roxendal
b2d5186e39 renamed routePayload to payload and generatePayload in the context object. added backwards compatability with string-only routes. 2017-05-24 11:32:17 +02:00
Mouti'a Benachour
923f907442 call .nuxt directory buildDir 2017-05-24 00:52:48 +01:00
Johan Roxendal
64e7cab8fa [Feature: generate] Added support for rendering dynamic routes using data cached by generate.routes in the config file. 2017-05-23 12:20:26 +02:00
Sébastien Chopin
8350dbfdbc Disable minify with generate.minify: false 2017-05-21 15:26:39 +02:00
Alexandre Chopin
b060090fb1 fix generate only index.html when router.mode = 'hash' 2017-05-17 16:20:14 +02:00
Alexandre Chopin
2ff304898d generate only index.html when router.mode = 'hash' 2017-05-17 16:19:22 +02:00
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
Sébastien Chopin
6a6b978cd1 Makes generate asynchronous 2017-05-14 20:21:14 +02:00
Pooya Parsa
ef6f0da146 ESLint 2017-05-11 18:29:36 +04:30
Johan Roxendal
40a167258b rewrote generate.js to async/await instead of coroutines 2017-05-11 14:12:25 +02:00
Johan Roxendal
0fe5b2c17f Fixed refractoring error in generate 2017-05-08 09:22:35 +02:00
Sebastien Chopin
39db08c95b Lint 2017-05-05 16:47:28 +02:00
Sebastien Chopin
fd833216df Format code 2017-05-05 12:11:32 +02:00
johan.roxendal@gu.se
70f959ccb8 rolled back changes to render, re-jiggled handling of errors in generate. 2017-05-05 11:47:24 +02:00
Johan Roxendal
d469f38d98 Adds generate error report from renderer and minification. Changes the behavior where generate would terminate on error, now it instead gathers the error from crashing routes and compiles an error report. 2017-05-05 10:59:33 +02:00
Sebastien Chopin
10d18bc454 Add generate.interval 2017-04-25 15:00:42 +02:00
johan.roxendal@gu.se
afa2e6b05c Implemented wait in generate function so generation of dynamic routes with ajax calls are not all sceduled simultaneously, possibly flooding the data backend with queries.
Use generate.wait (ms) to stagger route generate calls over time.

Fixes #590.
2017-04-25 14:04:49 +02:00
Sebastien Chopin
65a3ad5b08 Generate bundles in dist/ if url given 2017-04-25 11:17:23 +02:00
Sébastien Chopin
53f9d62fce Add generate.minify option 2017-03-24 01:25:41 +01:00
Sébastien Chopin
2a005308d2 throw error for tests 2017-03-20 19:19:57 +01:00
Sébastien Chopin
a81862e77f Upgrade dependencies & lint 2017-03-20 17:52:35 +01:00
Sébastien Chopin
8cdd10274f Use empty array if routes not given 2017-03-17 18:52:36 +01:00
Sébastien Chopin
0a595bd1c3 Merge remote-tracking branch 'origin/0.10.0' into 0.10.0
# Conflicts:
#	lib/generate.js
#	lib/utils.js
2017-03-16 18:54:37 +01:00
Sébastien Chopin
e8056f67eb Fix url starting with double slash 2017-03-16 18:52:38 +01:00
Alexandre Chopin
cd16c2f6d2 change generate.routeParams to generate.routes 2017-03-06 20:00:26 +01:00
Alexandre Chopin
749673c99b fix pathToRegexp generate routes 2017-02-22 18:13:23 +01:00
Sébastien Chopin
376362ec39 Handle publicPath 2017-02-16 18:16:00 +01:00
Sébastien Chopin
17650c25e0 Middleware feature 🔥 2017-02-03 15:09:38 +01:00
Sébastien Chopin
da63846f55 Use ES6 syntax with Webpack RC4 2017-01-11 20:15:09 +01:00
Sébastien Chopin
2ae761d2e7 Fix promise call generate 2016-12-21 20:50:46 +01:00
Sébastien Chopin
8102ce48eb Handle validate for nuxt generate 2016-12-21 15:03:23 +01:00
Alexandre Chopin
0df05fd633 html-minifier config 2016-12-12 23:15:54 +01:00
Alexandre Chopin
4ebe6f7ac8 add html minifier for generate 2016-12-12 23:09:11 +01:00
Alexandre Chopin
2c4a512dda generate ok 2016-12-12 21:54:02 +01:00
Sébastien Chopin
b73675206a Merge branch 'master' into pr/44
# Conflicts:
#	lib/build/index.js
2016-12-08 21:13:20 +01:00
Sébastien Chopin
3ded0cd5d0 Disable router base in generate 2016-12-08 18:46:13 +01:00
Sébastien Chopin
ce7e47c7f1 Merge pull request #47 from cj/eslint/no-console
added no-console to eslint
2016-12-08 18:08:32 +01:00
Sébastien Chopin
ac2250c281 Optimise generate out of memory when +10000 paths 2016-12-08 18:07:47 +01:00
cj
c4823f27a8 added no-console to eslint 2016-12-08 09:41:20 -06:00
cj
df363e9770 Added an nuxt.config.js option srcDir 2016-12-08 00:45:40 -06:00
Sébastien Chopin
4d6b85cfdd remove _ options 2016-12-07 18:47:23 +01:00
Sébastien Chopin
16c9710141 .nojekyll needs to be empty 2016-11-27 18:45:50 +01:00
Sébastien Chopin
cbba9d0631 Add .nojekyll file for gh-pages 2016-11-27 18:11:41 +01:00
Sébastien Chopin
40515ac91a Update dept and start next generate 2016-11-24 01:47:11 +01:00
Sébastien Chopin
cb7406cba6 router.base is now working as expected 2016-11-10 19:34:59 +01:00
Sébastien Chopin
9f370cb97c Check if static folder exists 2016-11-10 15:09:10 +01:00