Commit Graph

231 Commits

Author SHA1 Message Date
Tatsuyuki Ishi
716c04f4e9 Isolate client and server artifacts (#3758) 2018-08-20 18:04:55 +02:00
Clark Du
b920f22483
refactor: add hooks (#3772) 2018-08-20 15:20:45 +01:00
Jonas Galvez
97910de3ec Improve hooks in nuxt.config.js (#3766)
* Improve hooks in nuxt.config.js

* No mult-line for
2018-08-20 14:19:09 +02:00
Clark Du
e9bb9e7236 fix: avoid duplicate listening message 2018-08-16 10:36:54 +01:00
Clark Du
1492a13162 refactor: nuxt dev watcher (#3732) 2018-08-15 13:48:34 +02:00
Clark Du
85a8af570d refactor: use resloveAlias for watch 2018-08-13 22:25:03 +01:00
Jonas Galvez
8d21b60a24 Render dist options (#3671)
Picking up on [yet another abandoned PR](https://github.com/nuxt/nuxt.js/pull/2933/files). Made all changes suggested by @clarkdo and wrote a test.
2018-08-10 10:34:55 +01:00
Alexander Lichter
b4d81dc584 lint: require await in async function (#3676)
* lint: require await in async function

* lint: replace "error" with 2 in config
2018-08-10 08:41:23 +01:00
Alexander Lichter
52d9629bac eslint: Prefer const over let (#3650) 2018-08-08 12:54:05 +02:00
Sébastien Chopin
a3926d5266 core: Show ip address if hostname is 0.0.0.0 2018-08-08 12:45:49 +02:00
Clark Du
3b5a4709e8
feat: support global command-line build and start (#3647)
With this pr, user can install nuxt globally, then start or build simple repos without npm /yarn install:


```bash
npm i nuxt-edge -g
nuxt dev/build/start
```
2018-08-07 19:50:04 +01:00
Clark Du
fe6c524be1
refactor: add deprecation log for addVendor 2018-08-07 10:24:01 +01: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
dbba872be2
misc: remove useless codes 2018-08-03 16:06:18 +01:00
Clark Du
31d25df332 refactor: load all modules with esm (#3556) 2018-07-30 18:05:42 +02:00
Alexander Lichter
8c85f2299e feat(csp): add reportOnly option (#3559) 2018-07-30 18:04:02 +02:00
Clark Du
5bdd0dd8a5
fix: undefined host in listening on message (#3595)
Fix error in #3529
2018-07-26 17:38:15 +01:00
Blake Kostner
ee95461cb1 resolve server listen details with server.address() (#3529)
* resolve server listen details with server.address()

* remove empty whitespace

* overwrite host and port in server listen method

* no let
2018-07-26 15:52:00 +02:00
Alexander Lichter
a37772f0f8 fix(csp): remove duplicate sha-256 hashes (#3574) 2018-07-26 15:48:28 +02:00
Alexander Lichter
65d318d475 refactor: remove unused variables (#3576) 2018-07-25 09:00:21 +01:00
Clark Du
dfef5252de
Merge remote-tracking branch 'origin/master' into dev 2018-07-19 12:26:52 +01:00
Clark Du
e2296061b0
misc: fix typos 2018-07-18 15:39:48 +01:00
Blake Kostner
842cc19431 fix(nuxt): try to resolve node_modules before alias logic (#3505)
Fixes issues with @<organization>/<package> for plugins and more.
2018-07-06 18:57:21 +04:30
Clark Du
d98c98360a refactor: smiplify csp 2018-07-01 23:43:30 +04:30
Clark Du
1958ba8953
chore: remove to-do which has been done 2018-06-13 09:41:18 +01:00
zyxd
3b2ed038da fix: wait for core to be ready before listen (#3407) 2018-06-06 21:22:08 +04:30
Pooya Parsa
1f0053c160 fix(renderer): fix problem with HTMLPlugin's minify option (#3392) 2018-06-01 15:53:57 +04:30
Michael
66030467d1 fix: add title before other meta for better SEO (#3362) 2018-05-23 11:17:47 +04:30
Clark Du
7514db73b2
feat: add hook for getting data before sending to client 2018-05-03 20:47:55 +01:00
Clark Du
a02c445cdf
Merge pull request #3212 from btkostner/patch-1
export server resourceMap
2018-04-30 08:39:39 +01:00
Sébastien Chopin
a02935c15f fix: Fix CSP in development mode, add unsafe-eval 2018-04-13 12:37:32 +02:00
Pooya Parsa
05efd73136 fix(module): correct errors when template is Object 2018-04-12 23:46:08 +04:30
Blake Kostner
45f3c60bd9
export server resourceMap 2018-04-10 11:16:47 -06:00
Pooya Parsa
e4ee624011 feat: improve esm handling
disables esm for nuxt modules
2018-04-05 13:08:54 +04:30
Pooya Parsa
1484928237 chore: add http:// to ready message 2018-04-02 15:42:29 +04:30
Pooya Parsa
0ca99426c9 chore: remove unnecessary scopes 2018-04-02 00:50:46 +04:30
Pooya Parsa
9f8aea5a4c fix: fatal error on nuxt ready 2018-04-02 00:07:57 +04:30
Pooya Parsa
89d5f3753e perf: prevent duplicate showReady 2018-04-01 00:50:14 +04:30
Pooya Parsa
46c7fd2767 fix: default ready message 2018-03-31 21:39:06 +04:30
Pooya Parsa
25741f5a1f refactor: use consola for all console stuff 2018-03-31 21:21:55 +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
Clark Du
ef7a42649d misc: improve coverage and packaging (#3121)
nuxt-start and nuxt/legacy are also coming!
2018-03-28 02:58:17 +04:30
Clark Du
47281c2761
comment: renderStyle todo for suppporting mini-css-extract 2018-03-27 10:31:51 +08:00
Pooya Parsa
a56c208f9b feat: new default loading indicators 2018-03-25 23:05:13 +04:30
Pooya Parsa
4b26c68c3b perf: chunk splitting improvements 2018-03-21 13:33:57 +03:30
Pooya Parsa
6a68e381b6 perf(spa): inline runtime chunk 2018-03-20 13:39:47 +03:30
Pooya Parsa
160e1d35e4 feat(spa): support shouldPrefetch and shouldPreload 2018-03-20 12:04:39 +03:30
Pooya Parsa
85d6c5758a open ~> ready
be more precicse about which ip address is nuxt listening by.
2018-03-19 21:45:20 +03:30
Pooya Parsa
0f180ad39f remove extra import 2018-03-19 20:00:03 +03:30