1. 05 10月, 2019 1 次提交
    • J
      Convert Dev Server to TypeScript (#8966) · e9b2e25c
      Joe Haddad 提交于
      * Convert Dev Server to TypeScript
      This converts the Next.js Development Server to TypeScript in prep for upcoming changes.
      
      * Convert remaining necessary
      
      * Fix some type errors
      
      * Adjust types
      e9b2e25c
  2. 24 9月, 2019 1 次提交
  3. 04 9月, 2019 1 次提交
    • T
      Move next-server back into `next` package (#8613) · 2ba352da
      Tim Neutkens 提交于
      * Initial move
      
      * Make emitting work
      
      * Update paths
      
      * Remove leftover files
      
      * Add correct externals configuration
      
      * Import correct path
      
      * Update path to work with ts-server test
      
      * Update lib directory
      
      * Compile next-server/lib
      2ba352da
  4. 20 8月, 2019 1 次提交
  5. 17 7月, 2019 1 次提交
  6. 27 6月, 2019 1 次提交
  7. 24 6月, 2019 1 次提交
  8. 22 6月, 2019 1 次提交
    • G
      ncc Webpack build redux (#7628) · e85a517e
      Guy Bedford 提交于
      * Reimplement ncc webpack build
      
      This reverts commit 6feca310.
      
      * Shared webpack build
      
      * ncc workaround pending @zeit/ncc#437
      
      * update ncc
      
      * build tweaks, fixup autodll-import
      
      * possible Node 8 fix
      
      * second possible Node 8 fix
      
      * and update taskfile
      e85a517e
  9. 06 6月, 2019 1 次提交
    • T
      Simplify a few parts of the codebase (#7506) · 7e7f2c0a
      Tim Neutkens 提交于
      * Move client-side dev JS to dev folder
      
      * Move eventsource polyfill
      
      * Move source-map-support
      
      * Move error boundary
      
      * Deprecate Container in _app
      
      * Make initialRender check better
      
      * Remove unused code
      
      * Only support one subscription as there is only one
      
      * Don’t spread object
      
      * Shorten property name
      
      * Add container in development too
      
      * Simplify query update logic
      7e7f2c0a
  10. 29 5月, 2019 1 次提交
    • T
      Move syntax formatting to prettier (#7454) · 3e51ddb8
      Tim Neutkens 提交于
      * Run prettier over packages/**/*.js
      
      * Run prettier over packages/**/*.ts
      
      * Run prettier over examples
      
      * Remove tslint
      
      * Run prettier over examples
      
      * Run prettier over all markdown files
      
      * Run prettier over json files
      3e51ddb8
  11. 17 5月, 2019 2 次提交
  12. 08 5月, 2019 1 次提交
  13. 29 4月, 2019 2 次提交
  14. 27 4月, 2019 1 次提交
  15. 23 4月, 2019 1 次提交
  16. 22 4月, 2019 1 次提交
  17. 16 4月, 2019 1 次提交
    • J
      Remove client bundles for AMP only pages (#7034) · 59b328b5
      JJ Kasper 提交于
      * Remove client bundles for AMP pages
      after build since they are not used
      
      * Remove trailing white space
      
      * Use async-sema to limit removing AMP client bundles
      
      * Bring AMP client bundle removing
      semaphore concurrency down to 20
      
      * Don't check blocked pages when
      deleting AMP client bundles
      
      * Update client bundle removing for AMP pages
      
      * Add error handling for removing client AMP pages
      
      * rethrow error unless ENOENT during
      deleting AMP client pages
      
      * Handle error during removing AMP client
      pages the same during dev
      
      * Fix throwing instead of rejecting
      
      * Make sure next/config is set before requiring page
      
      * Update error check
      
      * return on reject
      
      * Fix next/config
      59b328b5
  18. 13 4月, 2019 1 次提交
    • J
      Amp page level reload (#6971) · 09a2fe5c
      JJ Kasper 提交于
      * Only refresh the page when the active
      page is updated in AMP mode
      
      * Update handling of page reload to make sure it
      still refreshes after a change to another page
      
      * Update checking to be more accurate
      
      * Fix amp-dev not being loaded without
      experimental.amp and remove next.config from amp example
      
      * Remove old with-amp example and
      rename experimental-amp to with-amp
      
      * update example name
      Co-Authored-By: Nijjk <jj@jjsweb.site>
      
      * Update comment wording
      Co-Authored-By: Nijjk <jj@jjsweb.site>
      
      * Use document for reload to keep scroll position
      Co-Authored-By: Nijjk <jj@jjsweb.site>
      
      * fallback to reloading on error
      Co-Authored-By: Nijjk <jj@jjsweb.site>
      
      * Update with-amp example readme
      09a2fe5c
  19. 12 4月, 2019 1 次提交
    • J
      Replace `.amp.js` with `withAmp(Comp)` (#7009) · e5111745
      JJ Kasper 提交于
      * Add WithAmp to enable AMP support for
      pages instead of .amp.js
      
      * Update handling for exporting AMP
      
      * Fix ampPath in export for / path and
      revert isAmp logic to handle right
      
      * Update amphtml test suite
      
      * Add handling for noDirtyAmp during
      export and update amp-export test suite
      
      * Update serverless and export-default-map
      test suites
      
      * Update require-page tests
      e5111745
  20. 05 4月, 2019 1 次提交
    • J
      Make Client request BUILD_ID from the Server (#6891) · 19c63517
      Joe Haddad 提交于
      * Generate two versions of pages
      
      * Add code VSCode deleted
      
      * Add dynamicBuildId option to __NEXT_DATA__
      
      * Reduce amount of diff
      
      * Make getPageFile code easier to read
      
      * Minimize diff
      
      * minimize diff
      
      * Fix default value for dynamicBuildId
      
      * Fix weird bug
      
      * Fetch the head build id on client
      
      * Move __selectivePageBuilding
      
      * Add tests
      
      * Remove _this
      
      * Add console warning
      19c63517
  21. 19 3月, 2019 1 次提交
    • J
      Add support for creating AMP pages (#6706) · 12cbb934
      JJ Kasper 提交于
      * Add support for .amp.js pages and
      resolving /page?amp=1 to page.amp.js
      
      * Update amp tests
      
      * Update example and clean up amp page resolving
      
      * Add nested amp test
      
      * page => normalizedPage
      
      * Add type to page options
      
      * Add handling of amp with all pageExtensions
      and normalize page
      
      * Make sure findPageFile only falls back to
      amp if enabled
      12cbb934
  22. 15 3月, 2019 2 次提交
  23. 05 3月, 2019 1 次提交
    • C
      Implement Recursive Delete (#6489) · 861edad4
      Connor Davis 提交于
      Removes `rimraf` for a smaller custom lib
      
      Benchmarks (in ms):
      ```
      rimraf 1
      518.536376
      rimraf 2
      416.112451
      rimraf 3
      451.905842
      rimraf 4
      525.117395
      rimraf 5
      434.230384
      ---- Average: 469.18ms
      -----------
      recursive delete 1
      121.493979
      recursive delete 2
      130.335272
      recursive delete 3
      149.798316
      recursive delete 4
      182.184688
      recursive delete 5
      130.346207
      --- Average: 142.83ms
      ```
      `recursiveDelete` finishes in ~30% of the time it takes `rimraf` (3.3 times faster)
      861edad4
  24. 26 2月, 2019 1 次提交
    • J
      AMP automatic page refreshing in dev (#6392) · f15cfeba
      Joe Haddad 提交于
      * AMP page reload
      
      * Fix comment
      
      * Skip dev files in production
      
      * Polyfill event source
      
      * Add HMR test for AMP
      
      * Use webdriver
      
      * Use a dynamic server for HMR test
      
      * ffs
      f15cfeba
  25. 25 2月, 2019 1 次提交
    • C
      Remove glob package (#6415) · 5514949d
      Connor Davis 提交于
      We don't use a lot of the features of `glob`, so let's remove it in favor of a leaner approach using regex.
      
      It's failing on windows and I have no idea why and don't own a windows machine 🤦🏼‍♂️
      
      (Ignore some of the commits in here, I forgot to create the new branch before I started working)
      5514949d
  26. 23 2月, 2019 1 次提交
  27. 20 2月, 2019 3 次提交
  28. 18 2月, 2019 1 次提交
  29. 17 2月, 2019 1 次提交
    • J
      Fix development mode output (#6312) · 56b1f81a
      Joe Haddad 提交于
      * Remove usage of WebpackBar and Friendly Errors
      
      * Add new clearConsole helper
      
      * Add new simplified output for development mode
      
      * Add an explicit bootstrapping mode
      
      * Add missing returns
      
      * Use existing output style
      
      * Adjust first output to say Waiting on
      
      * Only print URL if present
      56b1f81a
  30. 16 2月, 2019 1 次提交
  31. 03 2月, 2019 1 次提交
  32. 19 1月, 2019 1 次提交
  33. 09 1月, 2019 1 次提交
    • T
      Replace pages-plugin with loader (#5994) · 9ffd23ee
      Tim Neutkens 提交于
      * Remove unused argument
      
      * Replace pages-plugin with loader
      
      * Add loader-utils types
      
      * Remove logs
      
      * Bring back previous deposal behavior
      
      * Remove console.log
      
      * Remove webpack/utils as it’s no longer in use
      
      * Remove hot-self-accept-loader
      
      * Error Recovery tests
      
      * Make hotSelfAccept a noop default loader
      
      * Fix windows deleted/added
      
      * Remove logging
      
      * Remove unused variables
      
      * Remove log
      
      * Simplify entrypoint generation
      
      * Don’t return the function
      
      * Fix _app test
      
      * Remove code that’s always true
      
      * Move aliases to constants
      
      * Use alias
      
      * Join pages alias in reduce
      
      * Default pages differently
      
      * Loop over pages instead of manually defining
      
      * Move entry generation into common function
      
      * Update packages/next/build/webpack/loaders/next-client-pages-loader.ts
      Co-Authored-By: Ntimneutkens <tim@timneutkens.nl>
      
      * Update packages/next/build/webpack/loaders/next-client-pages-loader.ts
      9ffd23ee
  34. 01 1月, 2019 1 次提交
  35. 16 12月, 2018 1 次提交