Commit Graph

4588 Commits

Author SHA1 Message Date
GU Yiling
b5f6ed1332 fix: inject scrollBehavior in a more tolerant way (#3560)
Currently we cannot define `scrollBehavior` like:

```js
scrollBehavior () { // ← we can have space before the parenthesis
  // ...
}
```

Fixed this by using a `RegExp` to be more tolerant.
2018-07-20 16:26:03 +01:00
Dmitry Molotkov
b0d2f674c8 exit code 1 in case of failed builds (#3535)
Fixes https://github.com/nuxt/nuxt.js/issues/3534
2018-07-20 16:12:29 +01:00
Clark Du
dfef5252de
Merge remote-tracking branch 'origin/master' into dev 2018-07-19 12:26:52 +01:00
Clark Du
faa069df49
example: update custom-build 2018-07-18 17:16:01 +01:00
Clark Du
2c92fddbdc refactor: support esm in internal module (#3551) 2018-07-18 17:14:08 +02:00
Clark Du
e2296061b0
misc: fix typos 2018-07-18 15:39:48 +01:00
Jon Ege Ronnenberg
c3e51a05af Updated Webworker example to work with nuxt.js 2.0 (#3531)
In response to @husayt's [comment](https://github.com/nuxt/nuxt.js/pull/3480#issuecomment-404150387).

HMR now works.
2018-07-18 12:15:37 +01:00
HG
cfe1865905
Merge pull request #3545 from clarkdo/obselete_aggre_chunk
refactor: obselete AggressiveSplittingPlugin
2018-07-18 12:09:01 +01:00
Clark Du
0bdfcd7f99
misc: use unified avatar url for partner 2018-07-17 12:26:20 +01:00
Clark Du
46122f0383
misc: update new partner 2018-07-17 12:21:20 +01:00
Clark Du
9afd6a55dd
refactor: obselete AggressiveSplittingPlugin 2018-07-17 12:13:06 +01:00
Clark Du
22a53464a7
fix: allow quotes in messages (#3525) 2018-07-12 21:45:14 +01:00
HG
7c852029aa
Merge pull request #3461 from ktsn/fix-scroll-behavior
fix: ensure emit triggerScroll event after scrollBehavior is called
2018-07-12 14:24:13 +01:00
Clark Du
2b5c367efa refactor: use eslint-plugin-vue instead of eslint-plugin-html (#3517) 2018-07-12 14:03:50 +02: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
Sébastien Chopin
d31aeaad6c pkg: Upgrade vue-meta to 1.5.2 2018-07-05 18:17:03 +02:00
Clark Du
1dc8b067ab
chore: update dependencies (#3495) 2018-07-04 11:23:02 +01:00
Clark Du
a554a97232
misc: remove nonexistent config in config test 2018-07-04 09:31:02 +01:00
Clark Du
d98c98360a refactor: smiplify csp 2018-07-01 23:43:30 +04:30
Clark Du
749da85b90 misc: remove unused cache config (#3490) 2018-07-01 23:40:44 +04:30
FishPlusOrange
d9d2d9e8de Update CONTRIBUTING.md (#3487) 2018-06-30 19:57:49 +01:00
Vyacheslav Bikbaev
159021eabe i18n example fix (#3482)
Today I was implementing an i18n according to this example in one of my projects. Unfortunately, current example fails if (for example) our `defaultLocale` is `en` and our url is `example.com/en/` or `example.com/en/news`: middleware redirects into `example.com//` and `example.con//news` respectively.

I've fixed the example (not sure if it is the most elegant way to do it though), so it replaces `/en/` with `/`.
2018-06-27 08:14:04 +02:00
Jon Ege Ronnenberg
1b46a95b06 Webworker (#3480)
* added missing eslint-loader that prevented the example to run and changed freeWorker to terminate a worker and create a new since we can not really free a worker

* proper remove long running worker from longRunningWorkers array when done

* polish web-worker example

set nuxt to 'latest' version

this will change

this will also change
2018-06-26 12:33:51 +02:00
Tatsuyuki Ishi
e993616c07 chore(tests): set node to current for .babelrc (#3466)
This skips quite many transforms, potentially speeding up the tests.
2018-06-22 15:15:53 +04:30
ktsn
bf6416ae62 fix: ensure emit triggerScroll event after scrollBehavior is called 2018-06-21 15:22:52 +09:00
Clark Du
feabdcafaa
chore: add detectOpenHandles for tracking down more jest exist details 2018-06-13 10:54:32 +01:00
Clark Du
1958ba8953
chore: remove to-do which has been done 2018-06-13 09:41:18 +01:00
Keegan Leitz
ba5c9798e3 fix: small typo in README.md, application => applications (#3426) 2018-06-09 17:03:44 +01:00
zyxd
3b2ed038da fix: wait for core to be ready before listen (#3407) 2018-06-06 21:22:08 +04:30
Clark Du
3c54d26c76 test: refactor cli tests (#3357)
* refactor: add untility for waiting until condition completed

* test: cli

* test: separate config of generate and build in cli test

* test: increase timeout of cli test slightly

* refactor: move waitUntil to test utils

* fix: use waitUntil in test utils
2018-06-06 17:01:43 +04:30
Akos Kovacs
2e6d503f76 fix(builder): nuxt build -a omits webpack-bundle-analyzer options declared in nuxt.config.js (#3390, #3391) 2018-06-06 17:00:22 +04:30
Nico Prat
9097ddefda chore: git ignore yarn-error.log (#3413) 2018-06-06 16:56:30 +04:30
Sébastien Chopin
6578bd7011
Update CMTY url 2018-06-04 18:27:51 +02:00
Igor
937ce612c7 feat(csr): support custom Vue.config.errorHandler (#3337) 2018-06-02 19:16:57 +04:30
Tatsuyuki Ishi
0db21b1f54 fix: require babel-preset-vue-app directly (#3406) 2018-06-02 18:50:18 +04:30
Pooya Parsa
8acef8d01e feat: use postcss-preset-env instead of postcss-cssnext (#3291)
https://moox.io/blog/deprecating-cssnext
2018-06-02 01:41:55 +04:30
Pooya Parsa
412ffd4c06 feat: auto fallback to legacy build for node@6 support 2018-06-01 16:56:13 +04:30
Pooya Parsa
35ee689473 target SSR bundle to current node version for legacy build support 2018-06-01 16:55:02 +04:30
Pooya Parsa
3d2a7b29d1 use pify instead of utils.promisify for legacy build support 2018-06-01 16:54:37 +04:30
Pooya Parsa
727ef16920 fix(rollup): fix build warnings 2018-06-01 16:30:17 +04:30
Pooya Parsa
445fce1312 chore(ci): temporary disable appveyor tests for node 10.x due to yarn problems
https://ci.appveyor.com/project/nuxt/nuxt-js/build/job/28j5hetw69q2x893
2018-06-01 16:17:12 +04:30
Tatsuyuki Ishi
c954ad4763 feat(packaging): rollup build improvements (#3402)
* Add missing devDependencies

This avoids relying on transitively installed dependencies.

* rollup: avoid bundling any NPM module

This is a hack relying on how rollup-plugin-node-resolve filters the path, but it works as intended.
2018-06-01 15:59:10 +04:30
Pooya Parsa
1f0053c160 fix(renderer): fix problem with HTMLPlugin's minify option (#3392) 2018-06-01 15:53:57 +04:30
Pooya Parsa
7540213996 chore: upgrade dependencies and yarn.lock 2018-06-01 15:21:25 +04:30
Sébastien Chopin
8e3cb3448a
Merge pull request #3392 from yoyo837/minify-html
[edge] minify: true => fix gap between inline-block labels
2018-05-31 10:20:09 +02:00
yoyo837
b4d74b417c minify: true => fix gap between inline-block labels 2018-05-30 10:57:03 +08:00
Reza Haidari .A
0d0d83cbc9 fix(package): upgrade vue-loader (#3388) 2018-05-29 12:54:51 +04:30
Clark Du
7f9d16cbdd
Merge pull request #3369 from yoyo837/dev
chore: update dependencies
2018-05-24 09:56:59 +01:00
yoyo837
8c2a69f9a9 chore: update dependencies 2018-05-24 09:07:36 +08:00
Michael
66030467d1 fix: add title before other meta for better SEO (#3362) 2018-05-23 11:17:47 +04:30