Commit Graph

124 Commits

Author SHA1 Message Date
Clark Du
b60c4fd432 refactor: add build.quiet config 2018-08-12 14:35:24 +01:00
Alexander Lichter
04e53b0f9f feat: add --quite mode for nuxt-build (#3700)
* feat: add quite mode for nuxt-build

* fix: typoe

* fix: better description

* revert: level change in options
2018-08-12 10:43:30 +01:00
Alexander Lichter
427e836688 lint: force dot-notation where applicable (#3677) 2018-08-10 08:19:19 +01:00
Clark Du
68dfc60078
fix: lint error in bin (#3668) 2018-08-09 22:35:55 +01:00
Alexander Lichter
52780d3257 feat: add NUXT_HOST and NUXT_PORT for host retrieval (#3651)
related: #3609
2018-08-08 20:18:06 +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
Sébastien Chopin
83700a58da fix: Use dist/nuxt-start to faster bootup 2018-08-08 18:23:53 +02:00
Jonas Galvez
3f1d634fb7 Consistent parens in arrow functions (#3630)
* Minor consistency enhancements

* Arrow parenthesis consistency

* Change linting rule

* Fix typo

* Update .eslintrc.js to only require parens for blocks

* Update style according to brace-only suggestion

* Remove --fix from lint

* Tweak no-loading time (failing test)

* Tweak no-loading time (failing test) (2)

* Tweak no-loading time (failing test) (3)

* Tweak no-loading time (failing test) (4)

* Tweak no-loading time (failing test) (5)
2018-08-06 02:12:44 +02: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
Akos Kovacs
2e6d503f76 fix(builder): nuxt build -a omits webpack-bundle-analyzer options declared in nuxt.config.js (#3390, #3391) 2018-06-06 17:00:22 +04:30
Pooya Parsa
412ffd4c06 feat: auto fallback to legacy build for node@6 support 2018-06-01 16:56:13 +04:30
Pooya Parsa
b7c6a87239 fix(bin): allow cjs __dirname in nuxt.config.js 2018-05-02 14:29:55 +04:30
Pooya Parsa
050e380203 fix(nuxt-dev): ensure cache is cleaned for nuxt.config.js 2018-04-22 12:01:45 +04:30
Pooya Parsa
63fe3fd803 feat: add --no-generate option
useful for SPA builds that don't need static dist/ to be generated
2018-04-15 11:11:31 +04:30
Sébastien Chopin
7d3afb0502 fix: nuxt-build generate dist/ when spa mode (remove --generate option) 2018-04-13 13:21:58 +02:00
Pooya Parsa
ba4aa6dc09 fix for #3197. 2018-04-05 20:04:36 +04:30
Pooya Parsa
e4ee624011 feat: improve esm handling
disables esm for nuxt modules
2018-04-05 13:08:54 +04:30
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
88c3cddf32 fix: handle fatal errors 2018-04-02 00:06:30 +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
948d56622e misc: improve onReady CLI experience (#3143) 2018-03-29 02:35:27 +04:30
Pooya Parsa
5ee9ed459b fix(nuxt-build): always wait for analyze plugin when enabled 2018-03-27 11:43:29 +04:30
Pooya Parsa
8ed2b60707 fix nuxt-build script 2018-03-27 11:40:50 +04:30
Pooya Parsa
b8d30d806a misc: improve --generate option
static version will be generated and auto open + json stats
2018-03-27 11:22:22 +04:30
Pooya Parsa
d9c2575652 feat(nuxt-build): add --generate option 2018-03-20 13:45:18 +03:30
Pooya Parsa
ed5bfacb4d eslint: fix import/order 2018-03-16 23:22:17 +03:30
Pooya Parsa
53e98a958c feat: rewrite core to esm 2018-03-16 19:42:06 +03:30
Pooya Parsa
76b5e0454a use webpack's built in minimizer 2018-03-13 15:28:40 +03:30
Pooya Parsa
16821361a0 pass cli tests 2018-03-12 03:07:38 +03:30
Pooya Parsa
a354d2fa55 hide debug lines by default 2018-03-12 02:44:46 +03:30
qm3ster
ad0649925d
Refactor cli
Extracted common logic
Improved style consistency
2018-02-07 02:44:29 +02:00
NicoPennec
ff8ffb9592 feat: check expectated node version 2018-01-30 02:57:24 +01: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
c3bcda873c fix(nuxt-build): wait for use exit when running with --analyze flag 2018-01-14 14:04:58 +03:30
Pooya Parsa
b3e9952976 fix: logError is not a function. fixes #2577. 2018-01-13 08:40:01 +03:30
Pooya Parsa
cc29b26cbe fix: exit with code (0) on successful nuxt-build. fixes #2569. 2018-01-13 00:51:49 +03:30
Pooya Parsa
3c4b57e1f7 minor fixes 2018-01-11 23:13:34 +03:30
Pooya Parsa
118d3fb8c2 imrpove nuxt-generate error report summary 2018-01-11 21:50:35 +03:30
Pooya Parsa
061059beb4 update generate cli & tests 2018-01-11 20:03:30 +03:30
Pooya Parsa
13166bcf78 misc: improve CLI errors 2018-01-11 19:41:50 +03:30
Pooya Parsa
771945c789 use pretty error handler 2018-01-11 17:41:49 +03:30
Ivan Santos
26ba9f43ea remove duplicated --spa flag on nuxt-generate help (#2467) 2017-12-28 08:54:12 +03:30
Clark Du
fd42610862 fix: lint error in bin 2017-11-24 11:40:46 +03:30
Pim
65f4a030f4 refactor generator + cli tests (#2205)
* Rename this.generateRoutes to this.staticRoutes

* Refactor generator to separate logic

* Move routeCreated hook to generateRoute

Add routeFailed hook for unhandled exceptions

Keep page errors separately until page hooks have been called

* Move debug and report statements to hooks

* pageErrors can be a const

Push pageErrors to errors

* fix done hook, errors are 2nd param

* Add generator hooks to nuxt-build for spa mode

* Added a cli integration test for bin/nuxt-(build|start|generate)

* Removed unnecessary waitFor

* Use pify instead util.promisify for v6 compatibility

* Fix windows build

You cant execute .js files directly on Windows/Appveyor so call node with nuxt-*.js file as argument

* Fix windows build (2)

Use correct folder separators in text search

* Fix possible timing quirck in children.path.test
2017-11-24 02:01:54 +03:30
Dmitri Efimenko
6022c5d561 Prevent double compile on nuxt.config.js update 2017-11-22 15:57:39 +03:00