Commit Graph

2044 Commits

Author SHA1 Message Date
Clark Du
30714c989a refactor: change settimeout to waitFor (#2220) 2017-11-24 11:39:45 +03:30
Pim
65f4a030f4 refactor generator + cli tests (#2205)
* Rename this.generateRoutes to this.staticRoutes

* Refactor generator to separate logic

* Move routeCreated hook to generateRoute

Add routeFailed hook for unhandled exceptions

Keep page errors separately until page hooks have been called

* Move debug and report statements to hooks

* pageErrors can be a const

Push pageErrors to errors

* fix done hook, errors are 2nd param

* Add generator hooks to nuxt-build for spa mode

* Added a cli integration test for bin/nuxt-(build|start|generate)

* Removed unnecessary waitFor

* Use pify instead util.promisify for v6 compatibility

* Fix windows build

You cant execute .js files directly on Windows/Appveyor so call node with nuxt-*.js file as argument

* Fix windows build (2)

Use correct folder separators in text search

* Fix possible timing quirck in children.path.test
2017-11-24 02:01:54 +03:30
Sébastien Chopin
3764dc73c3
Merge pull request #2199 from 0pt1m1z3r/nuxt-dev-fix-double-compile
Prevent double compile on nuxt.config.js update
2017-11-23 13:36:56 +01:00
Sébastien Chopin
b6ad81475c
Merge branch 'dev' into nuxt-dev-fix-double-compile 2017-11-23 12:50:55 +01:00
Sébastien Chopin
959cbb613a
Merge branch 'dev' into nuxt-dev-fix-double-compile 2017-11-23 12:50:28 +01:00
Sébastien Chopin
db5eceec4f
Merge pull request #2207 from pimlie/dev
Fix eslint issue in builder.js
2017-11-23 12:25:22 +01:00
pimlie
6d8c96bc82 Fix eslint issue in builder.js 2017-11-23 12:01:38 +01:00
Dmitri Efimenko
6022c5d561 Prevent double compile on nuxt.config.js update 2017-11-22 15:57:39 +03:00
Dmitri Efimenko
1788de42fb Merge remote-tracking branch 'nuxt/dev' into dev 2017-11-22 12:53:35 +03:00
Dmitriy
4c808c90ab fix memory leak on restart nuxt-dev (#2190) 2017-11-22 13:21:07 +03:30
Pooya Parsa
8550bcd684
wChunk windows fix 2017-11-22 01:04:34 +03:30
Dmitriy
4451178c99 Improved nuxt dev restart on config change (#2189) 2017-11-22 01:03:37 +03:30
Dmitri Efimenko
e5941ca457 Merge remote-tracking branch 'nuxt/dev' into dev 2017-11-21 22:06:44 +03:00
Pooya Parsa
c377a78e7d
fix(builder): webpack chunk names for windows 2017-11-21 16:53:40 +03:30
Dmitri Efimenko
f8f4e785eb Merge remote-tracking branch 'nuxt/dev' into dev 2017-11-21 16:12:18 +03:00
Pooya Parsa
38b71cbe04
fix(nuxt-dev): successful rebuild if nuxt.config.js has problems 2017-11-21 16:36:13 +03:30
Sébastien Chopin
8cf56284ac
Merge pull request #2181 from danielpost/dev
Update no-ssr to v0.2.1
2017-11-21 13:38:25 +01:00
Daniel Post
aab684f8a8
Fix coding style 2017-11-21 12:15:11 +00:00
Daniel Post
dac47d43bf
Update no-ssr to v0.2.1 2017-11-21 12:13:35 +00:00
Clark Du
9bf73b0b5a test: inline postcss config 2017-11-21 13:57:47 +03:30
Clark Du
162b56ee4e test: custom postcss config 2017-11-21 13:57:47 +03:30
Sébastien Chopin
17caac59e2
Merge pull request #2172 from 0pt1m1z3r/style-resources-loader
Style resources loader
2017-11-21 10:18:40 +01:00
Dmitri Efimenko
e56adee998 Fix style-resources package.json 2017-11-21 03:14:06 +03:00
Dmitri Efimenko
f71abff6c6 Fix style-resources example 2017-11-21 03:02:21 +03:00
Dmitri Efimenko
9fb2fdf4f5 build.styleResourcesLoader
https://github.com/yenshih/style-resources-loader
2017-11-21 02:56:14 +03:00
Dmitri Efimenko
a315b71ea8 Merge remote-tracking branch 'nuxt/dev' into dev 2017-11-20 23:48:38 +03:00
Sébastien Chopin
785948ea80
Merge pull request #2164 from clarkdo/dev
test: create a separate test for deprecated apis
2017-11-20 08:53:17 +01:00
Clark Du
1c446b9e1b
test: create a separate test for deprecated apis 2017-11-20 15:13:53 +08:00
Sébastien Chopin
a9dcdca0f2
Merge pull request #2158 from clarkdo/dev
test: coverage for webpack config files
2017-11-20 06:58:47 +01:00
Clark Du
adc6884ed1
test: externals and deprecated dev in build.extend 2017-11-20 12:22:30 +08:00
Clark Du
0fd9774d11
test: build with DllReferencePlugin 2017-11-20 10:54:37 +08:00
yasark
de8e961498 Security update postcss-url #2074 2017-11-19 21:44:13 +03:30
Clark Du
750db84267 test: coverage for hooks exception 2017-11-19 18:38:51 +03:30
Clark Du
f0ea07ea4b test: coverage for hooks 2017-11-19 18:38:51 +03:30
Clark Du
377416a7ef refactor: eslint adjustments 2017-11-19 17:18:02 +03:30
Clark Du
73509c29ba refactor: remove alreadyRequired which is always true 2017-11-19 17:18:02 +03:30
Sébastien Chopin
b34abc7efe
Merge pull request #2152 from dojineko/update-vue
Update Vue.js
2017-11-19 08:46:51 +01:00
dojineko
4645d096f9 Update Vue.js 2017-11-19 12:19:47 +09:00
dojineko
7d28d8608d Update yarn.lock for #2148 2017-11-19 11:59:46 +09:00
Sébastien Chopin
8b362b64dc
Merge pull request #2148 from yashha/fix-update-puppeteer-and-rollup
Updated puppeteer and rollup
2017-11-19 00:15:47 +01:00
yasark
9f1fcf3265 Updated puppeteer and rollup 2017-11-18 23:31:18 +01:00
Clark Du
7f8671f1de test: call created and mounted only once with spa and custom layout 2017-11-17 13:17:06 +03:30
Sébastien Chopin
68680ee65a
Merge pull request #2132 from Gomah/dev
tests: make sure the files generated with the subFolders option exist
2017-11-17 02:27:38 +01:00
Gomah
5c69e0e288 tests: make sure the files generated with the subFolders option exist 2017-11-17 11:27:30 +11:00
Thomas Marrec
682169625f
Merge pull request #1 from nuxt/dev
Merge upstream nuxt/nuxt.js:dev
2017-11-17 10:54:15 +11:00
Sébastien Chopin
2c2ee63dd1
Merge pull request #2032 from Gomah/dev
feat: add subFolders option for generate
2017-11-16 16:16:22 +01:00
Gomah
673630eb58 Add tests for nuxt:generate without subfolders 2017-11-17 00:33:19 +11:00
Atinux
f4577e566c fix: Handle head as a function in nuxt.config.js 2017-11-16 13:32:11 +01:00
Atinux
4b79c38f41 fix: Fix Cannot read property 'components' of undefined 2017-11-16 13:23:05 +01:00
Sébastien Chopin
ece3fe84dc
Merge pull request #2126 from dsandor/dev
Add hook call after route generated.
2017-11-16 12:28:24 +01:00