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

10 commits

Author SHA1 Message Date
Matthew Mueller de57e92109 standard format + remove unnecessary react dependency (#492) 2016-12-23 20:08:49 +09: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
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
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 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