Commit Graph

357 Commits

Author SHA1 Message Date
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
Pooya Parsa 2c83f6ea6a feat: integrate $fetch with ohmyfetch 2020-12-12 15:46:54 +01:00
Pooya Parsa 239c69d92a fix: silent proxy errors 2020-12-12 15:21:12 +01:00
Pooya Parsa e56178a872 fix: use connect for dev server due to loading-screen issue 2020-12-12 15:20:55 +01:00
Pooya Parsa 5bbdc2bc65 feat: improved externals and experimental trace with vercel/nft 2020-12-07 22:59:24 +01:00
Pooya Parsa a05c806f85 chore: hide listen message for dev 2020-12-07 21:49:37 +01:00
Pooya Parsa 28be995ef4 chore: move local artifacts to buildDir/sigma 2020-12-07 21:49:03 +01:00
Pooya Parsa 921bb15130 feat: swtich to h2 stack for dev server 2020-12-07 14:09:09 +01:00
Pooya Parsa 0199610834 chore: enable back automock plugin 2020-12-07 13:53:32 +01:00
Pooya Parsa 6de295cc9f fix: skip static dir if not exists 2020-12-07 13:48:29 +01:00
Pooya Parsa daf0c3e6a5 feat: sourcemap support 2020-12-07 13:36:43 +01:00
Pooya Parsa 0742e0ff33 chore: move local dist to .output for easier debugging 2020-12-07 13:13:45 +01:00
Daniel Roe 3c9bb27148 fix: temporary remove dev warning for pwa module (#40) 2020-12-02 14:27:01 +01:00
Pooya Parsa 4685108c16 fix: add `node_modules` from cwd to nodeResolve 2020-12-02 14:22:34 +01:00
Pooya Parsa 4890205b6e fix: temporary disable auto mock plugin 2020-12-02 14:21:49 +01:00
Pooya Parsa 133b44d3c0 fix: disable static manifest generation (resolves #53) 2020-12-02 14:19:18 +01:00
Pooya Parsa 0a2f9a3949 fix: update node-resolve options 2020-12-02 14:12:29 +01:00
Daniel Roe 9c25d68511 fix: addresses static assets/azure issues (#49) 2020-12-02 00:28:42 +01:00
pooya parsa a9b9d19e66 feat: serveStatic (#47) 2020-11-28 23:49:39 +01:00
Pooya Parsa b010e83008 chore: fix lint issues 2020-11-28 22:13:16 +01:00
Pooya Parsa 7ae8483d21 feat: support typescript via esbuild (closes #42) 2020-11-28 22:11:25 +01:00
Pooya Parsa ca015deda6 feat: support runtimeConfig (closes #43) 2020-11-28 21:50:16 +01:00
Pooya Parsa 5783abdb52 Merge branch 'main' of github.com:nuxt/sigma into main 2020-11-28 21:24:42 +01:00
Daniel Roe 976dff7ce1 feat: add azure functions preset (#45) 2020-11-28 12:50:55 +01:00
Pooya Parsa f4975dfd09 fix nuxt dev 2020-11-24 12:06:05 +01:00
Pooya Parsa 531f6b1e08 fix: remove runtime/ prefix 2020-11-22 22:54:08 +01:00
Pooya Parsa 1f5e82a5bc fix NUXT_FULL_STATIC 2020-11-21 14:58:24 +01:00
Pooya Parsa dbce482b7e feat: improved sever timing 2020-11-21 14:55:41 +01:00
Pooya Parsa 04fc395149 chore: unnecessary resolve 2020-11-21 12:42:46 +01:00
Pooya Parsa 227e04b92e feat: improved env support 2020-11-21 12:42:02 +01:00
Pooya Parsa ba0943aa22 revert back auto mock warning 2020-11-21 12:06:51 +01:00
Pooya Parsa 6794b01404 chore: hide automock warn 2020-11-20 22:09:53 +01:00
Pooya Parsa b5b585c0c8 feat: automatically mock unresolved externals 2020-11-20 22:08:57 +01:00
Pooya Parsa 5c8ac226f1 fix: hide rollup circular and eval 2020-11-20 22:04:48 +01:00
Pooya Parsa 82f6db6bca fix: promisify: false support 2020-11-20 21:13:23 +01:00
Pooya Parsa 68fc208299 fix: lazy is true by default 2020-11-20 21:11:46 +01:00
Pooya Parsa cd0dd009e0 feat: use h2@10 2020-11-20 21:06:59 +01:00
Pooya Parsa 02a66ab40c feat: expose process.env.SIGMA_PRESET 2020-11-20 15:34:47 +01:00
Pooya Parsa 0b51fb3bc3 register page for browser 2020-11-20 15:25:40 +01:00
Pooya Parsa 37c7e892d5 fix: add temp fix for browser 2020-11-20 14:57:02 +01:00
Pooya Parsa abf65f2176 feat: sigma.client 2020-11-20 14:46:55 +01:00
Pooya Parsa a7d158798c feat: add $fetch to client 2020-11-20 14:31:14 +01:00
Pooya Parsa d3d3c0a2ea fix(vercel): entry should export handle as default 2020-11-20 13:49:21 +01:00
Pooya Parsa cb98031cff fix: cloudflare and polyfill 2020-11-20 13:14:16 +01:00
Pooya Parsa 15fff5117f fix(vercel): remove index.js from serverDir 2020-11-20 13:04:16 +01:00
Pooya Parsa 1524377708 fix ts error 2020-11-20 12:56:51 +01:00
Pooya Parsa b15d16abd3 fix: support both targets by adding prepare step 2020-11-20 12:55:55 +01:00
Pooya Parsa bde0c7c286 fix: ignore close listeners 2020-11-20 03:34:15 +01:00
Pooya Parsa 6080927c16 fixes for dev and static target 2020-11-20 03:22:22 +01:00
Pooya Parsa f638a44568 fix: use dist for netlify as default 2020-11-20 02:49:43 +01:00
Pooya Parsa ec291dafc1 fix issues with generate and dev 2020-11-20 02:38:06 +01:00
Daniel Roe 16451a3588 fix: static dir is in `srcDir` (#37) 2020-11-20 01:38:35 +01:00
pooya parsa c06f09e9ab sigma (#36) 2020-11-20 01:16:31 +01:00
Daniel Roe 99129216ee chore: upgrade deps (#91)
* chore: upgrade deps

* fix: lint errors
2020-11-16 09:33:33 +01:00
Pooya Parsa 047761f8b7 fix: move hrtime polyfill to timing plugin 2020-11-15 03:43:43 +01:00
Pooya Parsa e874d4db59 fix: disable cleanTargetDir for vercel 2020-11-15 02:43:50 +01:00
Pooya Parsa f2c1589472 fix(timing): include helpers only in entries 2020-11-15 02:34:43 +01:00
Pooya Parsa aa71b51538 feat: generate meaningful chunkNames 2020-11-15 02:31:50 +01:00
Pooya Parsa 3939ea9e4d chore: sort tree by length 2020-11-15 02:03:35 +01:00
Pooya Parsa ef85ddfbc9 chore: fix ts lint 2020-11-15 01:53:08 +01:00
Pooya Parsa 740bf073b2 feat: timing plugin and Server-Timing 2020-11-15 01:52:18 +01:00
Pooya Parsa 5bd6531f5d chore: tweak terser options to improve debugging 2020-11-14 23:23:17 +01:00
Pooya Parsa d2e8c3bd78 chore: disable webpack standalone, minify and enable minify for node by default 2020-11-14 23:01:57 +01:00
Pooya Parsa 8b071c4efd chore: simplify tree 2020-11-14 21:47:14 +01:00
Pooya Parsa 6875d5535b feat: show fs tree for output 2020-11-14 21:41:38 +01:00
Pooya Parsa 609796a944 feat: natively parse and import async webpack chunks 2020-11-14 18:51:56 +01:00
Pooya Parsa e16aee43ba fix: resolve chunksDirName based on outNames dirname (vercel) 2020-11-14 14:33:31 +01:00
Pooya Parsa 1e34041e8d feat: support dynamic chunks, lazy middleware and cjs target 2020-11-14 14:05:09 +01:00
Pooya Parsa e3609b6d8a fix: exec require before return 2020-11-14 02:44:33 +01:00
Pooya Parsa f7378db9e0 feat: add hint to dynamic require for netlify 2020-11-14 02:43:13 +01:00
Pooya Parsa 536155825b fix: add hack for encoding 2020-11-14 01:49:37 +01:00
Pooya Parsa 04bb2fa906 chore: fix lint error 2020-11-14 01:25:12 +01:00
Pooya Parsa 3d2c019a6a tweak target defaults to disable minify and inlining for non workers 2020-11-14 01:23:22 +01:00
Pooya Parsa a5e70eb4b0 fix: use native fetch when node is disabled 2020-11-14 01:11:26 +01:00
Pooya Parsa 9e638e96fa feat: support universalFetch during generate 2020-11-14 01:03:26 +01:00
Pooya Parsa c8f4957520 fix: fix mocks and disable buffer since is unnecessary 2020-11-13 19:29:47 +01:00
Pooya Parsa e8f52bd383 fix: use same global to inject process.hrtime 2020-11-13 19:05:45 +01:00
Pooya Parsa 989f6811c2 feat: better process polyfill 2020-11-13 18:45:03 +01:00
Pooya Parsa eaf4603d9c fix(worker): wrap polyfill to iife 2020-11-13 18:13:51 +01:00
Pooya Parsa b65cd7862a fix: always mock generic dependencies
also inject after json
2020-11-13 17:18:27 +01:00
Pooya Parsa 2384b8269e feat: improve mocking 2020-11-13 17:14:17 +01:00
Pooya Parsa 4d4ae7a115 chore: add prefix to rollup errors 2020-11-13 17:13:18 +01:00
Pooya Parsa 2ad4a81362 feat: mock mime packages and fix v1 compat 2020-11-13 15:52:02 +01:00
Pooya Parsa 6ff7c7e02e feat: improve mocks 2020-11-13 14:18:07 +01:00
Pooya Parsa 72d2dcc582 add content playground 2020-11-12 19:18:33 +01:00
Pooya Parsa 75ed762192 feat: support serverMiddleware 2020-11-11 23:06:29 +01:00
Pooya Parsa b258c2af2c explicitly set outName in targets to avoid regression 2020-11-11 15:27:08 +01:00
Pooya Parsa 35720380c2 update default sls dir to make usage easier (without gitignore) 2020-11-11 15:12:11 +01:00
Pooya Parsa 696556aef8 fix: only generate .sls directory when needed 2020-11-11 15:06:20 +01:00
Pooya Parsa 8414e64eeb refactor: add more tructure to runtime dir 2020-11-11 15:03:55 +01:00
Pooya Parsa aff2372650 fix: configurable publicPath (closes #21) 2020-11-11 14:42:10 +01:00
Pooya Parsa 2e329d0403 fix(browser): 400.html ~> 404.html 2020-11-11 01:19:29 +01:00
Pooya Parsa 4f74119739 fix: fix issues with router.base support 2020-11-11 00:04:33 +01:00
Pooya Parsa dc6154fea8 cloudflare: generate package-lock.json 2020-11-10 23:38:22 +01:00
Pooya Parsa 2a6d4f38d0 fix(worker): smaller and working hrtime polyfill 2020-11-10 23:21:00 +01:00
Pooya Parsa 72b877fe7c fix: fix worker polyfill by adding performance 2020-11-10 21:29:46 +01:00
Pooya Parsa 7347e8ebda fix(vercel): generate to config/routes.json 2020-11-10 20:43:33 +01:00
Pooya Parsa 2c4b857893 fix(vercel): add `/index` suffix to dst 2020-11-10 20:35:56 +01:00
Pooya Parsa a6c4a7e2cd fix(vercel): add missing node segment 2020-11-10 20:24:05 +01:00
Pooya Parsa c7b88defa4 feat: update vercel and improve internals 2020-11-10 19:19:24 +01:00
Pooya Parsa 1df092d08e fix(vercel): add api prefix 2020-11-09 19:49:58 +01:00
Pooya Parsa ffceb25ca2 update vercel target 2020-11-09 19:47:38 +01:00
Pooya Parsa 55f25aa884 fix windows issues 2020-11-09 15:31:57 +01:00
pooya parsa 4b831fbd8d feat(worker): support process.hrtime 2020-11-09 01:41:00 +01:00
pooya parsa a2413dc5fd fix jiti issue
should be fixed on jiti later on to support syntax
2020-11-09 00:28:30 +01:00
Daniel Roe fc0934dd0c fix: add more types (#16) 2020-11-09 00:19:23 +01:00
Daniel Roe 799e872b80 docs: node docs and small tweaks to limitations (#12)
* docs: node docs and small tweaks to limitations

* docs: update to use new entrypoint name
2020-11-07 11:51:48 +01:00
Pooya Parsa 5b8314245c feat: make cloudflare working 2020-11-06 17:40:00 +01:00
Pooya Parsa 25290b7aa0 fix script minification 2020-11-06 15:07:35 +01:00
Pooya Parsa 10c306aee0 fix vercel env detection 2020-11-06 15:05:11 +01:00
Pooya Parsa 3fa6717882 improve config extending 2020-11-06 14:46:17 +01:00
Pooya Parsa 91caf2c470 feat: support targer functions to consume nuxtOptions 2020-11-06 13:55:30 +01:00
Pooya Parsa 5647d2dad0 add default files to ignore for smart rebuild 2020-11-06 13:41:33 +01:00
Pooya Parsa b86eb3d741 ignore target dir too 2020-11-06 13:14:49 +01:00
Pooya Parsa d6aea1e0df fix: handle if serverless is not set in config 2020-11-06 12:51:29 +01:00
Pooya Parsa 374487ea29 fix: use html.contents 2020-11-06 12:50:45 +01:00
Pooya Parsa 00ccbdcfd8 generate vercel into /api 2020-11-06 12:43:42 +01:00
Pooya Parsa c99abd06ab chore: default outName to _nuxt.js 2020-11-06 12:38:53 +01:00
Pooya Parsa ce71ec1347 browser: inline sw register script 2020-11-06 10:57:04 +01:00
Pooya Parsa 47d7644b72 refactor: move targets to src, remove template and improve runtime 2020-11-06 10:51:35 +01:00
Pooya Parsa ddccc9cb78 feat: detect target
Co-authored-by: Sebasiten Chopin <seb@nuxtjs.com>
2020-11-06 10:12:57 +01:00
Pooya Parsa 5fdc6ccfb6 chore: fix eslint issues 2020-11-05 22:59:14 +01:00
Pooya Parsa 04a25fc527 feat(browser): inject script to js template 2020-11-05 22:56:40 +01:00
Pooya Parsa 6e1678316e feat: inject sw script to pages 2020-11-05 22:40:25 +01:00
Pooya Parsa 360bba7d80 fix only empty slsDir 2020-11-05 22:24:36 +01:00
Pooya Parsa 9d02552c3c feat: make browser target working again 2020-11-05 22:23:24 +01:00
Pooya Parsa 4185ec896f fix: extend routes from serverless.static 2020-11-05 21:42:40 +01:00
Pooya Parsa a4952a057c fix: add generate.routes and disable crawler 2020-11-05 20:13:50 +01:00
Pooya Parsa 415db060b0 feat: support staticAssetsBase 2020-11-05 19:53:17 +01:00
Pooya Parsa 005421e04d NUXT_SLS_TARGET 2020-11-05 17:49:44 +01:00
Pooya Parsa 4c485ba33a chore: enable inlineChunks by default 2020-11-05 17:33:51 +01:00
Pooya Parsa 274c98f5aa rename default ssr entry to server.js 2020-11-05 16:36:31 +01:00
Pooya Parsa f2d1064560 refactor: simplify targets to node and worker 2020-11-05 15:12:35 +01:00
Pooya Parsa 8f5534c90a refactor: simplify usage with single target 2020-11-05 14:38:15 +01:00
Daniel Roe d4624abfb9 fix: add prefix to dynamic imports name (#5)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-11-05 13:28:40 +01:00
Daniel Roe dfdd466270 feat: improve types (#6)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-11-05 13:26:00 +01:00
Pooya Parsa e0505568aa feat: whitelist static routes 2020-11-05 13:02:57 +01:00
Pooya Parsa 486c881b2d feat: rewrite as nuxt module 2020-11-05 12:28:39 +01:00
Pooya Parsa 0245bd65de feat: generate public (dist/) 2020-11-04 20:01:53 +01:00
Pooya Parsa 425941d1b4 move artifacts to {buildDir}/sls 2020-11-04 19:19:34 +01:00