Commit Graph

34 Commits

Author SHA1 Message Date
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
59ff0df052 feat: use consola for logging 2018-03-31 20:52:14 +04: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
cc29b26cbe fix: exit with code (0) on successful nuxt-build. fixes #2569. 2018-01-13 00:51:49 +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
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
Atinux
d93eb06ae9 lint: Lint files 2017-10-31 14:16:40 +01:00
Pooya Parsa
f2663033fc feat(nuxt-generate): --no-build flag
Much faster generates for when just dynamic routes changed
2017-10-27 18:45:34 +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
Marcello Gesmundo
f30a4f7169 Fix #1039 2017-07-06 15:02:48 +02:00
Pooya Parsa
59d7e786aa Fully decouple builder
runBuild flag removed
2017-06-18 20:17:21 +04:30
Pooya Parsa
829ffa634b refactor structure 2017-06-16 17:12:45 +04:30
Pooya Parsa
25d106e2ab runBuild option 2017-06-14 23:21:14 +04:30
Sebastien Chopin
9e433764d7 Merge branch 'dev' of github.com:nuxt/nuxt.js into dev 2017-06-12 19:37:28 +02:00
Sebastien Chopin
7760e9a49b generate: exit when done and send back duration & errors 2017-06-12 19:36:47 +02:00
Sébastien Chopin
c9313572bd Refactor nuxt commands using minimist 2017-06-11 15:48: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
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
Sébastien Chopin
17650c25e0 Middleware feature 🔥 2017-02-03 15:09:38 +01:00
Sébastien Chopin
e016b5d184 Exit with code 1 on build error 2017-01-20 18:55:30 +01:00
Sébastien Chopin
7cbc06144d compat with node 4 2016-12-09 19:40:59 +01:00
cj
c4823f27a8 added no-console to eslint 2016-12-08 09:41:20 -06:00
Sébastien Chopin
bbf6ea2953 Update commands 2016-12-07 18:47:47 +01:00
Sébastien Chopin
cb7406cba6 router.base is now working as expected 2016-11-10 19:34:59 +01:00
Sébastien Chopin
2cc88acbe9 Add DEBUG flag when using the bin 2016-11-10 15:24:22 +01:00
Alexandre Chopin
e0641e1e51 generator 2016-11-10 12:33:52 +01:00