Commit Graph

2836 Commits

Author SHA1 Message Date
Clark Du
139ff62773 misc: increase timeout for fixture building 2018-07-24 17:30:31 +01:00
Dmitry Molotkov
5280e86dfc generate source map for uglify if devtool === #source-map (#3451)
* generate source map for uglify if devtool === #source-map

* support different variants of source-map option

* change source map to be likes in official webpack repo
https://github.com/webpack/webpack/blob/master/lib/WebpackOptionsDefaulter.js#L294

* small code cleanup
2018-07-24 13:01:51 +02:00
Clark Du
cff76965f6 refactor: worker-pool uses default count and not collect coverage in appveyor 2018-07-24 11:44:08 +01:00
Clark Du
daf1c28dbf test: disable http2.push in appveyor 2018-07-24 11:44:08 +01:00
Clark Du
364be8dc68 refactor: extract common jest config 2018-07-24 11:44:08 +01:00
Alexander Lichter
e814b34508 feat: enable silent config when not in debug mode (#3564) 2018-07-23 08:59:41 +01:00
Dmitry Molotkov
87f1f312be ignore *.spec.* test files (#3528)
Add ignore for *.spec.* files in addition to *.test.*

PS the error that can happen when try to run dev without ignore and with spec js is totally  confusing and gives zero lead on what happens.
https://gist.github.com/aldarund/8542b2e477956827d9195d0f6d173a3b
Only during build there was a error printed with a proper stacktrace that was lead to my test file
2018-07-21 17:33:41 +01:00
Clark Du
8c85edd08b
test: ignore multiple processes test cases in appveyor 2018-07-20 17:25:11 +01:00
Alexander Lichter
095404a251 refactor: change function calls when arity is one (#3563) 2018-07-20 16:42:31 +01:00
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