Commit Graph

48 Commits

Author SHA1 Message Date
Xin Du (Clark) 9860eb6a7c
refactor: unify context in webpack module (#5054) 2019-02-18 17:00:51 +00:00
Pooya Parsa 2015140d12 feat(vue-app): universal fetch (#5028)
* pkg(nuxt-start): add node-fetch, unfetch

* pkg(vue-app): add node-fetch, unfetch

* add yarn.lock

* feat(config): _app.fetch options

* feat(builder): add fetch to templateVars

* feat(vue-app): polyfill global with fetch

* feat(fixtures/basic): /api/test

* add fetch example to fixtures

* remove unfetch from nuxt-start

* update template snapshot

* revert extra new line in server.js

* single line if
2019-02-14 16:56:58 +01:00
Alexander Lichter 69dfd848d7 refactor: some small stuff (#4979)
* refactor: flatten ifs

* refactor: unnecessary curly brackets

* refactor: unnecessary else

* refactor: promise.all instead of for-await

* refactor: apply changes suggested by @clarkdo

* chore: fix typo

* refactor: early return

* refactor: add removal TODOs

* refactor: more descriptive variable name

* refactor: prefer template string

* refactor: one-line

* refactor: early returns

* refactor: early return

* refactor: parallel promises

* refactor: early return and no else

* refactor: spread operator

* refactor: spread operator and early return

* fix: remove error and throw string instead

* fix: always return true

* refactor: clear multiline ternary

* refactor: err stack assignment

* refactor: early return and async/await

* refactor: one line

* refactor: early return

* refactor: early return

* refactor: promise.all

* refactor: args spread
2019-02-08 17:25:11 +01:00
Pim 5ec5932bad fix: refactor file watchers (chokidar/linux workaround) (#4950) 2019-02-06 22:16:17 +03:30
Xin Du (Clark) 43491f6e53
feat(test): unit tests for @nuxt/builder (#4834) 2019-02-04 10:34:04 +00:00
Xin Du (Clark) ca191240fb fix: extra properties in templateFiles (#4925) 2019-02-01 19:55:32 +03:30
Alexander Lichter 569b6aab9c refactor: typos (#4922) 2019-02-01 16:38:47 +03:30
Xin Du (Clark) f70645e5aa fix: revert templatFiles name (#4924) 2019-02-01 15:26:26 +03:30
Xin Du (Clark) 4c5a59e149
refactor: generate routes and template files in builder (#4883) 2019-01-30 16:54:26 +00:00
Xin Du (Clark) 59be77a2f3
feat: .nuxtignore (#4647) 2019-01-29 09:31:14 +00:00
Xin Du (Clark) e3cc28c31e refactor: encapsulate pages validation into a separate function (#4826)
* refactor: encapsulate pages validation into a separate function

* refactor: remove else
2019-01-21 22:10:37 +03:30
Xin Du (Clark) 3966b265f9
fix: watch custom patterns only when it exists (#4823) 2019-01-21 15:14:17 +00:00
Clark Du 9b3e7be3e7
fix: invalid plugin mode warning for all 2019-01-19 12:27:15 +00:00
Alexander Lichter 40fbe5ba47 refactor: cleanups and code style improvements (#4788) 2019-01-18 00:48:29 +03:30
Xin Du (Clark) f85ac94a87 fix(builder, module): addLayout and nuxt.config precedence over auto-scanned layouts (#4702) 2019-01-09 14:27:46 +03:30
Pim 9c6df495d8 fix: add option to rewatch on path after raw fs event (#4717) 2019-01-09 14:18:28 +03:30
Alexander Lichter eef2af35e4 fix: no false positives for plugins with index.js (#4714)
resolves #4713 [release]
2019-01-08 22:55:56 +03:30
Xin Du (Clark) af76e07b56 fix(builder): js layout (#4701)
[release]
2019-01-07 15:44:51 +03:30
Ricardo Gobbo de Souza 6436e3b080 fix(builder): layouts condition (#4641) 2019-01-06 11:35:11 +03:30
Pooya Parsa 7dd33fedd2 feat(builder): validate vue-app dependencies and suggest fix (#4669) 2019-01-02 14:17:19 +00:00
Alexander Lichter 867e8e1e84 fix: plugins for modern mode (#4659) 2018-12-30 14:28:42 +00:00
Kevin Marrec 4d5274215a feat(ts): add TSX support (#4613) 2018-12-23 02:12:20 +03:30
Xin Du (Clark) 324135df51 refactor: @nuxt/utils (#4609) 2018-12-23 00:35:13 +03:30
Ricardo Gobbo de Souza add80004ba feat(router): custom route name splitter (#4598) 2018-12-20 13:42:42 +01:00
Pooya Parsa 8b366fd216
chore: use @nuxt for all core dependencies (#4596)
[skip release]
2018-12-20 14:45:12 +03:30
Xin Du (Clark) e71c4559ff feat: mode for plugins (#4592) 2018-12-20 12:58:10 +03:30
Xin Du (Clark) e7df65be1a fix: detect plugin without extension (#4579) 2018-12-18 17:49:38 +03:30
Kevin Marrec 75e3df6be5 fix(ts): switch from babel preset to ts-loader (#4563) 2018-12-17 15:21:53 +00:00
Jonas Galvez 7831e57943 fix: properly serialize head functions (#4558)
#4079
2018-12-15 12:07:31 +03:30
Kevin Marrec 7145c1ab5d feat(builder): optional typescript support (#4557) 2018-12-15 10:25:08 +03:30
Alexander Lichter c60b1945e8 chore: cleanup (#4529) 2018-12-12 10:01:49 +03:30
Jonas Galvez 655f11cefd chore: update code to meet new curly-all rule (#4505)
[skip ci]
2018-12-10 01:30:48 +03:30
Pooya Parsa fe0516978a
fix: improvements for build and dev stability (#4470) 2018-12-09 14:12:22 +03:30
Pooya Parsa 27e79be285 fix(builder): add lodash inside templates (#4368) 2018-11-20 09:21:17 +00:00
Pooya Parsa 7c4e77ffb9
feat: dx improvements (#4259) 2018-11-08 12:45:56 +03:30
Clark Du 3953eef271 refactor(builder): make plugins in BuildContext update dynamically (#4280) 2018-11-06 16:23:15 +03:30
Clark Du 3f2b10ea0c
fix: Duplicate declaration plugin when add/remove file in dev mode (#4278) 2018-11-06 10:50:38 +00:00
xxRockOnxx 2f78f87c06 [skip ci] move misleading comment (#4265) 2018-11-03 15:55:41 +03:30
Pooya Parsa 1dd32d0d21 feat: update to consola 2 (#4247)
* add ~> addReporter

* remove badge

* withScope ~> withTag

* update to consola 2

* update build tests
2018-11-01 04:50:07 +01:00
Pooya Parsa 39b558f59c
refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30
Pooya Parsa 46103e72ea
chore: packaging and development improvements (#4193) 2018-10-25 14:52:31 +03:30
Alexander Lichter 48393b33c7 refactor: small improvements (#4194) 2018-10-25 14:27:52 +03:30
Dmitry Molotkov a3ba6e96ca fix: check styleResources for existence (#4155) 2018-10-25 14:25:05 +03:30
Clark Du 9df5f49e07 feat: split builder into more refined modules (#4171)
New packages:
- `@nuxt/webpack`
- `@nuxt/generator`
2018-10-24 20:25:18 +03:30
Pim 96bdcaba01 fix(app): lint all templates (#4175) 2018-10-24 17:16:06 +03:30
Pooya Parsa 60dbc6ddc5
fix(builder): use require.resolve to get the path of babel-loader (#4150) 2018-10-23 01:18:06 +03:30
Alexander Lichter ab5af540e0 perf: cherry-pick only used lodash imports (#4099) 2018-10-18 19:13:44 +03:30
Pooya Parsa 9c1e0d1743 feat: migrate nuxt into monorepo (#4051)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
Co-authored-by: Pooya Parsa <pooya@pi0.ir>
2018-10-18 00:58:25 +03:30