Commit Graph

89 Commits

Author SHA1 Message Date
renovate[bot]
cdf4c62dc5
chore(deps): update all non-major dependencies (2.x) (#23966)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-11-23 15:02:41 +00:00
renovate[bot]
5674f49ab8
chore(deps): update all non-major dependencies (2.x) (#22820)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-11 16:19:21 +01:00
renovate[bot]
b381000de6
chore(deps): update all non-major dependencies (2.x) (#22706)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-08-25 19:55:58 +01:00
renovate[bot]
7ffa47c520
chore(deps): update all non-major dependencies (2.x) (#21820)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-07-07 11:25:40 +01:00
Daniel Roe
f93411c7c9 test: update jest snapshots to remove escaped quotes 2023-05-19 12:51:26 +01:00
renovate[bot]
9190b83769
chore(deps): update all non-major dependencies (2.x) (#20110)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-04-06 15:03:04 -07:00
renovate[bot]
5ffbcfab0e
chore(deps): update all non-major dependencies (2.x) (#19916)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-04-06 05:36:07 -07:00
Xin Du (Clark)
454a9af242
feat(webpack)!: update postcss to v8 (#9671)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-02 07:13:28 -08:00
Rafał Chłodnicki
7a25294c5f
fix(webpack): allow files with .cjs extension to be transpiled (#10340)
[release]
2022-06-24 01:07:09 +02:00
pooya parsa
e5efc25940
chore: update dependencies (#10510)
[release]
2022-06-24 00:58:52 +02:00
renovate[bot]
c7ea13ea9f
feat: update std-env to v3 (#10012) [release]
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-11-03 18:46:49 +01:00
Daniel Roe
293dc11ae6
feat: default to core-js version 3 (#9987) 2021-10-27 13:40:51 +02:00
Daniel Roe
7955553070
fix(webpack): use javascript/auto for js rule (#9180) 2021-05-17 20:55:14 +02:00
Evan Ma
89e8fe07b8
fix(config): compile type compatibility in css-loader v4 (#9014) 2021-03-22 11:30:19 +01:00
Xin Du (Clark)
c610d95507
chore(deps): upgrade to @nuxtjs/eslint-config v6 (#8942) 2021-03-07 12:40:05 +00:00
Daniel Roe
d0e7dd1c51
test(cli): fix dependency test (#8801) 2021-02-09 17:55:23 +00:00
Daniel Roe
e5d202badb
feat(cli): warn if incompatible node/package versions detected (#8792)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-02-09 18:35:22 +01:00
GeopJr
083505603f
chore(cli): fix typo (#8674) 2021-01-22 12:04:46 +01:00
Xin Du (Clark)
b2e38f5c92
fix(webpack): can't resolve absolute url in css (#8555) 2020-12-27 23:53:05 +00:00
pooya parsa
dec8f99fc3
feat: support plug-and-play, typescript runtime and native modules (#8389)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-12-22 18:07:50 +01:00
Xin Du (Clark)
ab039f051a
feat: update all dependencies that require node 10.x (#8346) 2020-12-01 12:40:50 +01:00
Pooya Parsa
3b19e3f4b8 chore: update tests 2020-11-30 23:54:30 +01:00
pooya parsa
c15fc421ab
refactor: use nuxt everywhere (#8210) 2020-11-30 23:44:04 +01:00
Xin Du (Clark)
418405c216
chore(actions): speed up windows build (#8265) 2020-11-04 13:38:38 +00:00
pooya parsa
819afcdeb4
fix(cli): avoid error about nuxt-edge if installed in parent node_modules (#8194) 2020-10-13 12:20:04 +02:00
Xin Du (Clark)
202f35584b
fix(cli): mode deprecation with explicit spa or universal flag (#8134) 2020-10-08 16:30:02 +02:00
Alexander Lichter
a969e87014
chore: add avif format as image (#7961) 2020-08-25 15:10:22 +01:00
Ahad Birang
4a9c9a15f3
fix(cli): improve project dir detection for external commands (#7860) 2020-08-05 22:23:25 +02:00
Rafał Chłodnicki
e295ae7ffd
fix: add types for build.corejs option and use number (#7789) 2020-07-28 14:33:15 +02:00
Ahad Birang
6a2576b6f6
feat(webpack): auto detect core-js version (#7785)
* feat: add build option to set corejs version

* fix tests

* refactor: improve error handling and warn for invalid corejs version

* fix: only pick major part

* simplify as we are already using try/catch

Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-07-27 15:36:46 +02:00
pooya parsa
c5a4465572
feat: static target DX improvements (#7712)
[release]

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: pimlie <pimlie@hotmail.com>
2020-07-16 17:10:54 +02:00
pooya parsa
a88953fe8f
feat(cli): improve banner lines dx (#7537)
* feat: improve banner ocdx

* chore: make NODE_ENV more clear

* chore: update tests and improvements

* shame on me

* chore: mode ~> rendering
2020-06-17 16:37:19 +02:00
Sébastien Chopin
5cfaf0aca1
refactor(banner): reduce boxen size (#7532)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-06-16 21:48:58 +01:00
pooya parsa
796282ceec
feat: improve production debugging dx (#7463) 2020-06-09 21:45:52 +02:00
Pooya Parsa
0337932115
feat: runtime config and built-in dotenv support (#7312)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2020-05-18 10:21:15 +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
Xin Du (Clark)
8c7228f1e8
test: update jest to v26 (#7319) 2020-05-05 23:53:07 +02:00
Xin Du (Clark)
16b9c157bf
feat(webpack): add mjs to babel-loader (#7178) 2020-04-05 15:41:21 +02:00
Pooya Parsa
903c3de5b6
feat: expose webpack config (#7029) 2020-03-02 19:15:00 +01:00
Clark Du
fdd9a7a051 test: avoid unexpected outside stderr assertion count 2020-01-19 10:26:44 +00:00
Pooya Parsa
2707bdb37e
feat: improve programatic usage (#6868) 2020-01-19 09:36:06 +01:00
Pim
75e00fe69f feat(cli): pass context when nuxt.config exports a function (#6855) 2020-01-13 17:35:08 +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
Daniel Roe
46a7a67ad4 feat(cli, config): cli.bannerColor option (#6399) 2019-09-30 10:46:58 +02:00
Pim
27e03531d6 feat(cli): catch build errors with cli:buildError hook (#6475) 2019-09-29 10:11:32 +02:00
Kevin Marrec
05a6efd1eb chore: rename setup hook to run:before (#6363) 2019-09-05 10:45:39 +02:00
Kevin Marrec
bdcf4c8304 refactor(cli): call setup hook in run command with more args (#6353) 2019-09-04 12:06:34 +02:00
Pooya Parsa
f0ab042bf4
chore(cli): accept hooks (#6274) 2019-08-24 18:45:08 +04:30
Kevin Marrec
81b5ce22ce feat: externalize typescript support (#5858) 2019-07-24 11:56:44 +04:30
Xin Du (Clark)
e63923419a fix error when use alias for nuxt-edge (#6051) 2019-07-10 14:27:31 +04:30