Commit Graph

34 Commits

Author SHA1 Message Date
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
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
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
a289a55a72 simplify modes 2017-08-19 17:52:53 +04:30
Sebastien Chopin
7f12803086 disable minify for spa 2017-08-18 15:46:00 +02:00
Sebastien Chopin
1507061138 Distinct spa mode to use generate directly 2017-08-18 15:44:16 +02:00
Pooya Parsa
2c1473c233 disable minify on build generate 2017-08-18 17:36:46 +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
2576e8795e init() ~> ready() 2017-06-15 19:29:26 +04:30
Pooya Parsa
25d106e2ab runBuild option 2017-06-14 23:21:14 +04:30
Sébastien Chopin
602adf0464 Refactor nuxt commands using minimist 2017-06-12 21:33:25 +04:30
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
Pierre RAMBAUD
fbd1c609fd Add missing comments 2017-03-15 15:14:16 +01:00
Pierre RAMBAUD
c3bcd05295 Add config file option
- Add optional --config-file and -c argv parameters
- Display log message if file isn't found

Issue: #391
2017-03-15 15:01:44 +01:00
Sébastien Chopin
f40dfbaeee Use default is option un given 2017-01-24 20:25:56 +01:00
Sébastien Chopin
7552da1453 Add analyse option 2017-01-23 17:56:05 +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
648033f077 update build 2016-12-07 19:01:46 +01:00
Sébastien Chopin
2cc88acbe9 Add DEBUG flag when using the bin 2016-11-10 15:24:22 +01:00
Sébastien Chopin
d88948bdea map static to /
v0.3.0
2016-11-10 02:19:47 +01:00
Sébastien Chopin
18a2b57655 Add nuxt-build and nuxt-start, build:false and dev option 2016-11-09 23:59:41 +01:00