Commit graph

5274 commits

Author SHA1 Message Date
Endilie Yacop Sucipto
90a1fbc535
fix(v2): flat function & window.docusaurus rename (#1377)
* fix(v2): flat function & window.docusaurus rename

* test nits

* nits space

* test fix
2019-04-21 16:54:14 +07:00
Yangshun Tay
2191fd662c fix(v2): keep up with infima updates 2019-04-20 18:22:04 -07:00
Endilie Yacop Sucipto
9aa66ddac6
chore(v2): temporary hack to persist infima CSS (#1376) 2019-04-21 00:51:25 +07:00
Endilie Yacop Sucipto
b99ede440b
feat(v2): prefetch links on viewport with intersection observer (#1375)
* feat(v2): prefetch links on viewport with intersection observer

* nits

* remove console log

* better useEffect

* disconnect IO when unmount

* comment
2019-04-21 00:28:13 +07:00
Endilie Yacop Sucipto
2a13c7773f feat(v2): enable exact for addRoute API (#1374) 2019-04-20 08:09:21 -07:00
Endilie Yacop Sucipto
1d7538ff4a
feat(v2): prefetching/ preloading API (#1373)
* add prefetch helper function

* prefetchChunks pseudocode in Link

* chunkmap extractor & routeChunkNames

* wip

* wip prefetch

* rough implementation

* prefetch feedback page on home page

* dedupe prefetch&preload

* refactor/ remove unused

* double check client-manifest and chunk-map

* make sure build folder exist

* address review
2019-04-20 16:16:34 +07:00
Yangshun Tay
d00799f633 refactor(v2): use BEM for classes 2019-04-20 00:42:24 -07:00
Alan Cha
1fc4c9b810 docs: consistent badge style (#1371) 2019-04-18 12:50:27 -07:00
Endilie Yacop Sucipto
b4daac96c8
fix(v2): fix hot reload sometimes not working due to altered modules (#1370) 2019-04-18 19:04:53 +08:00
endiliey
1ce4195f14 v2.0.0-alpha.7 2019-04-16 22:38:11 +08:00
Yangshun Tay
96cb4672d5 feat(v2): implement ComponentCreator (#1366)
* v2(feat): convert blog to view-driven content queries

* feat(v2): port blog to use ContentRenderer

* misc(v2): fix test and change ContentRenderer url

* avoid chunkName collision

* avoid chunkname collision more

* fix(v2): fix content-renderer ssr problem (#1367)

* wip

* avoid chunk names collision

* ContentRenderer is a wrapper for Loadable

* convert docs and pages

* nits and rename

* rename routeModules -> modules

* remove lodash from component creator

* resolve chunk not being picked up correctly

* add comment for explanation

* small refactoring
2019-04-16 22:18:29 +08:00
Yangshun Tay
0ac2441d23 chore: v1.8.1 2019-04-15 11:33:21 -07:00
murray-b
94a0da33c3 feat: random color scheme in siteConfig (#1365) 2019-04-15 09:04:38 -07:00
Endilie Yacop Sucipto
57df1f8e32 chore(v2): remove react-hot-loader (#1364) 2019-04-13 12:55:53 -07:00
endiliey
1d133e7169 fix(v2): fix deploy script 2019-04-14 01:22:57 +08:00
endiliey
d097f73285 v2.0.0-alpha.6 2019-04-14 01:07:24 +08:00
endiliey
261ab9254d fix(v2): only import prism css on browser 2019-04-14 01:02:34 +08:00
Endilie Yacop Sucipto
f37300a69b
feat(v2): webpack multicompile client & server (#1363)
* feat(v2): multi-compile server & client

* simplify stuff

* dep

* fix sitemap callback deprecation warning
2019-04-13 23:11:35 +07:00
Endilie Yacop Sucipto
ecb4f91669
feat(v2): don't output server.bundle.js to disk (#1361) 2019-04-13 16:23:33 +07:00
Yangshun Tay
fbfb26e17c fix(v2): avatar class names 2019-04-12 23:00:36 -07:00
Endilie Yacop Sucipto
f0dc68d01a
feat(v2): code-split metadata out of routes (#1359)
* move assets-manifest to generatedFilesDir

* rename generateChunkName -> genChunkName

* implement docuHash and genComponentName

* feat(v2): code-split routes and metadata

* don't code split component code out

* simplify metadata path

* nits

* fix test

* address review
2019-04-13 12:37:05 +07:00
pkowaluk
866f66241b docs: change parameter type for separateCss from string to array (#1358) 2019-04-12 00:56:06 -07:00
Yangshun Tay
b4bfa084f1 v2.0.0-alpha.5 2019-04-10 13:26:45 -07:00
Yangshun Tay
2fe7d4c3b8 v2.0.0-alpha.4 2019-04-10 13:19:10 -07:00
Yangshun Tay
3ce215eb20 v2.0.0-alpha.3 2019-04-10 13:17:26 -07:00
Yangshun Tay
d80e0e5d83 v2.0.0-alpha.2 2019-04-10 13:05:24 -07:00
endiliey
a4fc63fbff v2.0.0-alpha.1 2019-04-11 00:56:40 +08:00
Endilie Yacop Sucipto
a967816616
fix(v2): fix js-loader not transpiling own library (#1356) 2019-04-10 23:41:49 +07:00
endiliey
2a37bbf84a v2.0.0-alpha.0 2019-04-10 22:35:17 +08:00
endiliey
3f09957045 chore: fix scoped packages publish error 2019-04-10 22:21:35 +08:00
endiliey
84ace67234 chore: fix conflicting yarn 'version' 2019-04-10 22:01:37 +08:00
Endilie Yacop Sucipto
f95ac033fd
feat(v2): separate runtimechunk (#1355)
* feat(v2): separate runtimechunk

* nits
2019-04-10 19:50:37 +07:00
Endilie Yacop Sucipto
415d2b33d1
fix(v2): wrong head meta and title (#1354) 2019-04-10 17:08:58 +07:00
Endilie Yacop Sucipto
5872e2dd91
fix(v2): windows compatibility (#1353) 2019-04-10 15:30:30 +07:00
Endilie Yacop Sucipto
15bc33df50
chore(v2): rename/ restructure folder (#1351)
* chore(v2): restructure folder

* typo

* fix test
2019-04-10 14:20:15 +07:00
Julia
b6aa6dac89 fix: make scrollbar visible in inner page navigation (#1349)
* fix: make scrollbar visible in inner page navigation

* fix: make scrollbar visible in inner page navigation

* undo

* fix: make scrollbar visible in inner page navigation

* fix: make scrollbar visible in inner page navigation
2019-04-09 09:17:02 -07:00
Endilie Yacop Sucipto
d583c6c7da
chore: fix docusaurus.io error (#1348)
* chore: remove docusaurus.io error

* store it on docusaurus repo
2019-04-09 17:02:54 +07:00
Yangshun Tay
bb4ffdfe3c
feat(v2): use Infima CSS (#1346)
* feat(v2): use Infima CSS

* misc(v2): fixes

* misc(v2): change CSS to Netlify hosting

* misc(v2): shift search to the right
2019-04-09 00:48:37 -07:00
Endilie Yacop Sucipto
6e9b85fe43 feat(v2): upgrade addRoutes API to introduce query (#1345)
* feat(v2): upgrade addRoutes API to enable query

* nits
2019-04-08 11:33:40 -07:00
Endilie Yacop Sucipto
7e6b74b820 refactor(v2): simplify + optimize server (#1343) 2019-04-07 22:34:11 -07:00
Endilie Yacop Sucipto
84c3e0a045
refactor(v2): simplify webpack stuff (#1342)
* refactor(v2): webpack stuff

* nits

* nits test
2019-04-08 01:40:38 +07:00
Endilie Yacop Sucipto
2248b4b927 fix(v2): fix chokidar not watching files correctly (#1340) 2019-04-06 11:52:49 -07:00
Endilie Yacop Sucipto
aa27f82acc
refactor(v2): shift to docusaurus/mdx-loader (#1339) 2019-04-06 23:55:22 +07:00
Yangshun Tay
1a8e12048e feat(v2): docs plugin continued (#1337)
* refactor(v2): shift markdown loader into plugin

* fix(v2): build command configure webpack

* temporary fix for failing test
2019-04-06 21:01:29 +07:00
Endilie Yacop Sucipto
50bbc1dcd7 feat(v2): proper realtime hot reload with react-hot-loader (#1336)
* feat(v2): proper realtime hot reload with react-hot-loader

* nits

* nits again
2019-04-04 08:24:20 -07:00
Endilie Yacop Sucipto
94a4ef55c0 feat(v2): add cache-loader by default especially on babel-loader (#1335) 2019-04-03 12:02:53 -07:00
Endilie Yacop Sucipto
c129c68d1c feat(v2): enable user to analyze production bundle size (#1334)
* feat(v2): enable user to analyze bundle size with --bundle-analyzer for production

* nits
2019-04-03 10:42:11 -07:00
Endilie Yacop Sucipto
5db02f41a9 refactor(v2): hydrate on server existing markup instead of full rerender (#1333) 2019-04-03 09:26:37 -07:00
Pavel Chertorogov
f945f5b757 add graphql-compose to users.js (#1331) 2019-04-02 06:30:09 -07:00
Yangshun Tay
4ac4a7c671 misc(v2): make packages dir more consistent 2019-04-01 22:18:44 -07:00