Commit Graph

46 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
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
Xin Du (Clark) d149e9fb64
chore: upgrade boxen to v4 (#5830) 2019-05-30 10:25:36 +01:00
Kevin Marrec 0c7e500699 fix: prevent `ts-node` to register twice (#5699) 2019-05-11 21:21:19 +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 6ffc5c5792
feat(typescript): detect typescript based on `tsconfig.json` (#5412) 2019-03-29 23:49:30 +04: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
Xin Du (Clark) cc573a4925
test: unit tests for server module (#5154) 2019-03-04 20:12:33 +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
Clark Du 3dd1a28533 test: update cli snapshot 2019-02-19 17:30:46 +00:00
Pim 4b82aa9d84 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-19 17:12:24 +00:00
Pim 3d2deacd3a feat: show warning on forced exit (#4958) 2019-02-19 16:40:34 +00:00
Xin Du (Clark) a616c09b22 feat(test): unit tests for core/config module (#4760)
* feat(test): enable tests in packages

* fix: wait error hook

* test: entry and hookable in core

* fix(test): options snapshot in windows

* refactor(test): simpilify jest.fn

* test: module in core

* test: complete module test

* test: add test for resolver in core

* test: update config snapshot

* test: nuxt in core module
2019-01-19 13:00:51 +01:00
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
Jonas Galvez 0145551c3a feat(cli): improvements and external commands (#4314) 2018-12-20 14:45:48 +03:30
Pooya Parsa fe0516978a
fix: improvements for build and dev stability (#4470) 2018-12-09 14:12:22 +03:30
Pooya Parsa 0f104aa588
feat: improve SSR bundle (#4439)
- Better insights and inspection for server bundle
- Remove all vue related dependencies from vue-renderer package as much as possible to reduce install size of nuxt-start
- Support for single file distributions (serverless)
- Remove server-bundle.json and use the standard .js files for dist/server
- Mitigate CALL_AND_RETRY_LAST Allocation failed errors. Most of the cases happen on JSON.parse() the part when loading bundle. (#4225, #3465, #1728, #1601, #1481)
- Reduce server dist size by removing escape characters caused by JSON serialize
- Faster dev reloads and production start by removing extra JSON.serialize/JSON.parse time
- Less memory usage
- General performance improvements and refactors
2018-12-01 13:43:28 +03:30
Clark Du 4c2708849f
fix: modern=true or false not work as expected (#4378) 2018-11-22 15:48:26 +00:00
Yuki Takemoto e6f73b596a feat(cli): add `--devtools` option for build and generate (#4357) 2018-11-17 23:05:51 +00:00
Clark Du 18e613106b Revert "fix: make generate default value be false in build command" 2018-11-09 17:14:26 +00:00
Clark Du 81c77bd111 test: fix build.test 2018-11-09 16:48:28 +00:00
Pooya Parsa 7c4e77ffb9
feat: dx improvements (#4259) 2018-11-08 12:45:56 +03:30
Clark Du 2a36dbad22
feat: client mode modern and support dev/generate (#4264) 2018-11-07 23:37:06 +00:00
Jonas Galvez 19287cce96 feat(cli): add help command (#4248)
* add commands/help

* simply cmds in run()

* refinement

* simply cmds in run() (2)

* simply cmds in run() (3)

* lint

* cmd.showHelp()

* check for cmd / uknown cmd

* final fix

* fixes

* remove Set

* Add NuxtCommand.load()

* updated tests

* lint
2018-11-02 05:35:32 +01:00
Jonas Galvez 6dadadfa25 feat(cli): list commands (#4245)
* add listCommands to cli/run

* add listCommands to cli/run (2)

* lint

* lint

* lint

* fix

* fixes

* fix

* lint

* maxCharsPerLine = process.stdout.columns * 80 / 100

* fix test

* fix imports

* refactor foldLines()

* default process.stdout.columns to 80

* default to 80

* fix

* fix test

* lint

* fix test

* add help flags to main usage

* fix

* fix

* fix
2018-11-01 04:53:06 +01:00
Pooya Parsa 1dd32d0d21 feat: update to consola 2 (#4247)
* add ~> addReporter

* remove badge

* withScope ~> withTag

* update to consola 2

* update build tests
2018-11-01 04:50:07 +01:00
Pooya Parsa 39b558f59c
refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30
Jonas Galvez 4503d42d54 refactor(cli): cleanups and improvements (#4222) 2018-10-30 01:46:16 +03:30
Jonas Galvez 007ca05174 refactor: move config files to @nuxt/config (#4212) 2018-10-27 23:57:16 +03:30
Jonas Galvez ec7794c5cd refactor(common): nuxt.config.js and dynamic server options to use latest process.env (#4208) 2018-10-27 20:18:23 +03:30
Pim 4b7afcc218 feat(cli): add imports mock and cleanup (#4195) 2018-10-25 19:10:55 +03:30
Pooya Parsa 46103e72ea
chore: packaging and development improvements (#4193) 2018-10-25 14:52:31 +03:30
Pim 0669b68c91 refactor(cli): better consistency and easier unit testing (#4160) 2018-10-25 11:13:42 +03:30