Commit Graph

496 Commits

Author SHA1 Message Date
renovate[bot] 6e07ff1b92
chore(deps): update dependency css-minimizer-webpack-plugin to v2 (#74)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 23:41:20 +02:00
pooya parsa babb70a4bd
feat(nitro): server assets (#83) 2021-04-12 23:28:48 +02:00
pooya parsa 31f06e9f69
feat(nitro): storage support (#76) 2021-04-11 23:22:02 +02:00
pooya parsa 2d60e71fcb
feat(nitro): raw loader (#75) 2021-04-11 20:20:41 +02:00
Pooya Parsa bb797fcbb6 chore: release
- @nuxt/app@0.3.0
 - nuxt-cli@0.2.0
 - @nuxt/kit@0.3.0
 - @nuxt/nitro@0.4.0
 - nuxt3@0.3.0
 - @nuxt/vite-builder@0.2.0
 - @nuxt/webpack-builder@0.2.0
2021-04-09 18:02:40 +02:00
Pooya Parsa 6bca511b19 chore: remove globby and chokidar stub types 2021-04-09 17:56:54 +02:00
pooya parsa a030c62d29
feat: initial version of nu cli (#54) 2021-04-09 17:52:45 +02:00
renovate[bot] b0a8ec6368
chore(deps): update all non-major dependencies (#62)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-09 15:55:58 +02:00
pooya parsa c351574043
chore: update build scripts (#69) 2021-04-09 15:48:39 +02:00
Daniel Roe 00c7ede623
fix(nitro): exclude `rootDir` from externals and reinstate automock warning (#66) 2021-04-09 10:03:49 +02:00
Pooya Parsa 3eb3927779 chore: release
- @nuxt/nitro@0.3.0
 - nuxt3@0.2.6
2021-04-08 16:56:32 +02:00
Pooya Parsa b536ab4ba7 feat: basic support for netlify_builder target (#18)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-04-08 16:54:50 +02:00
Pooya Parsa 4d69c9fb55 chore: release
- @nuxt/nitro@0.2.4
 - nuxt3@0.2.5
2021-04-06 15:09:01 +02:00
Pooya Parsa f66d917729 fix(nitro): add temporary workarouind for ufo resolution in nuxt2 2021-04-06 14:57:10 +02:00
Pooya Parsa 7b5bd53a02 chore: release
- @nuxt/app@0.2.1
 - @nuxt/nitro@0.2.3
 - nuxt3@0.2.4
 - @nuxt/webpack-builder@0.1.2
2021-04-06 14:27:17 +02:00
Pooya Parsa 3d1f0ae64c chore: mark nuxt-cli as implicit dep of nuxt3 2021-04-06 14:26:42 +02:00
renovate[bot] dfe99caaf1
chore(deps): update all non-major dependencies (#40)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-06 14:18:17 +02:00
pooya parsa b12cbc5ed2
fix: use `globalThis` instead of `global` (#59) 2021-04-06 14:10:57 +02:00
Daniel Roe 7f97015c74
fix(app, nitro): fix `app:rendered` hook (#53)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-04-06 11:26:53 +02:00
Alexander Lichter 07e70ac35a
chore(nitro,nuxt3): add READMEs again (#55) 2021-04-06 11:21:47 +02:00
Pooya Parsa 07e1126508 chore(nitro): fix types 2021-04-05 21:08:53 +02:00
Daniel Roe 2db79adfb8
chore(nuxt3): add more types (#51)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-04-05 00:15:34 +02:00
Daniel Roe 06f1ba9853
chore(nitro): add some more types (#49)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-04-04 23:06:56 +02:00
Pooya Parsa 0ba484b99a chore: release
- @nuxt/nitro@0.2.2
 - nuxt3@0.2.3
2021-04-04 22:56:15 +02:00
Pooya Parsa 922fc109dc chore: release
- @nuxt/nitro@0.2.1
 - nuxt3@0.2.2
2021-04-04 19:57:49 +02:00
Pooya Parsa 16cc09bd76 fix(nitro): pass req, res to ssr context (resolves #39) 2021-04-04 19:57:42 +02:00
Pooya Parsa c864c5a30c fix(nitro): resolve alias for serverMiddleware 2021-04-04 19:54:12 +02:00
Pooya Parsa 6e1cb62231 fix(nitro): add missing kit dependency 2021-04-04 19:46:18 +02:00
Pooya Parsa 9c21ea52ea fix(nitro): add back compat entry 2021-04-04 19:39:54 +02:00
Pooya Parsa f26daa7a60 chore: release
- nuxt3@0.2.1
2021-04-04 17:59:08 +02:00
Pooya Parsa 3e794a36f2 fix(nuxt3): install nuxt-cli by default 2021-04-04 17:57:02 +02:00
Pooya Parsa ada29d411b Publish
- @nuxt/app@0.2.0
 - nuxt-cli@0.1.1
 - @nuxt/kit@0.2.0
 - @nuxt/nitro@0.2.0
 - nuxt3@0.2.0
 - @nuxt/vite-builder@0.1.1
 - @nuxt/webpack-builder@0.1.1
2021-04-04 17:51:31 +02:00
Pooya Parsa 236cb3f7a1 chore: rename nu to nuxt-cli 2021-04-04 17:48:19 +02:00
pooya parsa ef2f9993cb
chore: switch to berry (#50) 2021-04-04 16:22:40 +02:00
Pooya Parsa 5d5183ee82 perf(webpack): use fs cache by default 2021-04-04 14:28:55 +02:00
Pooya Parsa 5ed6fa7612 fix(kit): properly resolve _nuxtConfigFiles 2021-04-04 14:28:31 +02:00
Pooya Parsa 94d36976c7 fix(app): provide appDir via meta export 2021-04-03 17:08:42 +02:00
pooya parsa f47808f59a
refactor: extract vite and webpack builders (#45) 2021-04-03 15:38:07 +02:00
pooya parsa 2c1eb87671
fix: webpack compilation (#41) 2021-04-03 14:42:02 +02:00
Daniel Roe efabacd8e2
feat(app): asyncData with global state and explicit key (#37)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2021-04-03 12:03:20 +02:00
Pooya Parsa 2849559598 ✔️ 2021-04-02 22:47:23 +02:00
Pooya Parsa 4829d89b17 chore: fix type and imports 2021-04-02 21:38:11 +02:00
Pooya Parsa 6fb4028850 fix(dep): pin esbuild to 0.10.x due to module breaking changes 2021-04-02 19:42:53 +02:00
renovate[bot] c0b8d08819
chore(deps): update all non-major dependencies (#35)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-02 13:48:20 +02:00
pooya parsa b3f3dc94f3
feat: module utils and improvements (#38) 2021-04-02 13:47:01 +02:00
Pooya Parsa fe318d483d chore: udate @nuxt/app imports 2021-03-29 11:40:51 +02:00
Pooya Parsa 823e1a1eb4 refactor: nuxt3 utils 2021-03-29 11:33:38 +02:00
Pooya Parsa 5b146c0c88 chore: fix lint error 2021-03-28 23:15:24 +02:00
Pooya Parsa 636d1e38bb refactor: flatten nuxt3 src
some packages yet to be externalized
2021-03-28 23:12:37 +02:00
Pooya Parsa 547b8ec2a7 refactor: move utils to kit
to be rewritten
2021-03-28 23:12:37 +02:00
Pooya Parsa c9347e3f5b feat: create `nu` cli 2021-03-28 23:12:37 +02:00
renovate[bot] 55f2b3c4c1
chore(deps): update dependency @rollup/plugin-commonjs to v18 (#33)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-28 22:57:06 +02:00
renovate[bot] 6db77cca58
chore(deps): update all non-major dependencies (#32)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-28 22:50:51 +02:00
Pooya Parsa c95d88c6cb refactor: externalize `@nuxt/app` 2021-03-28 22:49:05 +02:00
pooya parsa 46f771a98b
feat: `@nuxt/kit` and new config schema (#34) 2021-03-28 22:14:04 +02:00
renovate[bot] 4c4cbfe0ff
chore(deps): update all non-major dependencies (#30)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-18 15:27:51 +01:00
Pooya Parsa a16e13b1de chore: upgrade to monorepo 2021-03-18 15:26:41 +01:00
Pooya Parsa 8d6b97a4ac chore: merge nitro into monorepo 2021-03-17 20:09:00 +01:00
Daniel Roe 545bfe4f9e feat: add `nuxt-head` component (#166) 2021-03-17 10:18:32 +01:00
Daniel Roe 451fc29b60 fix(app): improve composables (#183) 2021-03-17 10:17:18 +01:00
Daniel Roe 960523c4b8 chore: improve ide dx in playground (#185)
* chore: improve ide dx in playground

* fix(types): correct builder types
2021-03-17 10:11:37 +01:00
renovate[bot] e3aee4bb81 chore(deps): update devdependency @nuxtjs/eslint-config-typescript to v6 (#178)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
2021-03-10 20:11:49 +00:00
Alexander Lichter 8cc836ebf6 fix(cloudflare, lambda): preserve query parameters in url (#155) 2021-03-10 11:25:05 +01:00
Xin Du (Clark) 2c9854dfe3 fix(webpack): types in webpack and await compiler close (#176) 2021-03-05 18:17:05 +00:00
Daniel Roe fdc0ffef8d fix(compat): enforce nuxt generate for static target (#148) 2021-03-05 12:13:35 +01:00
Sébastien Chopin 5248c61ed0 feat: add asyncData and improve reactivity (#174)
* feat: add asyncData and improve reactivity

* chore: lint fix
2021-03-01 10:45:37 +01:00
Pooya Parsa 5bfacf1f55 fix: avoid overriding hooks
input is merged extra
2021-02-26 20:15:41 +01:00
Pooya Parsa 040e14f2b6 fix: update nitro preset for dev 2021-02-22 20:11:54 +01:00
Pooya Parsa 97478dde96 chore: less verbose server routes table 2021-02-22 19:38:32 +01:00
Pooya Parsa b7b9fbf927 chore: disable verbose output in test environment 2021-02-22 18:47:32 +01:00
Pooya Parsa 8a22fa333e feat: update preset options
external tracing enabled by default for node. this change is potentially breaking demo
2021-02-22 13:12:59 +01:00
Pooya Parsa eebdb2870a chore(presets): rename local to dev 2021-02-22 12:34:27 +01:00
Pooya Parsa 5e6fb802f3 fix(resolveMiddleware): remove legacy handler and path props 2021-02-22 11:37:29 +01:00
Pooya Parsa 29409f064f add preventAssignment option 2021-02-22 11:31:45 +01:00
Xin Du (Clark) 52d28c041a fix(types): type definitions errors (#172) 2021-02-22 11:04:46 +01:00
Pooya Parsa 52592a5d64 fix: replace ~build with nuxt/build
vite sees does not likes ~ for alias when file is in node_modules
2021-02-19 15:21:50 +01:00
Pooya Parsa 709611941b fix: use globalThis for client plugin 2021-02-19 15:11:35 +01:00
Daniel Roe e1f409ea51 fix: force rebuild on new files being added (#136) 2021-02-19 15:01:08 +01:00
Pooya Parsa a1ac066cb5 fix: polyfill $fetch on globalThis
TODO: nitro client plugin needs rewrite
2021-02-19 14:59:47 +01:00
Sébastien Chopin bece3b85ab feat: support auto import of plugins (#169) 2021-02-19 02:08:45 +01:00
Sébastien Chopin 498a234039 chore: update welcome app 2021-02-18 20:16:42 +01:00
pooya parsa 85da52d390 feat: support server directory (#132)
* feat: support server directory

* fix sorting and global

* lazy load api

* pretty print opts

* fix: hide table when no middleware
2021-02-18 17:06:58 +01:00
Pooya Parsa 23f6578c88 fix: include nitro.client plugin for global $fetch 2021-02-18 13:09:15 +01:00
Sébastien Chopin d48d920a81 chore(app): update logo 2021-02-18 12:29:55 +01:00
Sébastien Chopin 2548e753c0 docs: wip welcome page 2021-02-18 12:17:27 +01:00
Pooya Parsa 270bbbc47e fix: init nitro before module container (closes #165) 2021-02-18 11:47:23 +01:00
Pooya Parsa f5d96eb60c chore: fix lint error 2021-02-17 21:40:13 +01:00
Pooya Parsa 30c6b1d8e6 chore: update vite 2021-02-17 21:37:56 +01:00
Pooya Parsa c2d93aa55a chore: minimal webpack stats 2021-02-17 21:15:47 +01:00
Pooya Parsa 64ca193ac9 fix(webpack): remove hmr chunks from client manifest 2021-02-17 20:39:02 +01:00
Pooya Parsa 7b3244a567 fix(builder): empty buildDir only once by build 2021-02-17 19:32:37 +01:00
Sébastien Chopin d63b28303e fix: don't display 404 page if no pages/ 2021-02-17 15:29:15 +01:00
Daniel Roe 27aef1489f fix: allow numbers in dynamic webpack chunk names (#125) 2021-02-16 12:11:52 +00:00
Daniel Roe 0942d72553 fix: allow matching dynamic page routes 2021-02-16 11:29:18 +00:00
Daniel Roe c1cd37d8c5 fix: load webpack modules synchronously with `require` (#104)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-02-16 11:51:53 +01:00
Pooya Parsa b4251b1389 Merge branch 'main' of github.com:nuxt/nuxt3 into main 2021-02-09 15:56:21 +01:00
Daniel Roe 65229ffb04 feat: mock debug (#118)
closes #97
2021-02-09 14:16:33 +00:00
Daniel Roe 9390acce83 feat: add firebase preset (#100) 2021-02-08 09:04:26 +01:00
Daniel Roe abb21f30ca fix: allow resolving relative `package.json` in vite mode
closes #146
2021-02-05 22:09:16 +00:00
Daniel Roe c76bd35c29 fix: use allowlist approach to chunk name (#101)
closes #93
2021-02-05 18:52:18 +01:00
Sébastien Chopin a8707469f8 feat: useAsyncData (#142)
* feat: useAsyncData

Resolves #141

* chore: improvements

* chore: fix lint
2021-02-03 19:14:30 +01:00
Sébastien Chopin b04e212ebc chore: router improvements (#139) 2021-02-02 17:42:48 +01:00
Daniel Roe 31a9bc2d18 feat: add support for Azure static web apps (#92) 2021-02-01 09:24:49 +00:00
Daniel Roe 97efab4270 fix: check for server webpack config (#91) 2021-01-30 22:05:40 +00:00
Xin Du (Clark) 5aa31613bd fix(config): always disasble server sourceMap (#88) 2021-01-24 22:12:07 +01:00
Xin Du (Clark) 1b142148eb fix(compat): disable webpack sourcemap (#84) 2021-01-24 21:30:20 +01:00
Xin Du (Clark) 67a82a7ab9 fix(compat): cannot read property setLegacyMiddleware of undefined (#82) 2021-01-24 20:18:20 +01:00
Xin Du (Clark) 2d0ff10892 fix(rollup): dirnames not generate a sourcemap for the transformation (#83) 2021-01-24 20:16:39 +01:00
Pooya Parsa 694a6b5635 fix(vite): include deps from nuxt3 package 2021-01-22 23:32:02 +01:00
pooya parsa 9be282623c feat: initial support for vite bundler (#127) 2021-01-22 23:02:33 +01:00
Pooya Parsa 9c4a14074c chore: fix lint errors 2021-01-22 22:34:23 +01:00
Pooya Parsa faabd1ab54 feat: migrate to nitro 2021-01-22 21:57:17 +01:00
Pooya Parsa c89166f8f9 fix: remove use of html-webpack-plugin
fixes deprecation warnings and we don't need it anyway
2021-01-22 21:57:17 +01:00
Pooya Parsa fff38618fe chore: allow passing listhen options 2021-01-22 21:32:29 +01:00
Pooya Parsa 5248905dd7 refactor: rebrand to nitro 2021-01-22 20:55:59 +01:00
Pooya Parsa 41951c8862 refactor: move nuxt2 plugin to compat 2021-01-22 20:53:40 +01:00
Eduardo San Martin Morote 0b31d93892 fix(router): generate empty array (#133)
fix #129
2021-01-22 17:41:31 +01:00
Pooya Parsa ba0fae74a7 fix: remove NuxtChild refs (#113) 2021-01-22 12:25:13 +01:00
Eduardo San Martin Morote dc2d17baca refactor: remove nuxt-child (#131) 2021-01-22 11:56:28 +01:00
Pooya Parsa d94aec4841 fix: fix _interopDefault implementation 2021-01-21 15:49:34 +01:00
Pooya Parsa 4f09b514f1 fix: _interopDefault potential cjs files 2021-01-21 15:46:05 +01:00
Pooya Parsa 0b886cf57f feat: serve-placeholder 2021-01-21 14:21:33 +01:00
Pooya Parsa a6936ff8c6 fix: default value for template path 2021-01-21 14:07:48 +01:00
Xin Du (Clark) 0ebab89014 update getSigmaContext name (#73) 2021-01-21 01:58:43 +01:00
Xin Du (Clark) f4e15196b2 fix error message in rollup and server (#72) 2021-01-20 23:09:22 +01:00
Xin Du (Clark) 2186d953d0 fix: update documentPath with updated buildDir (#70) 2021-01-20 23:08:54 +01:00
Pooya Parsa 776e12f362 chore: fix lint issues 2021-01-20 21:02:43 +01:00
Pooya Parsa a8fc68fec0 chore: remove unused utils 2021-01-20 20:54:13 +01:00
Pooya Parsa 2fe8b62b93 chore: fix lint error 2021-01-20 20:46:19 +01:00
Daniel Roe 3f99bb7878 feat: add support for `useHead` (#122)
* feat: add support for `useHead`

* chore: use sigma@75

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-01-20 20:17:36 +01:00
Pooya Parsa 6e9be0eece feat: support ssrContext.head
Co-Authored-By: Daniel Roe <daniel@roe.dev>
2021-01-20 20:13:28 +01:00
Xin Du (Clark) 8e320f80aa fix(build): use last hash file name in client manifest (#123) 2021-01-20 20:04:47 +01:00
Pooya Parsa 3d06693f88 add basic nuxt build 2021-01-20 16:44:52 +01:00
Pooya Parsa 387fa4a278 fix: 404 handling for static assets 2021-01-20 16:42:42 +01:00
Pooya Parsa fd0be27f0c fix: static asset handling with leading slash 2021-01-20 16:00:14 +01:00
Pooya Parsa 17160c31ed chore: use webpackbar basic reporter for less verbose output 2021-01-20 15:46:07 +01:00
Pooya Parsa 47c738cd9d feat: prepare for npm publish 2021-01-20 15:43:43 +01:00
Pooya Parsa cc4a32c024 chore: hide generated logs 2021-01-20 15:37:21 +01:00
Pooya Parsa 0675191cba fix: disable external tracing for local preset 2021-01-20 15:34:00 +01:00
Pooya Parsa acc76ed2df chore: remove legacy cli from codebase 2021-01-20 14:29:56 +01:00
Pooya Parsa 588e09cf10 chore: fix sigma import 2021-01-20 13:40:17 +01:00
Pooya Parsa 454b8c332c refactor: move app to src with nuxt/app import
this refactor allows distributing app with esm modules instead of ts
2021-01-18 13:46:19 +01:00
Eduardo San Martin Morote a6f9fb4c7a feat: initial work for pages routing (#113)
* feat: initial work for routing

Co-Authored-By: Eduardo San Martin Morote <posva@users.noreply.github.com>

* test: test for page builder

* test: add tests for names

* feat(routes): stringify routes

* feat(routes): support multiple slugs

* feat(routes): encode paths

* test: remove nuxt test utils

* refactor: app.template.*

* chore: fix lint errors

* simplify and fix jest/test

* refactor: move hook todo to app.ts (since pages/ might be optional)

* add todo for __file exposing

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-01-18 13:22:38 +01:00
pooya parsa 0091dba181 feat: use sigma (#95) 2021-01-18 12:49:50 +01:00
Pooya Parsa fa5d0e04f9 chore: fix runtime typescript errors 2021-01-18 12:47:25 +01:00
Pooya Parsa 9e9b20ef90 fix: bring back nuxt3 support 2021-01-18 12:42:00 +01:00
Pooya Parsa b07a4a5c8d refactor: move runtime to src (typescript) 2021-01-18 11:57:38 +01:00
Pooya Parsa 19e6542d27 feat: enable externals.trace by default 2021-01-12 16:58:05 +01:00
Sébastien Chopin 8a8840c970 chore: typo 2021-01-11 19:02:11 +01:00
Pooya Parsa 7e682ed663 feat: better error handler 2020-12-12 19:15:56 +01:00