Commit Graph

79 Commits

Author SHA1 Message Date
Kevin Marrec
05a6efd1eb chore: rename setup hook to run:before (#6363) 2019-09-05 10:45:39 +02:00
Kevin Marrec
bdcf4c8304 refactor(cli): call setup hook in run command with more args (#6353) 2019-09-04 12:06:34 +02:00
Pooya Parsa
f0ab042bf4
chore(cli): accept hooks (#6274) 2019-08-24 18:45:08 +04:30
pooya parsa
de7ed24b36 feat(cli): export options (#6206)
Co-Authored-By: Kevin Marrec <kevin@marrec.io>

[release]
2019-08-09 18:40:19 +04:30
Kevin Marrec
81b5ce22ce feat: externalize typescript support (#5858) 2019-07-24 11:56:44 +04:30
pooya parsa
e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30
Xin Du (Clark)
e63923419a fix error when use alias for nuxt-edge (#6051) 2019-07-10 14:27:31 +04:30
Xin Du (Clark)
e6acdbc9bf fix(cli): prevent both nuxt & nuxt-edge being installed (#6020) 2019-07-04 17:28:07 +04:30
renovate[bot]
79877b4ec3 chore(deps): update dependency execa to v2 (#5984)
Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
2019-06-25 16:48:53 +01:00
Pooya Parsa
e4fd6fee7e
fix(cli): don't mutate options export (#5865) 2019-06-04 19:18:06 +04:30
Pooya Parsa
f39fe2279e
refactor: improve build indicator (#5832)
[release]
2019-05-30 14:33:57 +04:30
Alexander Lichter
d08ce2f628 refactor: small readability improvements (#5748) 2019-05-16 14:38:44 +04:30
Kevin Marrec
0c7e500699 fix: prevent ts-node to register twice (#5699) 2019-05-11 21:21:19 +04:30
Sébastien Chopin
03eb049677
fix(builder): watch store dir and serverMiddleware paths (#5681)
* fix(builder): Watch store dir to restart Nuxt app when options.store=false

* hotfix: Linting issues

* hotfix: Use path.resolve instead of path.join

* test: Update test for watcher

* hotfix: revert to path.join and fix tests

* hotfix: Fix coverage for hard to test condition

* hotfix: Fix test for Windows

* Update builder.js

* fix lint error

* fix: Cache serverMiddlewarePaths
2019-05-10 15:03:07 +02:00
pooya parsa
91c3642e64 fix: don't customize esm options
options like `{ cjs: { }  }` resets other defaults. this ensures consitency of usage

[release]
2019-04-21 22:20:32 +04:30
Pooya Parsa
c9a95429eb
fix(cli): watch and reload nuxt.config (#5574)
[release]
2019-04-21 15:39:26 +04:30
Pim
19fbbb6ef6 fix(cli): show memory usage after build for nuxt dev (#5514) 2019-04-12 21:49:46 +04:30
Pooya Parsa
d0afaa1daf
fix(cli): config cache invalidation + refactors (#5500) 2019-04-11 14:34:21 +04:30
Pooya Parsa
e88e998d70 fix(cli): throw error with proper code for failed imports (#5478) 2019-04-07 11:25:53 +01:00
Pooya Parsa
516aea3d7f
feat(cli): add internal _generate and _build options (#5434) 2019-04-01 20:18:24 +04:30
Pooya Parsa
832bd12091
refactor(typescript): use an object for _typescript (#5418) 2019-03-30 00:39:20 +04:30
Pooya Parsa
6ffc5c5792
feat(typescript): detect typescript based on tsconfig.json (#5412) 2019-03-29 23:49:30 +04:30
Franck Abgrall
91f4eb0468 feat(cli): add --quiet option to nuxt generate command (#5357) 2019-03-29 18:38:08 +04:30
Kevin Marrec
9a3fc8a44e refactor(ts): only generate tsconfig.json if missing (#5356) (#5367)
Co-authored-by: SAWADA Takayoshi <sawadasuiren@gmail.com>
2019-03-29 18:30:49 +04:30
pooya parsa
c46def75cf fix(cli): enable server for implicit SPA generate in nuxt build
revert it back with nuxt 3
2019-03-21 14:29:05 +03:30
Sébastien Chopin
ef41e205e6 feat: loading screen (#5251)
[release]
2019-03-20 12:47:53 +03:30
Pooya Parsa
d6b505aa50
test: fail tests in case of unhandled errors (#5255) 2019-03-16 16:12:35 +03:30
Kevin Marrec
920f444b6e refactor(ts): better DX for typescript support (#5079)
Breaking change : `build.useForkTsChecker` renamed to `build.typescript.typeCheck`
2019-03-14 13:37:47 +03:30
Jarek Lipski
c6565c97c6 feat(generate): return non-zero code or page error (fixes #4991) (#5195) 2019-03-11 23:25:54 +03:30
Pooya Parsa
13cb0f73d9 refactor: remove builder coupling from server (#5157) 2019-03-08 20:43:23 +00:00
Pim
4e51723efc feat(cli): lock project during build or generate (#4985) 2019-03-03 11:42:46 +03:30
renovate[bot]
0751faa9c8 chore(deps): update dependency wrap-ansi to v5 (#5145) 2019-03-03 10:57:19 +03:30
Alexander Lichter
69dfd848d7 refactor: some small stuff (#4979)
* refactor: flatten ifs

* refactor: unnecessary curly brackets

* refactor: unnecessary else

* refactor: promise.all instead of for-await

* refactor: apply changes suggested by @clarkdo

* chore: fix typo

* refactor: early return

* refactor: add removal TODOs

* refactor: more descriptive variable name

* refactor: prefer template string

* refactor: one-line

* refactor: early returns

* refactor: early return

* refactor: parallel promises

* refactor: early return and no else

* refactor: spread operator

* refactor: spread operator and early return

* fix: remove error and throw string instead

* fix: always return true

* refactor: clear multiline ternary

* refactor: err stack assignment

* refactor: early return and async/await

* refactor: one line

* refactor: early return

* refactor: early return

* refactor: promise.all

* refactor: args spread
2019-02-08 17:25:11 +01:00
Pim
3e9eee2549 fix: dont force exit when it was explicitly disabled (#4973)
* fix: remove slash from warning text

* fix: dont force-exit when explicitly disabled

chore: add tests for force-exit behaviour

* feat: default option value can be fn
2019-02-08 13:36:47 +03:30
Alexander Lichter
574a2eb293 fix: disable "analyze" for nuxt generate (#4975) 2019-02-07 18:30:41 +03:30
pooya parsa
b1a16c995e fix help message for force-exit 2019-02-06 23:12:04 +03:30
pooya parsa
a347ef9b94 fix: default for-exit to false to prevent dev exit 2019-02-06 23:10:43 +03:30
Pim
5094d9c75d feat: show warning on forced exit (#4958) 2019-02-06 22:53:42 +03:30
Ricardo Gobbo de Souza
4c7bd9c507 feat(cli): option to open the project in the browser (#4930) 2019-02-06 01:07:59 +03:30
Kevin Marrec
06a18ca09e fix(config): define once default nuxt config filename (#4814) 2019-01-22 23:22:43 +03:30
Alexander Lichter
40fbe5ba47 refactor: cleanups and code style improvements (#4788) 2019-01-18 00:48:29 +03:30
Pim
0c64410c6d chore: don't show stable version number when running from git/source (#4756) 2019-01-16 21:23:14 +03:30
Clark Du
746d4ffb0a test: cli list 2019-01-14 11:56:30 +00:00
Xin Du (Clark)
ef05e005a6 refactor: add module not found fatal message in cli/imports (#4741) 2019-01-12 23:51:43 +03:30
Kevin Marrec
dfaffc0183 feat(nuxt-ts): typescript support improvements (#4750) 2019-01-12 23:51:21 +03:30
Pooya Parsa
ee0096bf59
feat: nuxt-ts (#4658)
[release]
2019-01-04 23:00:28 +03:30
Pooya Parsa
bdb6791e40
feat(webpack,cli): standalone build mode (#4661)
* feat(webpack,cli): standalone build mode

* revert typo
2019-01-03 23:57:50 +03:30
Jonas Galvez
0145551c3a feat(cli): improvements and external commands (#4314) 2018-12-20 14:45:48 +03:30
Alexander Lichter
c60b1945e8 chore: cleanup (#4529) 2018-12-12 10:01:49 +03:30
Jonas Galvez
655f11cefd chore: update code to meet new curly-all rule (#4505)
[skip ci]
2018-12-10 01:30:48 +03:30