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

32 commits

Author SHA1 Message Date
Luke Edwards ff7e128c80 add cli version flags (#435)
* add version flags

* fix typo -.-
2016-12-19 12:14:23 -08:00
Stephen Sauceda 955f6817c4 Add cli usage information (#423)
* add cli usage: `next init`

* add cli usage: `next --help`

* add cli usage: `next build --help`

* add cli usage: `next dev --help`

* add cli usage: `next init --help`

* add cli usage: `next start --help`

* use set

* build, start and dev all accept a directory

* typo and conciseness
2016-12-18 12:28:34 -08:00
Ives van Hoorne 5ab7463b93 Exploration of different config + expose webpack config (#222)
* Use next.config.js instead of package.json

* Remove irrelevant comment

* Integrate with custom webpack config

* Include hotReload option

* Remove async/await for getConfig

* Read package.json, show warning when webpack in config is defined

* Prepend warning message with WARNING

* Update log statements

* Documentation

* Restart server on change of config

* Fix process handling and cases where there is no config

* Also restart server when config file gets deleted

* Changed second parameter of webpack to config

* Support for returning Promise

* Update documentation, fix bug with webpack config

* Remove package.json, cdn and hotReload from config
2016-12-17 10:38:11 -08:00
Naoyuki Kanezawa 1708222381 Programmatic API (#310)
* add 'next' api

* add render APIs

* add 'as' prop to Link

* check Accept header to serve json response

* check if response was finished on getInitialProps call

* move server/app to server/index

* load webpack-hot-middleware-client by absolute path

* server: options for testing

* add tests

* example: improve

* server: make dir optional

* fix client routing

* add parameterized routing example

* link: fix display url

* Add custom-server-express example (#352)

* Add custom-server-express example

* Remove extraneous nexts in express routes defs

* Update next config in server.js

* Handle accept headers totally inside Next.js (#385)

* Handle accept headers totally inside Next.js
Now user doesn't need to handle it anymore.

* Move json pages serving to /_next/pages base path.

* Join paths correctly.

* remove next/render
2016-12-16 12:33:08 -08:00
Stephen Sauceda 694c8c56c7 update default page generated by next init (#376)
* use next logo on 'init' start page

* use github cdn for logo
2016-12-11 12:01:39 -08:00
Leo Lamprecht 7bb903d563
Only show the URL locally, not on the Now platform
Now outputs a URL by itself
2016-12-06 21:39:26 +01:00
nkzawa 6ca52f3ee2 use template literals for console.log 2016-12-02 15:29:02 +09:00
Naoyuki Kanezawa 12f31b5bf3 Source map support (#279)
* generate source-maps on development

* remove unused dep
2016-12-02 10:43:38 +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 b86f6a2d42 Ensure bin files are linted. Fix lint issue in bin/next-init. (#158) 2016-10-31 11:39:55 -07: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
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
Dan Zajdband 38efb9f96e Using process.exit instead of exit 2016-10-25 16:03:24 +01:00
Dan Zajdband 0bae38ae16 It was process.exit 2016-10-25 16:01:36 +01:00
Dan Zajdband 14ef3fcfca Only console error 2016-10-25 15:27:21 +01:00
Dan Zajdband 37f76b16bc Error instead of warning on missing pages dir 2016-10-25 15:25:45 +01:00
Dan Zajdband 91d979d559 Removed auto open tab functionality (#45) 2016-10-25 14:36:02 +02:00
nkzawa ec774a39da refactor paths 2016-10-19 21:58:08 +09:00
nkzawa ae5098599a hot-reloader: refactoring 2016-10-17 16:05:46 +09:00
nkzawa a40bba954b remove .next before compiling 2016-10-17 12:55:33 +09:00
nkzawa 1be8447a26 Merge branch 'master' into add/hot-reload 2016-10-17 11:10:16 +09:00
Dan Zajdband 142a6e375b Open tab when running next dev (#8)
* Open tab when running next dev

* Added NEXT_OPEN_BROWSER env var to prevent open a browser tab on next dev

* using regexp for testing false on env var

* adding ! to if
2016-10-16 18:49:33 -07:00
Dan Zajdband d9b1828c79 Added warning when pages dir is not present (#14)
* Added warning when pages dir is not present and a special one if it exists as a sibling of the project root

* Added requested copy changes
2016-10-16 18:04:35 -07:00
Dan Zajdband 1477734211 Added linting using standard (#27)
* Added linting using standard

* Linting on test
2016-10-16 17:00:17 -07:00
Dan Zajdband 97ad053855 Added next init command for starting a new project (#15)
* Added next bootstrap command for starting a new project

* renamed bootstrap to init and check we are not in a dir called pages

* Removed extra empty line
2016-10-16 16:55:30 -07:00
nkzawa 3032ade283 write assets to disk 2016-10-16 04:49:42 +09:00
nkzawa 26e6193a97 hot-reload: initial 2016-10-15 00:05:08 +09:00
nkzawa 6718b05347 add _error.js, fix error handlings 2016-10-09 18:25:38 +09:00
Dan Zajdband 1833effeb7 Fixes next dev and adds the css requires 2016-10-06 18:40:15 -04:00
nkzawa 88b01e0a72 next-dev 2016-10-06 20:05:52 +09:00
nkzawa 9b06a22f31 initial source 2016-10-06 08:52:50 +09:00