Commit Graph

422 Commits

Author SHA1 Message Date
renovate[bot] cdf04f4002
chore(deps): update all non-major dependencies (#7363)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-16 12:31:59 +02:00
renovate[bot] c74fb41bde
chore(deps): update all non-major dependencies (#7347)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-13 12:06:13 +02:00
Clark Du 498f408d9a chore(deps): update devdependency eslint to v7 2020-05-11 09:21:54 +01:00
renovate[bot] 8af076d5e6
chore(deps): update all non-major dependencies (dev) (#7326) 2020-05-11 09:14:28 +01: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
Xin Du (Clark) 789f0e6555
chore(dep): upgrade html-webpack-plugin to v4 (#7119) 2020-05-07 11:52:26 +01:00
renovate[bot] c37c3d4da0
chore(deps): update all non-major dependencies (dev) (#7269) 2020-05-07 09:33:52 +01:00
Mathieu TUDISCO 6040257ca3
fix(webpack): allow hmr client path to be set (#7318) 2020-05-05 23:56:03 +02:00
Xin Du (Clark) c2c7081dc2
fix(webpack): use non-eval sourcemap with csp and `unsafe-eval` script policy (#7305) 2020-05-03 21:10:09 +02:00
Xin Du (Clark) 2bd2c3853d
feat(modern): remove inlined safari fix in csp mode (#7306) 2020-05-03 20:15:24 +02:00
Xin Du (Clark) ab3ff4de00
fix(babel): not override presets if babelrc is true (#7297) 2020-05-01 14:23:08 +02:00
renovate[bot] 5516a2182b
chore(deps): update all non-major dependencies (dev) (#7255)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-24 09:13:20 +01:00
renovate[bot] 67b8020c11
chore(deps): update dependency caniuse-lite to ^1.0.30001045 (d… (#7248) 2020-04-21 09:27:20 +01:00
renovate[bot] 3a6dbdd656
chore(deps): update all non-major dependencies (dev) (#7234) 2020-04-20 21:13:50 +01:00
renovate[bot] cf205e7902
chore(deps): update all non-major dependencies (#7188)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-17 11:26:43 +02:00
Xin Du (Clark) c02ded2d86
refactor(config): move `build.crossorigin` to `render.crossorigin` (#7187) 2020-04-07 11:38:49 +02:00
renovate[bot] 20f086d0ce
chore(deps): update all non-major dependencies (dev) (#7179) 2020-04-06 23:14:25 +01:00
Xin Du (Clark) 16b9c157bf
feat(webpack): add mjs to babel-loader (#7178) 2020-04-05 15:41:21 +02:00
renovate[bot] 21b39fc701
chore(deps): update all non-major dependencies (dev) (#7157) 2020-04-05 11:58:52 +01:00
renovate[bot] f18e241f70
chore(deps): update all non-major dependencies (dev) (#7125) 2020-03-26 16:30:01 +00:00
pooya parsa 8d355956d4 v2.12.1
[release]
2020-03-25 20:20:50 +01:00
renovate[bot] a474c00aae
chore(deps): update dependency webpack to ^4.42.1 (#7121) 2020-03-24 10:42:43 +01:00
renovate[bot] 60f1aa93bd
chore(deps): update all non-major dependencies (dev) (#7100) 2020-03-23 11:24:29 +00:00
pooya parsa 205a089f83 v2.12.0 2020-03-17 17:43:35 +01:00
renovate[bot] 29587daf1f
chore(deps): update all non-major dependencies (#7073)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-12 18:59:48 +01:00
renovate[bot] 2afddf03c1
chore(deps): update all non-major dependencies (dev) (#7066) 2020-03-10 22:43:29 +00:00
renovate[bot] 1a34e224d4
chore(deps): update all non-major dependencies (#7052)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-09 14:41:20 +01:00
renovate[bot] 2c4327b867
chore(deps): update all non-major dependencies [release] (#7039) 2020-03-02 19:15:30 +01:00
Pooya Parsa 903c3de5b6
feat: expose webpack config (#7029) 2020-03-02 19:15:00 +01:00
renovate[bot] ee2cceb9b2
chore(deps): update all non-major dependencies (dev) (#7010) 2020-02-27 15:09:23 +00:00
renovate[bot] c785f6e22e
chore(deps): update dependency caniuse-lite to ^1.0.30001030 (#6994)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-24 23:49:38 +01:00
Xin Du (Clark) 10ac6aed9a
feat(wepack): support `@import` using `~assets` in css files (#6987) 2020-02-24 23:47:43 +01:00
renovate[bot] bfc91f9682
chore(deps): update all non-major dependencies (#6978) 2020-02-18 17:01:11 +00:00
renovate[bot] 19fd3e4932
chore(deps): update all non-major dependencies (#6956) 2020-02-16 14:58:21 +01:00
Pooya Parsa d83f697c15 chore: sort package.json 2020-02-06 13:32:56 +01:00
renovate[bot] 917782a642
chore(deps): update all non-major dependencies (#6941)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-04 19:36:53 +01:00
renovate[bot] 5a80599ffa
chore(deps): update all non-major dependencies (#6932) 2020-02-02 15:05:49 +00:00
renovate[bot] 0bd794d1c1
chore(deps): update all non-major dependencies (#6926)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-01-31 00:26:49 +01:00
renovate[bot] 08a3646d47 chore(deps): update all non-major dependencies (#6910) 2020-01-27 20:56:45 +00: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
renovate[bot] 0487ac3c25 chore(deps): update all non-major dependencies (#6898)
[release]
2020-01-21 14:06:21 +01:00
renovate[bot] a715a038f4 chore(deps): update dependency extract-css-chunks-webpack-plugin to ^4.7.4 (#6886) 2020-01-19 09:36:13 +00:00
Pooya Parsa 00d95903c6
fix(webpack): provide global `URL` and `URLSearchParams` (#6864) 2020-01-19 09:37:06 +01:00
renovate[bot] 6891c31d81 chore(deps): update all non-major dependencies (#6879) 2020-01-17 15:26:25 +01:00
renovate[bot] 739b53a0f8 chore(deps): update all non-major dependencies (#6873) 2020-01-15 10:26:13 +00:00
renovate[bot] decb11ac28 chore(deps): update all non-major dependencies (#6867) 2020-01-14 21:03:42 +00:00
renovate[bot] 1a48059438 chore(deps): update all non-major dependencies (#6859) 2020-01-13 11:48:10 +01:00
renovate[bot] 9aa8db4e97 chore(deps): update all non-major dependencies (#6849) 2020-01-11 19:31:14 +00:00
Renovate Bot 8a4f9a5036
chore(deps): update all non-major dependencies 2020-01-05 01:50:33 +00:00
renovate[bot] aada6e50d9 chore(deps): update dependency consola to ^2.11.3 (#6839) 2020-01-01 12:42:55 +01:00