Commit Graph

788 Commits

Author SHA1 Message Date
pooya parsa fc019b8816
feat(bridge): enable composition-api (#551) 2021-09-22 17:34:11 +02:00
Xin Du (Clark) a137d2e5ec
feat(nitro): support esbuild options config (#550) 2021-09-22 16:39:54 +02:00
Pooya Parsa 317fc55539 fix(pkg): enable declaration for for and webpack 2021-09-21 19:07:24 +02:00
Pooya Parsa 57f435a59f fix(webpack): typecheck postcss plugins and add missing `postcss-import` (resolves #544) 2021-09-21 19:02:45 +02:00
Pooya Parsa e2d216e4ee chore: ping unbuild to latest for sub packages
closes #457
2021-09-21 18:59:37 +02:00
renovate[bot] b06e90d336
chore(deps): update all non-major dependencies (#540)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 18:53:25 +02:00
pooya parsa 62647844b5
chore: update to unbuild 0.5.x (#545) 2021-09-21 18:49:36 +02:00
Ahad Birang 5394aef2f7
fix(storage): replace non-word characters with underscore (#542) 2021-09-21 17:05:36 +02:00
Xin Du (Clark) f4cf2199a5
refactor(app): remove lodash template files (#543) 2021-09-21 16:55:07 +02:00
renovate[bot] 3671cfc772
chore(deps): update dependency node-fetch to v3 (#464)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-20 21:00:14 +02:00
renovate[bot] 758bf3ef6f
chore(deps): update all non-major dependencies (#521) 2021-09-20 20:59:49 +02:00
renovate[bot] 9db312beb1
chore(deps): update devdependency colorette to v2 (#531)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-20 20:12:56 +02:00
Ahad Birang 2b63578a84
feat(nitro): handle request body in workers (#537) 2021-09-20 20:12:43 +02:00
Ahad Birang 3e0e24f80d
fix(nitro): disable externals in worker preset (#535) 2021-09-20 11:20:55 +02:00
Xin Du (Clark) d05d8821a0
feat(webpack): bring back postcss and postcss-loader (#532) 2021-09-17 18:20:05 +02:00
Ahad Birang 64a426527f
fix(nitro): pass query params to localCall in service worker (#530) 2021-09-14 21:08:17 +02:00
Ahad Birang 13abec6143
fix(nitro): read body stream on post requests for `service-worker` (#527) 2021-09-13 12:37:38 +02:00
Pooya Parsa 4cd6d80448 fix(nitro): use `generate:page` hook for browser to inject sw
resolves #522
2021-09-10 13:22:20 +02:00
renovate[bot] a6c7ee1828
chore(deps): update all non-major dependencies (#517)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-10 09:24:55 +02:00
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
renovate[bot] 7936329646
chore(deps): update all non-major dependencies to ^0.3.1 (#513)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-09 10:44:32 +02:00
renovate[bot] 3af5b92a25
chore(deps): update all non-major dependencies (#508)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-09 10:43:09 +02:00
Pooya Parsa 35f7f10c43 fix(pkg): avoid conflicting `nuxt` binraries (resolves #512) 2021-09-09 09:31:06 +02:00
renovate[bot] c109314d1d
chore(deps): update dependency ora to v6 (#452)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-08 23:00:48 +02:00
pooya parsa 820a9d0b57
feat(nitro): assets driver (#511) 2021-09-08 22:01:21 +02:00
Daniel Roe e363ed5853
fix(vite): create valid legacy dev manifest (#509) 2021-09-08 16:32:36 +02:00
renovate[bot] 51eb4dba22
chore(deps): update all non-major dependencies (#504)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-08 14:09:33 +02:00
Daniel Roe 133c03ae2f
chore(nitro): avoid optional chaining in nitro render fn (#493) 2021-09-08 11:54:17 +02:00
renovate[bot] f468ad59e4
chore(deps): update all non-major dependencies (#502)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 20:11:07 +02:00
pooya parsa 49f7b39f6b
feat(cli): `nuxi info` (#503) 2021-09-07 15:17:17 +02:00
renovate[bot] 0c5234b8c0
chore(deps): update all non-major dependencies (#495)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 13:09:14 +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
Ahad Birang 3304f75b50
fix(bridge): handle `ssr: false` (#489) 2021-09-06 13:37:58 +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] b1da8ea2ca
chore(deps): update all non-major dependencies to ^3.2.9 (#486)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-06 01:39:28 +02:00
Pooya Parsa 9c14b886e8 fix(bridge): generate `dist/runtime` 2021-09-06 00:01:33 +02:00
Pooya Parsa 0b3271d275 fix(bridge): set webpack as implicit external 2021-09-06 00:00:07 +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 8aaa1b3124
fix(webpack): exclude assets from webpack externals (#471) 2021-09-05 22:34:56 +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
Anthony Fu a994bec4f3
fix(global-imports): don't match with comments (#462) 2021-08-30 13:55:57 +02:00
Ahad Birang a31e8abfb3
fix: rename `useNuxt` in global-imports to `useNuxtApp` (#461) 2021-08-30 11:08:43 +02:00
Daniel Roe a9c4bfa065
refactor: rename runtime `nuxt` to `nuxtApp` equivalents (#460) 2021-08-27 15:30:53 +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
Daniel Roe 16b769d6b9
fix(nuxt3): add types for runtime hooks (and fix `page:finished`) (#455)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-08-26 20:57:36 +02:00
Anthony Fu 45f898e108 chore: fix typo 2021-08-24 15:49:03 +08:00
Ahad Birang 6c37bad73a
fix(kit): template dst should become plugin src (#448) 2021-08-16 22:00:43 +02:00
Ahad Birang d3582bf1e8
fix: components template path (#447) 2021-08-16 11:08:47 +02:00
Daniel Roe 052edd220d
docs: auto-generate configuration api (#349)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-08-11 23:48:33 +02:00
Pooya Parsa 91c6ef57e7 fix(nuxt3): resolve dist dir by top level module 2021-08-11 23:26:47 +02:00
renovate[bot] 09824d9167
chore(deps): update all non-major dependencies (#428)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-11 22:39:46 +02:00
pooya parsa ee0163c273
refactor: merge modules to `nuxt3` (#439) 2021-08-11 22:28:38 +02:00
Anthony Fu c2e96d0b24
refactor: move modules under `modules/` (#437) 2021-08-11 19:12:21 +02:00
pooya parsa 084b4e2123
refactor: rename `nuxt-cli` to `nuxi` (#430) 2021-08-10 19:37:03 +02:00
Pooya Parsa cbce777add fix(cli): only restart if pages directory itself is changed
resolves #429
2021-08-10 18:53:46 +02:00
renovate[bot] 991a231018
chore(deps): update dependency @rollup/plugin-commonjs to v20 (#406) 2021-08-10 12:40:49 +02:00
Anthony Fu b2b4c64807
feat: auto global imports (#410)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-08-10 02:27:23 +02:00
renovate[bot] 50acd3dda5
chore(deps): update all non-major dependencies (#422)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 23:55:26 +02:00
Anthony Fu 5191ff98f3
fix(components): types generation (#416)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-08-09 23:54:44 +02:00
pooya parsa 3516f40e06
fix(nitro): fix EBUSY error on windows (#425) 2021-08-09 23:44:50 +02:00
pooya parsa 4b5d9f1052
feat: nuxt prepare and template improvements (#423) 2021-08-09 22:54:12 +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
renovate[bot] 62921afad0
chore(deps): update all non-major dependencies (#401)
[no-release]
2021-08-09 17:46:36 +02:00
Daniel Roe 771e72b1b5
chore(nitro): no longer need to inline `ohmyfetch` (#407) 2021-08-09 17:46:03 +02:00
Anthony Fu fce147f177
feat: support `options.css` (#418) 2021-08-09 17:42:52 +02:00
Daniel Roe 52a2fff31c
fix(cli): don't let changes within `buildDir` trigger nuxt reload (#420) 2021-08-09 15:01:08 +02:00
Xin Du (Clark) bf3f72e24e
fix(kit): default config value in dev/prod mode (#405) 2021-07-31 21:26:41 +01:00
Xin Du (Clark) 5a1ccec61f
fix(webpack): enable minimize for client production bundles (#404) 2021-07-31 21:26:32 +01: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
Anthony Fu 8e5e229031
feat(components): build time sync loader (#383) 2021-07-28 14:11:32 +02:00
Daniel Roe bb757045ec
fix(webpack): use cjs for emitted webpack files (#395) 2021-07-28 14:00:39 +02:00
renovate[bot] f6f7d771ee
chore(deps): update all non-major dependencies (#389)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-28 13:52:01 +02:00
Daniel Roe 2da82ce5cf
feat(meta): add default head values (#382)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-07-28 13:48:17 +02:00
pooya parsa cc212cedc8
refactor: improved template utils (#393) 2021-07-28 13:35:24 +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
renovate[bot] 2e2a09968a
chore(deps): update dependency @rollup/plugin-commonjs to ^19.0.2 (#384)
[skip-release]
2021-07-26 22:26:56 +02:00
Anthony Fu 0e93d752fd
feat(kit): `extendWebpackConfig` and `extendViteConfig` utils (#386) 2021-07-26 21:06:27 +02:00
Daniel Roe 57a2974450
feat(cli): add `prepare` command to stub module types (#370)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-07-26 16:46:19 +02:00
Daniel Roe 8c09d05ad2
refactor: improve cli and kit types (#369)
[skip-release] 

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-07-26 16:04:35 +02:00
renovate[bot] b3526ba0a4
chore(deps): update all non-major dependencies (#371)
[skip-release]
2021-07-26 15:44:55 +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
Anthony Fu 864d2683ab
feat(kit): `addWebpackPlugin` and `addVitePlugin` utils (#368) 2021-07-26 12:45:42 +02:00
Matt Kane e43e9cf71a
fix(nitro): generate correct netlify entrypoint (#372) 2021-07-26 12:37:39 +02:00
renovate[bot] a57b9e1887
chore(deps): update all non-major dependencies (#350)
[skip-release]
2021-07-23 17:22:54 +02:00
Daniel Roe f980ef235f
fix(app): separate plugin entrypoints (#366) 2021-07-23 16:58:38 +02:00
Anthony Fu a01dd69fcc
fix(vite): prod build hang, close #336 (#361)
* fix(vite): prod build hang, close #336

* chore: update
2021-07-23 16:45:06 +02:00
Daniel Roe 928d10ab77
fix(vite): add transpile options to noExternal list (#364) 2021-07-23 16:43:06 +02:00
Daniel Roe 5d78c14ed6
fix(nuxt3): reresolve app entrypoint when changes to `app.vue` are detected (#363) 2021-07-23 16:42:49 +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
Daniel Roe 77874bf4d2
fix(app): finish hydration when the page is loaded (#346) 2021-07-21 22:06:05 +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
renovate[bot] 9c7085da58
chore(deps): update all non-major dependencies (#347)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-21 19:18:45 +02:00
renovate[bot] e33b6f7241
chore(deps): update dependency @rollup/plugin-replace to v3 (#338)
[skip-release]
2021-07-20 12:22:28 +02:00
Daniel Roe 9d8fd61fcf
chore: update dependencies (#342)
[skip-release]
2021-07-20 12:21:30 +02:00
renovate[bot] 17a2d18486
chore(deps): update all non-major dependencies (#344)
[skip-release]
2021-07-20 12:20:35 +02:00
Daniel Roe 8d3f296e40
chore(app): entry types (#345)
[skip-release]
2021-07-20 12:20:17 +02:00
renovate[bot] 19794ddd21
chore(deps): update all non-major dependencies (#333)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-19 15:27:51 +02:00
Daniel Roe 64d3585959
fix(app): make `renderMeta` optional (#340) 2021-07-19 15:27:20 +02:00
Daniel Roe 98cf97d269
fix: remove vue alias (#335) 2021-07-16 11:12:11 +02:00
Daniel Roe 5d7ded368b
fix(vite): exclude optimising `vue-router` (#332) 2021-07-15 16:42:11 +02:00
renovate[bot] e0d2c78e05
chore(deps): update all non-major dependencies (#324)
[skip-release]
2021-07-15 13:33:13 +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 0bbbddecba fix(cli): handle build error and exit with code(1) 2021-07-15 13:24:26 +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 e1d44262a5 fix(vite): add missing #build alias 2021-07-15 12:50:09 +02:00
Pooya Parsa a3b11c0ea8 chore: fix nuxt3 stub script 2021-07-15 12:49:57 +02:00
Pooya Parsa c4387e8ec2 chore: fix vite entry path
in stubbed mode, we use .ts extension
2021-07-15 12:49:38 +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
renovate[bot] 6d0bb7c740
chore(deps): update dependency css-loader to v6 (#323)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-15 11:38:53 +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
renovate[bot] 569d4f3cb3
chore(deps): update all non-major dependencies (#307) 2021-07-14 16:52:08 +02:00
renovate[bot] 20927bc341
chore(deps): update dependency @nuxt/devalue to v2 (#320)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-14 16:41:45 +02:00
Anthony Fu d995e83a31
fix(vite): set vite's root to current directory (#239) 2021-07-14 16:40:40 +02:00
Anthony Fu 9e8b042bad
fix: vite build (#311) 2021-07-14 16:39:48 +02:00
Anthony Fu ea0fdc2aa2
fix(vite): make vite server strict by default (#321) 2021-07-14 16:37:07 +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 1bd0b74299
fix: use esm syntax for webpack module hot (#316) 2021-07-12 12:19:34 +02:00
renovate[bot] be835de180
chore(deps): update all non-major dependencies (#300)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 20:42:12 +02:00
Daniel Roe b53d8a77ff
fix(components): augment 'vue' module rather than overwriting (#305) 2021-07-07 20:41:51 +02:00
Daniel Roe 2abac1d78c
chore(app): fix tutorial typo (#306) 2021-07-07 20:40:51 +02:00
renovate[bot] 68cd6dd68a
chore(deps): update dependency mini-css-extract-plugin to v2 (#295)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-02 14:45:49 +02:00
renovate[bot] 1dc68c0a84
chore(deps): update all non-major dependencies (#293)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-02 14:45:36 +02:00
pooya parsa e70978d1c0
fix(cli): restart issues (#299) 2021-07-02 14:45:15 +02:00
pooya parsa fb08be37e2
chore: edge release on each commit (#294) 2021-07-01 14:58:27 +02:00
Daniel Roe 1126255835
fix(nitro): generate netlify `_redirects` in public (#298) 2021-07-01 14:49:42 +02:00
Daniel Roe b1948b1921
feat(pages): page layouts (#276) 2021-06-30 18:32:22 +02:00
Daniel Roe 8faf069778
fix(app): temporary webpack5 'hotfix' (#290)
https://github.com/webpack-contrib/webpack-hot-middleware/issues/390
2021-06-30 18:02:57 +02:00
Daniel Roe 6cd5f8816f
fix(kit): make `resolvePath` case-sensitive (#291) 2021-06-30 15:55:11 +02:00
Daniel Roe 53f6756178
feat(app): backwards-compatible options `asyncData` support (#286) 2021-06-30 12:53:10 +02:00
renovate[bot] 79523399d2
chore(deps): update all non-major dependencies (#257)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 12:49:42 +02:00
Daniel Roe 04c3f65539
refactor: rename `static` to `public` (#284) 2021-06-30 12:29:48 +02:00
Daniel Roe 1370dd6719
fix(cli): loading html fix (#288) 2021-06-30 12:26:11 +02:00
Daniel Roe 3829a21729
fix(app): do not call handler twice on navigation (#280) 2021-06-30 11:22:16 +02:00
Daniel Roe 86af8457a9
fix(app): use nuxt-page by default in `app.vue` (#283) 2021-06-29 17:12:41 +02:00
Daniel Roe dfbb047be6
fix(kit): don't rely on ModuleThis (#272) 2021-06-25 11:37:18 +02:00
pooya parsa debe5a98b0
feat(kit, nuxt3): use single nuxt instance (#271) 2021-06-24 16:06:16 +02:00