Commit Graph

29 Commits

Author SHA1 Message Date
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
Alexander Lichter
e26f23b74a feat: respect beforeEnter for route if set (#3760)
* feat: respect beforeEnter for route if set

* test: add redirecting beforeEnter function and test
2018-08-18 18:15:37 +02: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
Clark Du
dbbcac1f4f fix: add cssnano in ssr test 2018-08-06 18:42:23 +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
241a071a3e test: add postcss custom feature test case 2018-07-25 17:58:24 +01:00
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
a8cbbf03ce always enable resourceHints 2018-05-02 14:29:55 +04:30
Pooya Parsa
e8079fc740 test: force enable resourceHints for basic fixture 2018-05-02 14:29:55 +04:30
Pooya Parsa
c4068c3a70 working tests 2018-03-19 03:11:14 +03:30
Pooya Parsa
ed22e78a75 basic migration to jest 2018-03-18 23:01:32 +03:30
Pooya Parsa
53e98a958c feat: rewrite core to esm 2018-03-16 19:42:06 +03:30
Pooya Parsa
10d1b5974c style: format with prettier 2018-01-13 08:52:11 +03:30
Pooya Parsa
edfc42086f coverage 2017-12-12 13:55:41 +03:30
Pooya Parsa
9b8cbed512 perf: remove rollup build
Using native node 8.x for less transpilations
2017-12-12 13:12:29 +03:30
Pooya Parsa
423cee1f3d test: move scopeHoisting tests into basic fixture 2017-12-08 13:40:57 +03:30
Clark Du
f27ddea7d5 feat: modulesDir supports array form 2017-11-24 17:19:50 +08:00
Clark Du
9bf73b0b5a test: inline postcss config 2017-11-21 13:57:47 +03:30
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
Clark Du
2228bf4209
refactor: fix [TypeError: Cannot read property split of undefined] in tests 2017-11-16 18:56:41 +08:00
Atinux
7137f848a2 hooks: Handle hooks as object 2017-10-31 12:33:15 +01:00
Sebastien Chopin
4f1e82e959 fix: payload is not fully working on nuxt generate 2017-05-30 12:00:31 +02:00
Sebastien Chopin
10d18bc454 Add generate.interval 2017-04-25 15:00:42 +02:00
johan.roxendal@gu.se
afa2e6b05c Implemented wait in generate function so generation of dynamic routes with ajax calls are not all sceduled simultaneously, possibly flooding the data backend with queries.
Use generate.wait (ms) to stagger route generate calls over time.

Fixes #590.
2017-04-25 14:04:49 +02:00
Sébastien Chopin
3fcfe4e026 Fix tests 2017-03-17 18:52:46 +01:00
Sébastien Chopin
6e2fb4642e Fix tests 2017-02-22 18:20:17 +00:00
Sébastien Chopin
c559740b2f test 100% 2016-12-21 20:51:43 +01:00