Commit Graph

432 Commits

Author SHA1 Message Date
Ahad Birang c0c5b9b9bd
fix(nitro): handle static assets and api routes for `service-worker` preset (#518) 2021-09-09 18:01:43 +02:00
Ahad Birang b47c592e39
fix(nitro): do not overwrite output files for browser-preset (#516) 2021-09-09 11:55:40 +02:00
pooya parsa 820a9d0b57
feat(nitro): assets driver (#511) 2021-09-08 22:01:21 +02:00
Daniel Roe 133c03ae2f
chore(nitro): avoid optional chaining in nitro render fn (#493) 2021-09-08 11:54:17 +02:00
Daniel Roe f2d78674a0
feat: add support for vite build (with vite-format manifest) (#450) 2021-09-07 11:35:55 +02:00
Daniel Roe 44b7f1f61e
fix(nitro): used named export for azure entry (#491) 2021-09-06 13:58:56 +02:00
Daniel Roe b9d2dad56a
fix(nitro): correct vercel fs api static directory (#488) 2021-09-06 13:38:14 +02:00
Daniel Roe 0a8c86c885
fix(nitro): export named function rather than default export (#490) 2021-09-06 13:37:21 +02:00
renovate[bot] 9f7438afb1
chore: update all non-major dependencies and add `node` to nitro external conditions (#440)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-09-05 23:54:12 +02:00
pooya parsa 44458fcbbb
feat: nuxt bridge (#459) 2021-09-05 23:21:33 +02:00
Daniel Roe de57626a7a
fix(nitro): emit chunk names without `#` (#477) 2021-09-05 22:48:38 +02:00
Daniel Roe 0c50af9fd5
fix(nitro): use file url for `#build` alias in windows dev (#469) 2021-09-05 22:35:54 +02:00
Daniel Roe 193d7bf8bc
feat: use webpack esm server build (#474) 2021-09-05 22:33:24 +02:00
Daniel Roe 7527d30bed
fix(nitro): inject entryURL at beginning of entrypoint (#468) 2021-09-03 14:27:19 +02:00
Daniel Roe 7f9ef5e13d
fix(nitro): correct issues rendering `payload.js` (#466) 2021-09-01 20:08:09 +02:00
Daniel Roe 7a03460584
chore(nitro, kit, nuxt3): add nitro hook types and upgrade `hookable@5` (#458) 2021-08-27 14:51:40 +02:00
pooya parsa ee0163c273
refactor: merge modules to `nuxt3` (#439) 2021-08-11 22:28:38 +02:00
pooya parsa 3516f40e06
fix(nitro): fix EBUSY error on windows (#425) 2021-08-09 23:44:50 +02:00
Daniel Roe 25e96bb896
fix: windows path issues (#408) 2021-08-09 20:24:52 +02:00
Pooya Parsa cb7f079ac4 chore: fix lint issues
[skip-release]

using `import type` seems a regression of `import/named` rule but generally makes it more readable to prefer using it :)
2021-08-09 18:18:21 +02:00
Daniel Roe 771e72b1b5
chore(nitro): no longer need to inline `ohmyfetch` (#407) 2021-08-09 17:46:03 +02:00
Daniel Roe 858e31c7fc
fix(nitro): promisify proxy handler (#398) 2021-07-28 19:24:19 +02:00
Matt Kane 4a989e9b7a
fix(nitro): detect `NETLIFY_LOCAL` (#400) 2021-07-28 18:42:59 +02:00
Daniel Roe bb757045ec
fix(webpack): use cjs for emitted webpack files (#395) 2021-07-28 14:00:39 +02:00
Daniel Roe c9ed8bc341
fix(nitro): import externals as esm namespace (#394)
[workaround]
2021-07-28 09:58:07 +02:00
Daniel Roe bbfa41f811
fix(nitro): handle ssr redirects (#392) 2021-07-27 15:55:01 +02:00
Daniel Roe 956f442e29
fix(nitro): filter out duplicate imports (#378) 2021-07-26 15:44:35 +02:00
Matt Kane bad2a74805
fix(nitro): disable `moduleSideEffects` by default (#377) 2021-07-26 13:32:35 +02:00
Matt Kane e43e9cf71a
fix(nitro): generate correct netlify entrypoint (#372) 2021-07-26 12:37:39 +02:00
Daniel Roe 5d5516dd1d
feat: nitro endpoint for viewing `_vfs` (#362) 2021-07-23 16:41:36 +02:00
Pooya Parsa 7fee983b52 fix(nitro): watch .mjs and .cjs extensions (closes #352) 2021-07-22 16:25:26 +02:00
pooya parsa be255772b2
feat: support `ssr: false` (#351)
Co-Authored-By: Daniel Roe <daniel@roe.dev>
2021-07-21 22:05:22 +02:00
Daniel Roe 64d3585959
fix(app): make `renderMeta` optional (#340) 2021-07-19 15:27:20 +02:00
Daniel Roe b263b4f930
feat: `@nuxt/meta` module for head rendering (#179)
Co-authored-by: Anthony Fu <hi@antfu.me>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-07-15 13:28:04 +02:00
Pooya Parsa 7eecc84f4d fix(nitro): fix externals regex for scoped packages
closes #238
2021-07-15 13:08:14 +02:00
pooya parsa bec2720930
feat: use virtual filesystem for templates (#292)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-07-15 12:18:34 +02:00
Daniel Roe ea0d2788a4
feat: use `@nuxt/design` (#322)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-07-15 11:47:15 +02:00
pooya parsa 6318438415
feat(nitro, vite): use native module (#252)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-07-15 11:38:06 +02:00
Daniel Roe 0a3041cdf9
fix: allow use of nuxt3 in non-wsl windows environment (#308) 2021-07-12 12:54:24 +02:00
Daniel Roe b53d8a77ff
fix(components): augment 'vue' module rather than overwriting (#305) 2021-07-07 20:41:51 +02:00
Daniel Roe 1126255835
fix(nitro): generate netlify `_redirects` in public (#298) 2021-07-01 14:49:42 +02:00
Daniel Roe 04c3f65539
refactor: rename `static` to `public` (#284) 2021-06-30 12:29:48 +02:00
Pooya Parsa a25d7b1617 fix(nitro): use unenv 0.3.x (closes #266) 2021-06-24 13:56:19 +02:00
Daniel Roe c399f142b9
fix(nitro): use nuxt2 compatible template (#268)
closes #265
2021-06-24 13:35:21 +02:00
Pooya Parsa 1ed3387243 fix: use nitro plugin with explicit mjs extension 2021-06-18 14:34:07 +02:00
Pooya Parsa 3398d5a7d6 refactor: use # prefex for internal aliases
leftovers
2021-06-18 11:54:35 +02:00
Daniel Roe 77e489aae3
fix(nitro): update nitro internal hook name (#218) 2021-06-16 13:48:16 +02:00
Daniel Roe e2d5a2f4b3
fix: add nitro client plugin ($fetch support) (#223)
* fix(nuxt3): add nitro client plugin ($fetch support)

closes #213

* refactor: put hook in more logical place

* docs: update comment
2021-06-16 13:20:18 +02:00
Daniel Roe 9750009cc5
feat(nitro): support netlify zero-config deployments (#175) 2021-06-15 00:10:17 +02:00
Pooya Parsa b6104c6e83 chore(nitro): provide process.client and process.server
They should be handled in vite/webpack step but just in case
2021-06-14 20:37:35 +02:00
Daniel Roe 7c85daa64e
fix(nitro): set esbuild `target: '2019'` (#189) 2021-06-14 11:03:44 +02:00
renovate[bot] 7d2cd2f356
chore(deps): update all non-major dependencies (#166)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-06-07 11:12:36 +02:00
Pooya Parsa 0b7790f6d0 feat(nitro): #config 2021-06-04 22:12:32 +02:00
Pooya Parsa f98be4bfed fix(nitro): support ~/@ aliases and explicitly externalize buildDir 2021-06-04 22:04:08 +02:00
Daniel Roe 1bbd754f29
refactor(nitro): app template 2-3 normalization (#177) 2021-06-03 15:12:05 +02:00
Pooya Parsa 2e0fce88a6 chore(nitro): show middleware table only in debug mode 2021-05-24 13:27:15 +02:00
Pooya Parsa 9fcd746c72 chore(nitro): disable auto mock 2021-05-24 13:25:34 +02:00
Pooya Parsa 03173075da fix(nitro): sort middleware fron long to short 2021-05-24 13:24:56 +02:00
Pooya Parsa a82e7b9008 fix(nitro): set `makeAbsoluteExternalsRelative` to false (resolves #160) 2021-05-24 13:21:37 +02:00
Pooya Parsa 838eae4a57 chore: apply latest eslint rules
closes #163
2021-05-24 13:14:10 +02:00
Daniel Roe f497020f6e
fix(compat): add template variables for compat module (#162) 2021-05-24 12:53:04 +02:00
Pooya Parsa 6b62d456d7 feat: optional pages and refactor nuxt3 (#142) 2021-05-20 13:42:41 +02:00
Pooya Parsa d95e002d5b fix(automock): don't externalize .ts imports 2021-05-20 13:07:30 +02:00
renovate[bot] 82b585dbb0
chore(deps): lock file maintenance and fix lint issues (#141) 2021-05-20 12:58:30 +02:00
Daniel Roe c7328732fb
fix(nitro): add body + body prepended scripts to template (#154) 2021-05-19 17:34:44 +02:00
Alexander Lichter 520f48a9d2
fix(nitro) set requireReturnsDefault to auto (#131) 2021-04-29 15:00:31 +02:00
Pooya Parsa d8423a2f9a chore(nitro): lazy load renderer resources 2021-04-29 14:08:10 +02:00
Pooya Parsa b0b7879403 chore(nitro): remove iife wrapper from worker presets 2021-04-28 18:20:30 +02:00
Pooya Parsa 325c6b8fea chore(nitro): avoid optional chaining due to wrangler issue
https://github.com/nuxt/framework/issues/97
2021-04-28 17:37:35 +02:00
Pooya Parsa 51538bfcb1 fix(nitro): handle esm imports from cjs files
fixes fs mock for vue-server-renderer
2021-04-28 16:16:42 +02:00
Alexander Lichter 813df279ec
fix(nitro): ensure that nitro runtime is not externalized (#121) 2021-04-28 15:32:26 +02:00
Alexander Lichter 2a2c4d5e46
fix(nitro): remove depd unenv alias (#120) 2021-04-28 15:25:13 +02:00
Pooya Parsa 5e0abbcb1b fix(nitro): don't externalize @nuxt, virtual: and # 2021-04-28 15:13:27 +02:00
Pooya Parsa 47c28551c8 fix(nitro): avoid using fs/promises
node 12 compat for vercel
2021-04-23 23:01:00 +02:00
Pooya Parsa 5a3f4b7800 fix(nitro): use globalThis 2021-04-21 17:35:20 +02:00
pooya parsa de9dffb0d6 chore: migrate to unenv and mkbuild 0.2 (#108) 2021-04-21 17:10:53 +02:00
Alexander Lichter 4c0dba202f
fix(nitro): mock consola (#106) 2021-04-21 13:16:04 +02:00
Pooya Parsa 8f8551cd67 fix(nitro): ovrride by user input 2021-04-20 16:10:49 +02:00
Pooya Parsa fbe658ffc7 chore: hide esbuild sourcemap warning 2021-04-20 15:22:42 +02:00
Pooya Parsa d9bb3fa2ee fix types 2021-04-20 15:22:07 +02:00
pooya parsa a63347b0ba
types: add global and shims for app and nitro (#102) 2021-04-20 13:57:18 +02:00
pooya parsa 5646770cd1
refactor(nitro): use # prefix for aliases (#101) 2021-04-20 13:03:18 +02:00
Pooya Parsa 1b10a1f091 fix(nitro): only serve placeholders for `publicPath` 2021-04-20 12:30:12 +02:00
Pooya Parsa 49e4c038b5 fix(nitro): resolve default export for assets 2021-04-19 22:41:47 +02:00
Pooya Parsa 4e1865358c fix: issues with externals outside of rootDir 2021-04-19 22:41:02 +02:00
Pooya Parsa bef9f82a8d feat(nitro): allow extending nitro context 2021-04-19 22:39:11 +02:00
Pooya Parsa 4dac07a104 fix(nitro): support vue-meta (compat) 2021-04-17 17:50:03 +02:00
Pooya Parsa e5df083f60 fix(nitro): workaround for vue2 global style injection 2021-04-16 21:36:19 +02:00
Pooya Parsa bf0132f3e1 chore(nitro): opt in to makeAbsoluteExternalsRelative: 'ifRelativeSource' 2021-04-13 00:08:18 +02:00
Pooya Parsa f8cb2586cf perf(nitro): externalize buildDir in development
TODO: supporting ignore patterns to include/exclude (rootDir but not buildDir)
2021-04-13 00:06:27 +02:00
Pooya Parsa b5c77b4c6b chore: fix lint error 2021-04-12 23:54:46 +02:00
Pooya Parsa 9a23c2a553 fix(nitro): absolute external resolution (#80) 2021-04-12 23:52:46 +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 a030c62d29
feat: initial version of nu cli (#54) 2021-04-09 17:52:45 +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 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 f66d917729 fix(nitro): add temporary workarouind for ufo resolution in nuxt2 2021-04-06 14:57:10 +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
Pooya Parsa 07e1126508 chore(nitro): fix types 2021-04-05 21:08:53 +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 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 b3f3dc94f3
feat: module utils and improvements (#38) 2021-04-02 13:47:01 +02:00
Pooya Parsa a16e13b1de chore: upgrade to monorepo 2021-03-18 15:26:41 +01:00
Alexander Lichter 8cc836ebf6 fix(cloudflare, lambda): preserve query parameters in url (#155) 2021-03-10 11:25:05 +01:00
Daniel Roe fdc0ffef8d fix(compat): enforce nuxt generate for static target (#148) 2021-03-05 12:13:35 +01:00
Pooya Parsa 5bfacf1f55 fix: avoid overriding hooks
input is merged extra
2021-02-26 20:15:41 +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
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 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
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
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 c76bd35c29 fix: use allowlist approach to chunk name (#101)
closes #93
2021-02-05 18:52:18 +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 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
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 6e9be0eece feat: support ssrContext.head
Co-Authored-By: Daniel Roe <daniel@roe.dev>
2021-01-20 20:13:28 +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 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 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