Commit Graph

253 Commits

Author SHA1 Message Date
renovate[bot]
ca32427d2e
chore(deps): update all non-major dependencies (#7403)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-25 21:33:34 +02:00
Sébastien Chopin
60ae0fb011
fix(generator): keep generating pages in SPA (#7400)
* fix(generator): keep generating pages in SPA

* chore: fix lint error

Co-authored-by: pooya parsa <pooya@pi0.ir>
2020-05-20 17:55:54 +02:00
Tim van den Eijnden
2e5184688f
fix(generator, builder): empty build and dist directories instead of remove (#7361) 2020-05-13 16:46:13 +02:00
renovate[bot]
8af076d5e6
chore(deps): update all non-major dependencies (dev) (#7326) 2020-05-11 09:14:28 +01:00
Sébastien Chopin
8e2d9764e2
fix(generator): remove trailingSlash for chunkId (#7336)
[release]
2020-05-08 18:10:06 +02:00
Pooya Parsa
631be3a1dd
fix(generator): improve error handling when build does not exists (#7335)
[release]
2020-05-08 16:37:42 +02:00
Sébastien Chopin
80396cbf41 fix(generator): avoid generating route with extension 2020-05-08 16:27:15 +02:00
Sébastien Chopin
29ebccaa65
fix(generator): avoid error if nuxt/config.js does not exists in buildDir (#7332) 2020-05-08 13:55:39 +02:00
Sébastien Chopin
917adc0618
feat: options.target and full-static export (#6159)
* feat: add options.target

* fix(lint): lint

* fix(test): update snapshots

* fix(builder): default value for target

* fix(test): fix test

* fix(test): test fixing

* fix: use this.options.target

* fix: final test

* Update packages/vue-renderer/src/renderer.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* feat: Add target option and update banner

* fix(lint): fix

* feat: Add warning when using serverMiddleware in static target

* chore(utils): add TARGETS and MODES as constants

* hotfix: lint

* chore(module): add filename as alias of fileName

* feat: introducing nuxt export and router/routes.json

* hotfix: Fix the linting lord

* chore(core): add comment for filename vs fileName

* fix: use targets constant

* chore: remove warning

* fix: unit testing

* wip: refactor and use TARGETS

* fix: lint

* feat: add target as alias for first arg value

* fix: generate only for SPA

* chore: explain to use nuxt static X

* fix: render SPA fallback on redirect for static target

* fix: lint issue

* fix: only target is useful for now

* wip

* wip: nuxt static export is looking good

* Update packages/generator/src/generator.js

Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com>

* Update packages/cli/src/options/common.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* feat: add options.target

* fix(lint): lint

* fix(test): update snapshots

* fix(builder): default value for target

* fix(test): fix test

* fix(test): test fixing

* fix: use this.options.target

* fix: final test

* Update packages/vue-renderer/src/renderer.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* feat: Add target option and update banner

* fix(lint): fix

* feat: Add warning when using serverMiddleware in static target

* chore(utils): add TARGETS and MODES as constants

* hotfix: lint

* chore(module): add filename as alias of fileName

* feat: introducing nuxt export and router/routes.json

* hotfix: Fix the linting lord

* chore(core): add comment for filename vs fileName

* fix: use targets constant

* chore: remove warning

* fix: unit testing

* wip: refactor and use TARGETS

* fix: lint

* feat: add target as alias for first arg value

* chore: explain to use nuxt static X

* fix: render SPA fallback on redirect for static target

* fix: lint issue

* fix: only target is useful for now

* wip

* wip: nuxt static export is looking good

* Update packages/generator/src/generator.js

Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com>

* Update packages/cli/src/options/common.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* fix: duplicate imports

* chore: don't server render if an error happens on static target

* test: update unit and add export

* lint: fix

* lint: fix

* fix: e2e test

* fix: fallback only for static target

* fix: dev test

* feat: add generate.crawler

* fix: full static is when generate.static is given

* chore: improvements

* fix: Add isFullStatic in nuxt/config.json

* feat: handle fetch for full static

* feat: router.prefetchPayloads for full static

* chore: use fetch in async-data example

* fix: add target only if given

* fix: use created to have access to props in fetchOnServer

* chore: add console.error in dev for easy debugging

* feat: payload smart pre-fetching

* fix: remove alias for target

* fix: increment payloadFetchIndex is static set to false

* chore: lint

* chore: add serve command

* chore: rename universal to server-side

* fix: handle payloadPath on SPA fallback

* fix: lint

* chore lint again

* feat: handle spa fallback

* feat: support string for exclude

* fix: fallback only if no extension or html

* chore: use JSON.stringify() for static target

* chore: lint again, dammit

* chore: fix tests and remove too early return

* fix: early return only for server target

* fix: update tests

* fix: unit tests

* chore: add ssr option

* chore: add logic for ssr option

* fix: #6682

* chore(dx): add next command to run

* fix: lint

* fix: tests

* chore: keep old behaviour for nuxt build in spa

* fix: test again, oh boy

* fix: alright this is good now

* chore: add comment for spa fallback

* chore: move routes.json to dot nuxt dir

* chore: simplify check for promise

* chore: unique lock id

* chore: refactor isFullStatic

* fix: dont set default in build context

* chore: add test for serve

* chore: update tests

* hotfix: lint tests

* chore(dx): improve message for bundling

* feat: js payload extraction with jsonp

* fix: keep serialized session script for legacy generate

* fix: call to setPagePayload from fetchPayload

* use devalue for payload chunks

* feat: add initial load state chunk

* feat: preload payload and state scripts

* fix(vue-app): don't re-render the app if trailing slash on SSG

* hotfix: remove console.log

* chore(dx): add deploy infos for nuxt export

Co-authored-by: Pooya Parsa <pyapar@gmail.com>

* chore: handle fetching payload.js for nuxt state

* chore(dx): error when using nuxt generate and static

* chore: remove static option for clarity

* chore: remove serverless target

* hotfix: lint

* hotfix: unit tests

* chore: update legacy js resource

* chore: remove query params from url in static target

* fix: use globalName and urlJoin

* chore: typo

* feat: previewMode 👀

* chore: rename to enablePreview

* fix: wait next tick to avoid error on spa

* chore: try 1 sec

* hotfix: test only for linux, wtf azure

* refactor: static assets

- generalize logic for modules need emit export static assets
- allow customization for version, dir and base
- serialization logic is only in ssr now

* feat: smart state chunk creates

* fix(client): ignore payload load error

* perf: avoide payload loading for spa initial

* perf: avoid loading failed chunks again

* chore(cli): add simple compression for nuxt serve

* test: update snapshots

* fix version snapshot

* fix(generator): set staticAssetsBase on context only for full static

* fix tests

* fix: honor shouldHashCspScriptSrc

* chore(dx): add log for client-side fallback creation

Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
Co-authored-by: Alexander Lichter <manniL@gmx.net>
Co-authored-by: Pooya Parsa <pooya@pi0.ir>
Co-authored-by: Devon Rueckner <indirectlylit@users.noreply.github.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-05-07 21:08:01 +02:00
Nicolas PENNEC
a2495a6873
chore: fix typos (#7219) 2020-04-14 11:26:40 +02:00
pooya parsa
8d355956d4 v2.12.1
[release]
2020-03-25 20:20:50 +01:00
pooya parsa
205a089f83 v2.12.0 2020-03-17 17:43:35 +01:00
Pooya Parsa
d83f697c15 chore: sort package.json 2020-02-06 13:32:56 +01:00
renovate[bot]
73a4a8081a chore(deps): update dependency chalk to v3 (#6673)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
2020-01-24 01:06:49 +00:00
Pooya Parsa
2707bdb37e
feat: improve programatic usage (#6868) 2020-01-19 09:36:06 +01:00
Pim
708ae3018e fix(generator): log message or full error for unhandled error without stack trace (#6882) 2020-01-17 10:18:12 +01:00
renovate[bot]
aada6e50d9 chore(deps): update dependency consola to ^2.11.3 (#6839) 2020-01-01 12:42:55 +01:00
Renovate Bot
14e6eb6b27
chore(deps): update all non-major dependencies 2019-12-29 22:19:43 +00:00
Pooya Parsa
7af9ec8c23 v2.11.0 2019-12-17 11:22:18 +01:00
renovate[bot]
51b3163c2a chore(deps): update dependency consola to ^2.11.1 (#6800) 2019-12-17 10:59:30 +01:00
Xin Du (Clark)
e8aca9eb11 chore: update @nuxtjs/eslint-config to v2 and fix lint errors (#6732) 2019-11-26 23:42:39 +01:00
renovate[bot]
abd82805a7 chore(deps): update all non-major dependencies (#6677) 2019-11-12 10:42:05 +00:00
Pooya Parsa
f6aa45dda6 v2.10.2 [release] 2019-10-21 23:16:29 +02:00
Pooya Parsa
624c4c058e v2.10.1 [release] 2019-10-11 10:08:40 +02:00
Clark Du
a0ef4a3736 Merge remote-tracking branch 'origin/2.x' into dev 2019-10-09 19:07:10 +01:00
Alexander Lichter
f28d12c913 fix(generator): remove trailing slash when no subFolders are used (#6362) 2019-10-08 10:47:13 +02:00
Pooya Parsa
c17afa77a7 v2.10.0
[release]
2019-10-02 13:40:59 +02:00
Clark Du
c8ee9a6608 v2.9.2 2019-08-28 12:32:12 +01:00
Xin Du (Clark)
c14bb35aad
test: remove unnecessary generate (#6301) 2019-08-25 23:41:32 +01:00
pooya parsa
0157b971de v2.9.1 2019-08-20 15:41:35 +04:30
pooya parsa
ce3b456961 v2.9.0 2019-08-20 12:51:10 +04:30
renovate[bot]
cb22d841fe chore(deps): update all non-major dependencies (#6193) 2019-08-09 15:04:17 +04:30
renovate[bot]
275c4dc2f1 chore(deps): update dependency consola to ^2.10.0 (#6189) 2019-08-05 13:54:24 +01:00
pooya parsa
e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30
renovate[bot]
ae82a03a28 chore(deps): update all non-major dependencies (#6001)
Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
2019-06-29 05:49:55 +01:00
Xin Du (Clark)
d1395a032a chore: upgrade fs-extra to v8 (#5994) 2019-06-28 00:33:44 +04:30
Ricardo Gobbo de Souza
43a43bc924 fix: downgrade fs-extra to v7 for fixing jest crashing (#5977) 2019-06-25 15:58:20 +01:00
renovate[bot]
99176aa261 chore(deps): update all non-major dependencies (#5955) 2019-06-24 10:00:31 +01:00
renovate[bot]
7d08ff1f4a chore(deps): update dependency consola to ^2.8.0 (#5953) 2019-06-18 17:41:23 +04:30
pooya parsa
2fabea9402 v2.8.1 2019-06-05 00:55:47 +04:30
pooya parsa
7622d66866 v2.8.0 2019-05-30 21:37:38 +04:30
renovate[bot]
1f74362d38 Update dependency consola to ^2.7.1 (#5809) 2019-05-26 14:44:05 +04:30
renovate[bot]
f00f02171f Update all non-major dependencies (#5808) 2019-05-26 14:28:57 +04:30
Pim
fd3ee629fa fix(generator): minify spa fallback (#5791) 2019-05-23 14:15:22 +04:30
renovate[bot]
c2c2945f05 chore(deps): update all non-major dependencies (#5735) 2019-05-15 15:56:07 +04:30
pooya parsa
0f609dfb37 v2.7.1 2019-05-14 23:24:56 +04:30
pooya parsa
5a98230ec6 v2.7.0 2019-05-14 17:05:38 +04:30
renovate[bot]
017d3a490a chore(deps): update all non-major dependencies (#5715) 2019-05-14 12:36:07 +04:30
renovate[bot]
8019c9c7db chore(deps): update dependency fs-extra to v8 (#5702) 2019-05-11 21:12:55 +04:30
renovate[bot]
2fd05e0fe3 chore(deps): update dependency consola to ^2.6.1 (#5674) 2019-05-08 21:36:11 +04:30
pooya parsa
a5cf705ed8 v2.6.3 2019-04-25 13:13:50 +04:30
Pooya Parsa
111132df23
refactor: avoid using _path variable (#5582) 2019-04-22 23:20:07 +04:30
pooya parsa
6cee89324f v2.6.2 2019-04-15 20:45:03 +04:30
Pooya Parsa
ff340abe6f
v2.6.2 (#5523) 2019-04-15 20:43:27 +04:30
pooya parsa
c0776eb2d7 v2.6.1 2019-04-04 22:28:06 +04:30
pooya parsa
0e51676731 v2.6.0 2019-04-04 21:36:17 +04:30
renovate[bot]
d9a2a7e519 chore(deps): update dependency html-minifier to v4 (#5438) 2019-04-01 23:55:08 +04:30
renovate[bot]
82bde15622 chore(deps): update dependency consola to ^2.5.8 (#5416) 2019-03-29 23:01:21 +04:30
pooya parsa
5d7757bf29 v2.5.1 2019-03-22 02:18:39 +04:30
pooya parsa
e2c296321b v2.5.0 2019-03-21 16:37:34 +03:30
renovate[bot]
f8ff8b5d62 chore(deps): update dependency consola to ^2.5.7 (#5283) 2019-03-19 21:09:36 +03:30
pooya parsa
83db959506 v2.4.5 2019-02-26 14:20:41 +03:30
pooya parsa
0ad13e04d2 v2.4.5 2019-02-26 14:01:42 +03:30
renovate[bot]
e2bdaa3880 chore(deps): update dependency consola to ^2.5.6 (#5107) 2019-02-25 22:10:29 +03:30
renovate[bot]
27a201ca54 chore(deps): update dependency consola to ^2.5.5 (#5106) 2019-02-25 21:24:39 +03:30
renovate[bot]
e789a8e727 chore(deps): update all non-major dependencies (#5098) 2019-02-25 21:07:28 +03:30
renovate[bot]
6d90ec2a50 chore(deps): update dependency consola to ^2.4.1 (#5012) 2019-02-12 11:44:29 +03:30
Alexander Lichter
69dfd848d7 refactor: some small stuff (#4979)
* refactor: flatten ifs

* refactor: unnecessary curly brackets

* refactor: unnecessary else

* refactor: promise.all instead of for-await

* refactor: apply changes suggested by @clarkdo

* chore: fix typo

* refactor: early return

* refactor: add removal TODOs

* refactor: more descriptive variable name

* refactor: prefer template string

* refactor: one-line

* refactor: early returns

* refactor: early return

* refactor: parallel promises

* refactor: early return and no else

* refactor: spread operator

* refactor: spread operator and early return

* fix: remove error and throw string instead

* fix: always return true

* refactor: clear multiline ternary

* refactor: err stack assignment

* refactor: early return and async/await

* refactor: one line

* refactor: early return

* refactor: early return

* refactor: promise.all

* refactor: args spread
2019-02-08 17:25:11 +01:00
pooya parsa
4e30bda44e v2.4.3 2019-02-06 19:37:24 +03:30
pooya parsa
13e494c0f0 v2.4.3 2019-02-06 19:26:54 +03:30
renovate[bot]
76736f8ac7 chore(deps): update all non-major dependencies (#4954) 2019-02-06 01:17:01 +03:30
Clark Du
fb13b41cf1 Merge remote-tracking branch 'upstream/2.x' into dev 2019-01-30 20:24:13 +00:00
Clark Du
32b0f155c9 v2.4.2 2019-01-30 15:15:05 +00:00
Pooya Parsa
3348cd6cd5 release: 2.4.1 (#4889)
# Bugfixes 

* Handle `async` components correctly when using `nuxt-ts` (PR #4886)
* Fix `extractCSS` in `dev` mode (PR #4888)
* Correctly apply class when using `linkPrefetchedClass` (PR #4893)
2019-01-30 14:09:09 +00:00
Clark Du
ade4bbe486 v2.4.1 2019-01-30 14:07:33 +00:00
Xin Du (Clark)
e22a282eab
test: unit tests for generator (#4857) 2019-01-29 10:16:45 +00:00
Clark Du
5f221b4b7e v2.4.0 2019-01-28 17:41:28 +00:00
Alexander Lichter
40fbe5ba47 refactor: cleanups and code style improvements (#4788) 2019-01-18 00:48:29 +03:30
Alexander Lichter
ec17804c48 feat: add exclude regex array for generated pages (#4754) 2019-01-16 21:13:56 +03:30
renovate[bot]
3ccfcedb65 chore(deps): update all non-major dependencies (#4692) 2019-01-06 12:36:24 +03:30
renovate[bot]
438b430a2e chore(deps): update all non-major dependencies (#4670) 2019-01-03 01:22:25 +03:30
Xin Du (Clark)
324135df51 refactor: @nuxt/utils (#4609) 2018-12-23 00:35:13 +03:30
Jonas Galvez
655f11cefd chore: update code to meet new curly-all rule (#4505)
[skip ci]
2018-12-10 01:30:48 +03:30
Pooya Parsa
8cc954d48e merge 2.x changes into dev
commit 0f28f9cdb6
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:23:55 2018 +0330

    add simple release script

commit 16c5b892fa
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:20:03 2018 +0330

    v2.3.4

commit e4a02a51ac
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:17:40 2018 +0330

    whitelist CHANGELOG files

commit c96e9f4996
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:14:29 2018 +0330

    lerna auto tag

commit be126bd962
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:12:22 2018 +0330

    remove extra gitHead

commit eefa13033f
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:09:31 2018 +0330

    hotfix: build on prepublish hook

commit d0af6a4736
Author: Sébastien Chopin <seb@chopin.io>
Date:   Mon Nov 26 18:37:12 2018 +0100

    bump: Bump to v2.3.3

commit 2e90166f2a
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 20:32:11 2018 +0330

    update @nuxtjs/opencollective to 0.2.0

commit f10c9829a8
Author: renovate[bot] <renovate[bot]@users.noreply.github.com>
Date:   Mon Nov 26 20:24:49 2018 +0330

    chore(deps): update dependency vue-meta to ^1.5.6 (#4427)

commit b7285fe8f3
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 20:05:18 2018 +0330

    remove build with devtools tests as feature is not merged yet

commit b582e706fc
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 19:58:34 2018 +0330

    update patch-only dependencies

commit 289d30f836
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 19:55:51 2018 +0330

    remove typings

commit 7e1beed9b8
Author: Dmitry Molotkov <aldarund@gmail.com>
Date:   Sun Nov 25 17:48:13 2018 +0300

    perf(pkg): remove lodash dependency from packages (#4411)

commit 4a85c0311f
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Sun Nov 25 22:46:19 2018 +0330

    fix(pkg): move opencollective dependency nuxt and nuxt-legacy (#4415)

commit d1877935a3
Author: Dmitry Molotkov <aldarund@gmail.com>
Date:   Sun Nov 25 17:52:37 2018 +0300

    fix(server, vue-app): allow unicode page names (#4402)

commit e1c1240b8d
Author: Alexander Lichter <manniL@gmx.net>
Date:   Sun Nov 25 14:51:32 2018 +0000

    fix(server, jsdom): fix timeout error message (#4412)

    [skip release]

commit 0c6c69b011
Author: Alexander Lichter <manniL@gmx.net>
Date:   Sat Nov 24 21:35:43 2018 +0000

    fix(scrollBehavior): emit triggerScroll event after changing layer (#4399)

    resolves: #4080

commit 8030ca1a3d
Author: Alexander Lichter <manniL@gmx.net>
Date:   Sat Nov 24 18:30:28 2018 +0000

    fix(progress-bar): allow 0 for values and remove duplicate defaults (#4397)

commit 54d273720c
Author: Clark Du <clark.duxin@gmail.com>
Date:   Sat Nov 24 00:02:13 2018 +0000

    fix: router Expected "0" to be defined (#4394)

commit 47f02ae5ca
Author: Clark Du <clark.duxin@gmail.com>
Date:   Fri Nov 23 22:34:05 2018 +0000

    fix: empty error message in dev mode

commit ff7c083dda
Author: Clark Du <clark.duxin@gmail.com>
Date:   Thu Nov 22 15:48:26 2018 +0000

    fix: modern=true or false not work as expected (#4378)
2018-11-26 21:32:10 +03:30
Sébastien Chopin
205c9d3815 bump: Bump to v2.3.2 2018-11-20 21:48:46 +01:00
renovate[bot]
991e191c12 fix(deps): update all non-major dependencies (#4358)
[skip ci]
2018-11-20 22:58:20 +03:30
Pooya Parsa
b472e47466 [skip ci] remove changelogs 2018-11-20 22:56:45 +03:30
Pooya Parsa
c3318644c1 [skip ci] use dependent versioning 2018-11-20 22:56:45 +03:30
Sébastien Chopin
2f7ba13084 fix: Bump to v2.3.1 2018-11-16 09:30:11 -05:00
Sébastien Chopin
fcea3ebbc6 bump: Nuxt v2.3.0 2018-11-16 09:15:00 -05:00
Pooya Parsa
ca5d53850b fix(pkg): stick @nuxt dependency versions (#4339) 2018-11-15 21:32:51 +00:00
renovate[bot]
bfb6d6a22a fix(deps): update all non-major dependencies (#4310) 2018-11-14 23:58:17 +03:30
renovate[bot]
16c8237f1c chore(deps): update all non-major dependencies (#4298)
[skip ci]
2018-11-09 01:18:29 +03:30
renovate[bot]
b290c078f2 fix(deps): update dependency consola to ^2.2.3 (#4293) 2018-11-08 15:20:55 +03:30
Pooya Parsa
7c4e77ffb9
feat: dx improvements (#4259) 2018-11-08 12:45:56 +03:30
renovate[bot]
dd114ff74f fix(deps): update all non-major dependencies (#4271) 2018-11-08 02:09:37 +03:30
renovate[bot]
1a154e8188 fix(deps): update all non-major dependencies (#4270) 2018-11-05 02:29:06 +03:30
renovate[bot]
47f67cc26a fix(deps): update dependency consola to ^2.2.0 (#4269) 2018-11-04 22:18:39 +03:30
renovate[bot]
f10f860292 fix(deps): update all non-major dependencies (#4253) 2018-11-03 22:16:58 +03:30
Pooya Parsa
1dd32d0d21 feat: update to consola 2 (#4247)
* add ~> addReporter

* remove badge

* withScope ~> withTag

* update to consola 2

* update build tests
2018-11-01 04:50:07 +01:00
Pooya Parsa
39b558f59c
refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30
renovate[bot]
930f8b273c fix(deps): update all non-major dependencies (#4200) 2018-10-27 00:17:37 +03:30
Clark Du
9df5f49e07 feat: split builder into more refined modules (#4171)
New packages:
- `@nuxt/webpack`
- `@nuxt/generator`
2018-10-24 20:25:18 +03:30