1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
Commit graph

201 commits

Author SHA1 Message Date
Sébastien Dubois c5887281fb Update glamor (#228) 2016-11-09 19:15:58 +09:00
Andrew McCloud 7f0f3ae940 Upgrade babel-plugin-module-resolver to 2.3.0 to fix #202 (#218) 2016-11-07 11:11:54 +09:00
nkzawa 64b6e335e4 gulp: make sure to copy files before testing 2016-11-07 02:20:10 +09:00
nkzawa c70e0026ec travis: remove sudo setting (it's default) 2016-11-06 21:00:02 +09:00
nkzawa b9d6a59415 Release 1.1.1 2016-11-06 17:52:17 +09:00
nkzawa 5383ad7ed9 fix getInitialProps doesn't get called when only url query was changed 2016-11-06 17:34:51 +09:00
nkzawa efbf0efc98 fix query for getInitialProps is not parsed as an object 2016-11-06 15:09:37 +09:00
nkzawa 027622f646 add ava as a devDependencies for npm@2.x 2016-11-06 14:47:13 +09:00
nkzawa fe9e72ac16 README: add travis badge 2016-11-06 03:21:32 +09:00
nkzawa fd52ddfdc9 travis: set sudo false 2016-11-06 03:20:04 +09:00
Siddharth Kshetrapal 18ab55bc73 Added travis file (#205)
* Added travis file

* Dropping node 5

* Added os field as well

* Removed os, fails on both osx and linux

* Adding ava and sockjs-client as devDeps

* Shouldn't need ava 🤔

* Moved sockjs-client to dependency
2016-11-06 03:04:59 +09:00
nkzawa b56428529d new color scheme for debug error page 2016-11-06 02:02:57 +09:00
nkzawa e81de708b8 resolve dependency of pages/_error-debug from next root dir 2016-11-06 01:12:21 +09:00
nkzawa ef409af453 Revert "Revert "Add syntax highlighting to debug error page" (#197)"
This reverts commit f4ae99fc54.
2016-11-06 00:15:54 +09:00
Guillermo Rauch 0c27e3ab16 package: bump version for release 2016-11-05 09:18:04 +08:00
Naoyuki Kanezawa f4ae99fc54 Revert "Add syntax highlighting to debug error page" (#197) 2016-11-04 21:23:00 +09:00
nkzawa 060480f212 Merge branch 'patch-3' of https://github.com/timoxley/next.js into timoxley-patch-3 2016-11-04 20:37:36 +09:00
nkzawa 27c5632b1d add strip-ansi again 2016-11-04 19:29:39 +09:00
David Street bce4434db9 Add syntax highlighting to debug error page (#195) 2016-11-04 17:16:29 +09:00
Naoyuki Kanezawa d1a0309af9 Add pathname and query to the argument of getInitialProps (#194)
* pass pathname and query to getInitialProps on both server and client

* README: describe about the contet object of getInitialProps
2016-11-04 01:05:03 -07:00
Naoyuki Kanezawa e775721f34 Hot reload error page (#190)
* add detach-plugin

* detach-plugin: remove unused property

* watch-pages-plugin: replace _error.js when user defined one was added/removed

* dynamic-entry-plugin: delete cache

* fix HMR settings for _error.js

* render: pass error only on dev

* hot-reload: enable to hot-reload error page

* server: check if /_error has compilation errors

* webapck-dev-client: fix reloading /_error
2016-11-04 00:12:37 +09:00
David Street 7186fe8b7e Only update history state if url differs. (#172) 2016-11-03 19:15:03 +09:00
Tim Oxley 77739f4d5e next init: Create supplied directory if it does not exist. (#136)
* next init: Create supplied directory if it does not exist.

* next init: use mkdirp to init into nested dirs.

Picked mkdirp-then out of many alternatives. Same author & similar
dependencies to mz.

Now next init a/b/c works.

Related https://github.com/zeit/next.js/pull/136#discussion_r85543040
2016-11-03 19:07:15 +09:00
Tim Oxley d8cf0ba7c4 Readme: Explain where & when getInitialProps executes 2016-11-02 13:42:06 -07:00
Sébastien Dubois c4d626108e Slack badge (#176) 2016-11-02 12:02:56 -07:00
Guillermo Rauch c3ae04b69a Update README.md 2016-10-31 18:13:42 -07:00
Guillermo Rauch 07dbf2a20c Update README.md 2016-10-31 18:13:13 -07:00
Tim Oxley b86f6a2d42 Ensure bin files are linted. Fix lint issue in bin/next-init. (#158) 2016-10-31 11:39:55 -07:00
nkzawa a3548a6717 hot-reloader: remove fileSystem property 2016-11-01 01:15:50 +09:00
Naoyuki Kanezawa f335c21c7c hot-reload failed and succeeded chunks (#167) 2016-10-31 19:51:03 +09:00
Brandon Bayer 47d0571341 README: add more help on using Glamor (#165) 2016-10-31 16:32:51 +09:00
Cole c5bbff412b Update system font stacks on error pages (#157)
* Enhance system font stack on _error.js

`-apple-system` = SF on Safari (macOS/iOS)
`BlinkMacSystemFont` = SF on Chrome (macOS)
`Roboto` for Android
`Segoe UI` for Windows
`Fira Sans` for Firefox OS
`Avenir` for pre-SF macOS
`Helvetica Neue, Lucida Grande` for older macOS

* Enhance system font stacks on _error-debug.js

Updates fonts to use better quality system fonts where commonly available
2016-10-30 15:07:18 +09:00
Tim Oxley 5595232f58 next init: Exit non-zero when refusing to run in 'pages' dir. (#156)
Should only exit `0` if the command was successful. The command refusing to execute should be considered a failure.

Also, this condition can be detected synchronously, no need to wait on the async existence check.
2016-10-30 15:03:05 +09:00
nkzawa 4c2f381e74 Release 1.0.2 2016-10-30 02:17:26 +09:00
Michael Helvey 3fa636fa81 Expose css, link, and head in package. (#154)
* Expose next/css, next/link, and next/head.

This allows test runners like Jest and ESLint's file resolver to
be able to find exported modules within `next`.

Fixes #113

* Removed semicolons for linting and expose modules.
2016-10-30 02:12:54 +09:00
nkzawa 4ea933725d example: add missing dependencies and babel config 2016-10-29 22:20:29 +09:00
Giang Nguyen a636ba36a4 Add license MIT (#93)
* Add license MIT

* Fix typo

* Remove extension LICENSE

* Change copyright to Zeit, Inc.

* Remove section license in README file

* Update README.md
2016-10-29 12:56:46 +02:00
Brandon Bayer 7501e80b4b fix: add json-loader to dependency list (#146) 2016-10-29 12:44:10 +02:00
Ilmari Vacklin c69686b5fc Use -apply-system font on error page (#140)
The CSS rule on the error page doesn't work and the text on the page isn't rendered in SF UI Text. If we want to use SF on the error page, then, at least in Safari, we can use `-apply-system` as the font family.

I also added a fallback to sans-serif, just to be explicit.
2016-10-28 20:00:41 +02:00
nkzawa ca161c375f set babel plugins using absolute paths 2016-10-29 00:50:31 +09:00
nkzawa 990e39b13e replace babel-plugin-module-alias with babel-plugin-module-resolver 2016-10-29 00:48:14 +09:00
nkzawa e2a7c5f0e8 Release 1.0.1 2016-10-28 23:47:07 +09:00
Naoyuki Kanezawa 037e2d9c26 batch update head contents (#129)
* head-manager: batch update

* side-effect: remove redundant rendering cycle checks
2016-10-28 23:39:20 +09:00
Naoyuki Kanezawa 93d856706b add cdn config (#111) 2016-10-28 23:38:24 +09:00
Tim Oxley da1cdcb843 next init: create package.json with empty description (#135) 2016-10-28 12:05:30 +01:00
Tim Oxley cab1f48d1e next init: Inherit project name from directory. (#134) 2016-10-28 12:05:11 +01:00
Tryggvi Gylfason 9ad0e57e6e Update readme.md (#128) 2016-10-28 16:58:41 +09:00
Siddharth Kshetrapal 27fa4e958e Freezing version for standard (#108)
Added in https://github.com/zeit/next.js/pull/27
2016-10-27 17:57:47 +09:00
nodegin e763dc731b Fix #85 (#97) 2016-10-27 08:49:05 +09:00
nkzawa dbc125f7e3 README: fix instruction 2016-10-27 08:07:33 +09:00