Joe Haddad
74cb4f4b7b
Switch to using .next/cache
for flying shuttle and terser ( #7013 )
2019-04-11 17:09:12 -04:00
Joe Haddad
510815a7ac
Add Flying Shuttle tests ( #7000 )
...
* Add Flying Shuttle tests
* Test second version of server
* Finish first version of tests
* Apply suggestions from code review
Co-Authored-By: Timer <timer150@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Timer <timer150@gmail.com>
2019-04-10 17:08:19 -04:00
JJ Kasper
711d45b698
Use next.config env and packages to calculate hashes ( #7001 )
...
* Use next.config env and packages to calculate
hashes for chunk-graph
* Remove example from testing
* remove left over import
* Tweak behavior
2019-04-10 15:19:50 -04:00
Joe Haddad
c2d0a4ef0e
Add Flying Shuttle v1 ( #6991 )
...
* Add Flying Shuttle v1
* Add serverless file restoration
* Add another message
* Update test
* Resolve page version last
* Print number of changed pages
* Remove old tests
* Re-add head build ID writing
* Change syntax appearance
* Start adding test components
* Fix react loadable manifest
* Complicate dynamic testing
* Fix first build missing head build id
* Remove flying shuttle tests
2019-04-10 12:41:59 -04:00
Luis Fernando Alvarez D
ae5eeb39f4
Brought escape-string-regexp source to next ( #6979 )
...
* Brought escape-string-regexp source to next
* Added Copyright comment
2019-04-09 15:06:55 -04:00
Luis Fernando Alvarez D
f89bd8237b
Replace imurmurhash with string-hash ( #6964 )
...
Closes #6939
2019-04-09 12:49:30 +02:00
Joe Haddad
b586dbf5ef
Upgrade Async to Promises ( #6958 )
2019-04-08 11:00:01 -04:00
Tim Neutkens
84bb620bef
Temporarily only do one pass ( #6900 )
...
* Temporarily only do one pass
* Add types
2019-04-05 12:32:00 +02:00
Joe Haddad
e7ca6aa45e
Correctly compute unknown module ids ( #6898 )
2019-04-04 20:41:07 -04:00
Joe Haddad
19c635175b
Make Client request BUILD_ID from the Server ( #6891 )
...
* 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
2019-04-04 17:54:01 -04:00
Tim Neutkens
8d73af8232
Upgrade amp-toolbox-optimizer ( #6890 )
2019-04-04 09:45:43 -04:00
JJ Kasper
3d76c9f9bf
Update to latest version of amp-toolbox-optimizer ( #6885 )
2019-04-03 18:18:09 -05:00
JJ Kasper
6344c5f0c1
Add optimizing AMP pages ( #6835 )
...
* Added amp-toolbox-optimizer and added
optimizing AMP pages as dirty and clean
* Fix amp-optimizer breaking serverless build
* Exclude amp-toolbox-optimizer from serverless build
* Added check to make sure hybrid AMP pages
optimize cleanly during export
* Add check to make sure noDirtyAmp is applied
2019-04-02 13:01:34 -05:00
Tim Neutkens
b1fdffec75
amp-bind data injection ( #6840 )
2019-04-02 16:09:34 +02:00
Luis Fernando Alvarez D
84fbd4b594
added async-to-promises transform ( #6797 )
...
Replaced regenerator with async-to-promises
2019-04-02 15:42:09 +02:00
Luis Fernando Alvarez D
f81e5f4cad
Added babel-plugin-dynamic-import-node ( #6811 )
...
Replaces `import()` with `require` only for the testing environment.
2019-03-30 01:50:24 +01:00
JJ Kasper
533018f7d0
Update tests for BrowserStack ( #6810 )
...
Update tests to setup webdriver stuff in `jest-environment` and re-use one browser session instead of spawning one for each webdriver call to prevent creating too many BrowserStack sessions.
2019-03-29 16:05:53 +01:00
Alexander Nanberg
20768ff372
Upgrade unfetch to v4.1.0 ( #6807 )
...
`unfetch` ^4.0.0 is already used by `isomorphic-unfetch` so this simplifies the dependency tree a tiny bit.
Release notes
https://github.com/developit/unfetch/releases/tag/4.0.0
https://github.com/developit/unfetch/releases/tag/4.1.0
2019-03-27 19:56:46 +01:00
Connor Davis
a79c004de0
Remove magic-string ( #6772 )
...
* Remove magic-string
* Add back input
* change if statement back
* Fix typo
* remomve useless import
2019-03-24 23:50:58 -04:00
Tim Neutkens
3e7b932b2b
ncc resolve and arg ( #6771 )
...
More modules to follow.
2019-03-24 23:38:03 +01:00
Tim Neutkens
eb28d4cdcf
Remove hoist-non-react-statics from with-router ( #6765 )
...
* Remove hoist-non-react-statics from with-router
* Drop hoist-non-react-statics from package.json
2019-03-23 21:31:44 +01:00
JJ Kasper
7d0919a784
Break up basic test suite ( #6730 )
...
* Break out client-navigation and rendering
test from basic test
* Try with parallelism dialed back to 3
* Update jest-junit for more compatible timings in CircleCI
* Bump to test timings
* Use filepath for suitename in jest-junit
* Store reports as artifacts
* Try using classname for timings
* Bump
* Remove reports from artifacts
2019-03-20 11:01:32 +01:00
Joe Haddad
ff5c8465de
First pass of runtime amp validator ( #6708 )
2019-03-18 19:21:18 -04:00
Joe Haddad
e5636dcdb0
Inject the build ID after webpack runs ( #6618 )
...
* Inject the build ID after webpack runs
* add webpack sources types
* use webpack plugin instead
* reset file
* Skip source maps if none were provided
Co-Authored-By: Timer <timer150@gmail.com>
2019-03-12 16:39:44 -04:00
JJ Kasper
995460d7dd
Replace md4 hashing with murmurhash ( #6611 )
2019-03-11 16:23:04 -05:00
Tim Neutkens
dd60199cec
Remove case-sensitive-paths-plugin ( #6587 )
...
While this is a nice feature it does filesystem operations to check if the resolved file matches the filesystem.
2019-03-10 01:44:51 +01:00
JJ Kasper
ff7299d184
Update react-error-overlay and use reportRuntimeError ( #6577 )
...
Fixes : #5481
2019-03-08 16:24:15 +01:00
JJ Kasper
a3356c5edb
Try restarting chromedriver on timeout ( #6566 )
...
Also added `HEADLESS` env var for local testing
2019-03-08 10:23:57 +01:00
Tim Neutkens
9b62f208bb
Remove cacheKeys option and improve filtering ( #6559 )
...
More cleanup of terser-plugin.
2019-03-07 14:28:32 +01:00
Connor Davis
861edad459
Implement Recursive Delete ( #6489 )
...
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)
2019-03-05 14:01:42 +01:00
JJ Kasper
491f9a2c49
Move next-mdx from zeit/next-plugins to zeit/next.js ( #6443 )
...
At request of @timneutkens I moved the `next-mdx` plugin from the next-plugins repo into Next.js. Also fixed small typo in README under setup.
2019-03-04 18:02:45 +01:00
Joe Haddad
436fc54212
Correct yarn.lock ( #6503 )
2019-03-01 13:59:30 -05:00
Connor Davis
7dc50f3867
Remove cross-spawn ( #6450 )
2019-02-26 14:57:32 -06:00
Connor Davis
5514949df0
Remove glob package ( #6415 )
...
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)
2019-02-24 22:08:35 +01:00
Tim Neutkens
297f1a3fc0
Remove event-source-polyfill dependency
2019-02-23 11:51:54 +01:00
Connor Davis
b146eb5200
Replace del
with rimraf
package ( #6411 )
2019-02-22 13:49:30 -06:00
Tim Neutkens
bfb5224ce4
Remove schema-utils dependency ( #6413 )
2019-02-22 20:05:34 +01:00
Tim Neutkens
6d17a93b63
Upgrade async-sema ( #6410 )
2019-02-22 19:14:38 +01:00
Connor Davis
597c7d447a
Add taskfile for ncc ( #6409 )
...
* Add ncc taskfile
* Add ncc dep and pass options
* dev dep
2019-02-22 17:33:53 +01:00
Tim Neutkens
e60a7cf529
Remove mkdirp-then in favor of promisify ( #6408 )
2019-02-22 17:33:28 +01:00
Tim Neutkens
9247c90177
Remove http-status dependency ( #6405 )
2019-02-22 16:25:11 +01:00
Joe Haddad
1757ad022c
Drop cli-cursor dependency ( #6387 )
2019-02-21 15:34:35 +01:00
Joe Haddad
8b784766f1
Remove alternate screen usage ( #6377 )
...
* Make console output well behaved
* Fix bad rebase
2019-02-21 00:42:27 +01:00
Connor Davis
61de215e04
Move webpack config to TypeScript ( #6348 )
2019-02-20 13:24:02 -06:00
Joe Haddad
90f9c64b74
Use alternate screen buffer if terminal supports it ( #6364 )
2019-02-20 07:20:09 -05:00
Connor Davis
fcf1167cd4
Upgrade standard and fix files ( #6358 )
...
Upgrades `standard` to major version 12
2019-02-19 22:45:07 +01:00
JJ Kasper
bf69357f27
Remove onDemandEntries WebSocket server in favor of EventSource connection ( #6354 )
...
After talking with @timneutkens it was decided it'd be more streamlined to replace the onDemandEntries WebSocket with an alternative. Using the EventSource connection gives us these benefits over the WebSocket one:
- less code needed
- no extra server running
- no extra config for onDemandEntries
2019-02-19 21:58:47 +01:00
Joe Haddad
56b1f81ace
Fix development mode output ( #6312 )
...
* 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
2019-02-16 17:09:49 +01:00
Tim Neutkens
4051ffcb01
[experimental] Rendering to AMP ( #6218 )
...
* Add initial AMP implementation
* Implement experimental feature flag
* Implement feedback from sbenz
* Add next/amp and `useAmp` hook
* Use /:path*/amp instead
* Add canonical
* Add amphtml tag
* Add ampEnabled for rel=“amphtml”
* Remove extra type
2019-02-14 10:22:57 -05:00
Connor Davis
e1056e32cf
Add yarn check to test ( #6257 )
2019-02-11 23:26:42 +01:00