Clark Du
c55f213743
fix: use correct server config in nuxt dev
2018-08-13 16:34:01 +01:00
Clark Du
3b4b8640b8
fix: use correct config for server host and port
2018-08-13 16:31:54 +01:00
Anthony Fu
0dff1b8fe9
feat: support server
option in nuxt.config.js
to set PORT and HOST ( #3701 )
...
* feat: support `server` option in `nuxt.config.js` to set PORT and HOST
* lint
* change the conifg priority to `argv > nuxt.config.js > env.NUXT_PORT > env.PORT > package.json > default`
* check for `options.server`
2018-08-12 15:26:30 +01:00
Clark Du
68dfc60078
fix: lint error in bin ( #3668 )
2018-08-09 22:35:55 +01:00
Jonas Galvez
a522aaf125
misc: add user-defined chokidar files to watch (2) ( #3633 )
...
* misc: add user-defined chokidar files to watch
* Improved user-defined chokidar files setup
* Improved user-defined chokidar files setup (2)
* Added custom file for CLI watch test
* Added cli.dev.test.js
* Added cli.dev.test.js (2)
* Remove cli-start/cli.dev, just use cli.test
* Refactored CLI test
* Missing dot in fname
* Improved user-defined chokidar files setup (3)
* Fix killNuxt()
* Remove genHandlers
* Refactored CLI test (2)
* Refactor exitCode
* Remove debugging code
* Remove debugging code (2)
* Linting
* Linting (2)
* Disable nuxt-start test for now
* Disable nuxt-start test for now (2)
* Tweaking nuxt-start test
* Tweaking nuxt-start test (2)
* Tweaking nuxt-start test (3)
* Fix ext
* Tweaked wait params
* Fix conflicts
* hotfix
* nuxt-dev tweak
* Add blank line after variables declaration
* Disable waitFor() test due to random failure in appveyor
* Fixed error msg
* Refactored into builder.js
* Refactored into builder.js (2)
* Remove unnecessary import from nuxt-dev
* Fixed nuxt-dev test
* Debugging nuxt-dev test
* Debugging nuxt-dev test (2)
* Skip in appveyor
* Linting
* Requested changes
* Hook into nuxt-dev
* Hook into nuxt-dev (2)
* Get fname
* Get fname (2)
* Get fname (3)
* Change hook name
* Fixed conflict
2018-08-08 19:51:57 +01:00
Clark Du
a0ca257263
fix: lost context in closures
2018-07-25 17:10:56 +01:00
Alexander Lichter
095404a251
refactor: change function calls when arity is one ( #3563 )
2018-07-20 16:42:31 +01:00
Pooya Parsa
0ca99426c9
chore: remove unnecessary scopes
2018-04-02 00:50:46 +04:30
Pooya Parsa
f14ac05ce4
perf(nuxt-dev): start first listen as fast as possible
...
also fixes problem with showReady not showing on first compile
2018-04-02 00:26:59 +04:30
Pooya Parsa
46fcf47db1
fix: prevent showReady when has compile errors
2018-04-02 00:00:39 +04:30
Pooya Parsa
89d5f3753e
perf: prevent duplicate showReady
2018-04-01 00:50:14 +04:30
Pooya Parsa
5e595e7e66
misc: improve cli
2018-04-01 00:26:38 +04:30
Pooya Parsa
59ff0df052
feat: use consola for logging
2018-03-31 20:52:14 +04:30
Pooya Parsa
53e98a958c
feat: rewrite core to esm
2018-03-16 19:42:06 +03:30
qm3ster
ad0649925d
Refactor cli
...
Extracted common logic
Improved style consistency
2018-02-07 02:44:29 +02:00
Pooya Parsa
dbba642d56
fix debug logs
...
env.DEBUG should be set BEFORE requireing Utils
2018-01-16 10:13:41 +03:30
Pooya Parsa
13166bcf78
misc: improve CLI errors
2018-01-11 19:41:50 +03:30
Clark Du
fd42610862
fix: lint error in bin
2017-11-24 11:40:46 +03:30
Dmitri Efimenko
6022c5d561
Prevent double compile on nuxt.config.js update
2017-11-22 15:57:39 +03:00
Dmitriy
4451178c99
Improved nuxt dev restart on config change ( #2189 )
2017-11-22 01:03:37 +03:30
Pooya Parsa
38b71cbe04
fix(nuxt-dev): successful rebuild if nuxt.config.js has problems
2017-11-21 16:36:13 +03:30
Atinux
d93eb06ae9
lint: Lint files
2017-10-31 14:16:40 +01:00
Atinux
69fa6fc637
lint: Lint bin/nuxt
2017-10-30 15:48:19 +01:00
Eric McCormick
a5e16d2fe6
feat(bin): adds version flag
...
adds --version / -v support for the nuxt binary; will always output version and exit(0)
2017-10-13 12:02:09 +03:30
Pooya Parsa
a289a55a72
simplify modes
2017-08-19 17:52:53 +04:30
Pooya Parsa
d589bc5819
static ~> ssr-only
2017-08-18 17:16:03 +04:30
Pooya Parsa
5903319241
add -m flag
2017-08-18 15:24:35 +04:30
Pooya Parsa
85825d190c
fix: gracefully handle unhandled promises
...
This prevents nuxt process exiting in dev mode on unhandled promises
2017-07-09 17:07:54 +04:30
Marcello Gesmundo
f30a4f7169
Fix #1039
2017-07-06 15:02:48 +02:00
Sebastien Chopin
d3cacd0e58
Add back error handler on nuxt-dev
2017-07-03 13:53:37 +02:00
Sébastien Chopin
e4e9149b54
feat: Add dynamic component injection + example
2017-07-02 20:47:01 +02:00
Sebastien Chopin
ebc6da4c08
Add server-destroy
2017-06-20 15:07:38 +02:00
Pooya Parsa
daa50e4efb
refactor server into nuxt
2017-06-20 16:14:47 +04:30
Pooya Parsa
59d7e786aa
Fully decouple builder
...
runBuild flag removed
2017-06-18 20:17:21 +04:30
Sébastien Chopin
fb9b2b5e63
Lint
2017-06-18 13:36:03 +02:00
Pooya Parsa
829ffa634b
refactor structure
2017-06-16 17:12:45 +04:30
Pooya Parsa
5722a92c4c
many improvements
2017-06-16 02:49:53 +04:30
Pooya Parsa
42bf9bb41d
decouple builder from renderer + improvements
2017-06-14 20:43:43 +04:30
Sébastien Chopin
602adf0464
Refactor nuxt commands using minimist
2017-06-12 21:33:25 +04:30
Sebastien Chopin
2b80bc3e5c
No need to call build() on development
2017-06-02 17:59:20 +02:00
Pooya Parsa
c5ca8c64f1
refactor: nuxt constructor no longer returns a promise
...
by not returning a promise we can expose .render method
also the old way of using nuxt won't change by 1.x release
2017-05-31 18:51:16 +04:30
Pooya Parsa
975e468388
app rebuild await for nuxt initialization
2017-05-12 23:19:55 +04:30
Pooya Parsa
497d673727
Install all modules in sequence before nuxt init
...
For this functionality Nuxt constructor would return a Promise so all bin commands updated to resolve promise before using nuxt
2017-05-11 15:53:58 +04:30
Alex M
c177354633
Add support to --config-file to nuxt-dev
2017-04-19 17:01:26 -03:00
Sébastien Chopin
1cefff8194
Add watchers option and url after build
2017-03-25 15:16:07 +01:00
Sébastien Chopin
c5b8d16a2b
Add progress-bar when building
2017-02-08 14:09:59 +01:00
Sébastien Chopin
b8ec7329f7
Set color for debug module
2016-12-15 18:48:31 +01:00
Sébastien Chopin
0dd867cdec
Fix rebuild when nuxt.config.js changed
2016-12-14 15:30:55 +01:00
Sébastien Chopin
5b3dc23cd3
Avoid crashing server when config changed
2016-12-12 15:01:30 +01:00
Sébastien Chopin
4aa600e57a
Add Server class in nuxt
2016-12-09 20:09:12 +01:00