Commit Graph

133 Commits

Author SHA1 Message Date
大果 4552afaec8 chore: refactor router (#58)
* chore: refactor router

* chore: add example

* fix: load all modules in first request

* fix: route module load

* chore: remove unused param

* fix: rerender twice

* fix: loadRouteModules params

Co-authored-by: luhc228 <luhengchang228@gmail.com>
2022-11-14 19:14:14 +08:00
ClarkXia 43a143de6d feat: support defineUserConfig (#53)
* feat: support config file

* feat: config file

* feat: add config watch

* fix: createServer path

* feat: add json support

* chore: space

* fix: add browserlist and webpack bundle analyze

* fix: update package name
2022-11-14 19:13:53 +08:00
ClarkXia 6f9e64bea5 fix: improve framework config (#36)
* feat: config

* fix: webpack config

* feat: user config

* fix: css minimizer option

* fix: css minimizer option

* fix: alias with root

* fix: default define

* chore: optimize code

* fix: optimize code

* chore: update comment

* chore: lint

* chore: remove useless code

* fix: assets mainfest

* fix: test case
2022-11-14 19:12:43 +08:00
ClarkXia 647996e63e feat: define runtime value (#30)
* feat: define runtime value

* chore: remove console

* test: fix test option

* fix: remove process fallback for client

* fix: optimize code

* feat: optimize code

* fix: optimize code

* fix: types

* chore: optimize code

* test: add test case

* fix: remove useless code

* chore: optimize code

* chore: optimize code
2022-11-14 19:12:27 +08:00
luhc228 de7ec7dfd3 feat: rewrite matchRoutes function 2022-11-14 19:08:44 +08:00
shuilan.cj 4a56072283 fix: aplus blocks the puppeteer load page 2022-11-14 19:08:05 +08:00
shuilan.cj 498877ccdb refactor: root -> main 2022-11-14 19:06:40 +08:00
luhc228 e7735ec588 feat: await chunk import in CSR (#35)
* chore: remove this is undefined in esm warning

* chore: remove plugin-router

* feat: merge render

* feat: merge defaultAppConfig

* feat: support redirect without lazy

* fix: redirect error

* fix: ssr render error

* feat: add transition file

* refactor: route

* chore: update transition

* refactor: transition

* chore: ProvidePlugin

* chore: remove console

* chore: add router-dom server reference

* feat: add PageContext

* fix: comment

* chore: BrowserEntry

* chore: comment

* chore: update lock

* chore: error

* chore: loadRoutesModules

* feat: initialContext types
2022-11-14 19:05:10 +08:00
shuilan.cj 1d16997af8 fix: page config type 2022-11-14 19:03:39 +08:00
shuilan.cj b99bf43e3a fix: ts error 2022-11-14 19:01:14 +08:00
shuilan.cj d43164123a feat: get assets from manifest 2022-11-14 19:01:14 +08:00
shuilan.cj eaeb94e782 fix: block css 2022-11-14 19:00:56 +08:00
shuilan.cj d4cbe9182b feat: route data 2022-11-14 18:59:05 +08:00
大果 2b11d0578e feat: router (#28)
* feat: generate route manifest

* chore: lock

* feat: support generate nested route manifest

* chore: type

* chore: rename test to tests

* chore: remove caseSensitive

* chore: support generate routes

* fix: lint

* fix: lint

* feat: add componentName

* feat: support generate route

* feat: not add Router when only has one page

* fix: merge confict

* refactor: service route generate

* chore: update route-manifest readme

* test: add more route test cases

* chore: remove comment

* test: add invalid routes test case

* chore: update invalid char judge logic

* fix: comment

* fix: lint error

* chore: lock

Co-authored-by: luhc228 <luhengchang228@gmail.com>
2022-11-14 18:49:43 +08:00
shuilan.cj ecae77974d fix: style path 2022-11-14 18:04:37 +08:00
shuilan.cj 763452108a fix: lint 2022-11-14 18:03:49 +08:00
luhc228 33747c0cb8 feat: more webpack config (#18)
* feat: esm

* fix: require in esm

* fix: test fail

* feat: css loader

* feat: hmr

* feat: cache

* feat: optimization

* feat: postcss

* feat: open preview browser

* feat: assets loader

* fix: ignore swc compile document

* chore: type

* fix: test

* fix: comment

* chore: add @ice/runtime

* chore: remove example page

* chore: add openChrome.applescript

* feat: use outputDir

* fix: comment

* chore: update pnpm lock

* fix: outDir

* chore: remove document ignore

* feat: add isServer params
2022-11-14 18:01:26 +08:00
shuilan.cj e96d5f8f7d fix: lint 2022-11-14 18:00:23 +08:00
大果 400b31e4e6 feat: support useAppContext API (#26) 2022-11-14 17:54:57 +08:00
shuilan.cj af020d04b9 feat: ssr entry 2022-11-14 17:52:55 +08:00
liuxiong.lx 72a6f3bfb7 feat: rework entry 2022-11-14 17:52:01 +08:00
大果 6bbc638e45 feat: render router (#17)
* feat: renderRouter

* fix: lint

* fix: test case

* feat: remove renderComponent

* chore: add types

* fix: scripts

* chore: build order

* chore: remove workspace from version

* chore: upgrade lock

* chore: upgrade lock
2022-11-14 17:49:04 +08:00
大果 49ff12f30b feat: runtime structure & output dir (#16)
* chore: optimize runtime

* chore: fix lint

* fix: test case lib -> esm
2022-11-14 17:48:18 +08:00
luhc228 7c171732a3 feat: use esm standard (#14)
* feat: esm

* fix: require in esm

* fix: test fail
2022-11-14 17:47:51 +08:00
ClarkXia 5d43928afe chore: refactor package structrue (#10)
* chore: refactor package structrue

* chore: remove unexpected code

* fix: package info

* chore: fix readme

* chore: version
2022-11-14 17:45:35 +08:00
水澜 9a062c08a8 feat: render document (#8)
* feat: render document

* fix: lint

* fix: ts lint

* chore: update lock info

* fix: lint

* fix: conflict

* fix: conflict

Co-authored-by: luhc228 <luhengchang228@gmail.com>
2022-11-14 17:44:30 +08:00
luhc228 2958c633b9 fix: type error 2022-11-14 17:43:47 +08:00
ClarkXia 282543d2df feat: basic runtime 2022-11-14 17:42:51 +08:00
luhc228 34b024a970 feat: add plugin-router 2022-11-14 17:41:47 +08:00
luhc228 75dba1b423 feat: update webpackConfig 2022-11-14 17:38:35 +08:00
luhc228 0f8b11f400 chore: temp 2022-11-14 17:37:37 +08:00
luhc228 22c7049243 feat: render react component 2022-11-14 17:37:24 +08:00
ClarkXia 7c665bee30 feat: basic icejs cli 2022-11-14 17:27:32 +08:00