Commit Graph

99 Commits

Author SHA1 Message Date
ClarkXia fbeaf932cb
chore: update versions (#6509) 2023-09-14 10:58:37 +08:00
luhc228 b8b1d5e41f
fix: source map url in prod files but the sourceMap files not published (#6511)
* fix: source map url in prod files

* chore: changeset
2023-09-06 10:09:59 +08:00
github-actions[bot] e3ca513f56
chore: update versions (#5949)
* chore: update versions

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2023-03-02 13:55:59 +08:00
ClarkXia 56fb406e8a
fix: import path of types and runtime (#5981)
* fix: import path of types and runtime

* chore: package.json

* chore: add changelog

* fix: typings

* fix: type declare
2023-02-28 15:08:10 +08:00
luhc228 8eee4f0dc9
fix: prebundle esm module error (#5935)
* fix: prebundle esm module error

* fix: test case error

* chore: changeset

* chore: release beta version

* chore: remove unused code and deps

* chore: update comment

* chore: remove debugger

* chore: changeset

* chore: release beta version
2023-02-20 10:22:46 +08:00
luhc228 db495382b2
feat: use changeset to publish and version (#5864)
* feat: add changesets config

* chore: remove version publish scripts

* chore: update ci workflow

* chore: update checkout branch step

* chore: lock

* fix: lost scripts

* fix: ts type error

* chore: remove scripts

* chore: update README

* chore: update lock

* chore: update dependency and script

* chore: remove version check

* chore: add publishConfig to package.json

* chore: update ci step

* chore: update release:beta script

* chore: add private field to examples

* chore: remove registry

* chore: update lock

* chore: update ci workflow

* chore: update workflow

* chore: update README

* chore: update changeset README

* chore: update cache key

* feat: update cache

* chore: update cache config
2023-02-13 14:48:34 +08:00
ZeroLing 31eb662648
chore: update repo and changelog (#5618)
* chore: add changelog and docs update

* docs: update docs repo

* Update CHANGELOG.md
2022-11-24 19:11:13 +08:00
ZeroLing d2c7e0696d chore: optimize (#676)
* chore: optimize with rax-compat docs

* refactor: add mock express types dependency

* refactor: change usage for definePageConfig

* chore: change docs

* docs: ICE to ice.js

* fix: templorary remove the type

* chore: handle with lint problems

* fix: lock file
2022-11-15 10:33:11 +08:00
luhc228 e88c291ad1 fix: useAuth error (#661)
* chore: example

* chore: with-auth example

* docs: update auth

* test: add with-auth test

* chore: format

* fix: lock
2022-11-15 10:33:11 +08:00
ClarkXia 7b1cb86299 refactor: type dependencies (#638)
* refactor: types dependencies

* chore: types

* fix: tsconfig

* chore: optimize code

* fix: conflict
2022-11-15 10:33:00 +08:00
ClarkXia 5b61d8acbd feat: support route config type (#595)
* feat: support route config type

* fix: type

* fix: optimize code
2022-11-15 10:32:49 +08:00
luhc228 bcbf6b5804 feat: support runtime relative path (#537)
* feat: support runtime relative path

* chore: line break

* fix: not compatible with relative path

* feat: support absolute path

* docs: update plugin-dev

* docs: optimize config

* refactor: runtime staticRuntime and name

* fix: type

* chore: remove file path exists check
2022-11-15 10:32:43 +08:00
ClarkXia 0e7735c358 feat: support initialize auth by app data (#519) 2022-11-15 10:32:39 +08:00
ClarkXia 9a3cde783d feat: plugin antd (#421)
* feat: plugin antd

* chore: demo

* chore: update lock

* chore: remove log

* feat: support import style

* fix: compile error

* chore: optimize dependencies
2022-11-15 10:19:56 +08:00
luhc228 ac8880db86 fix: plugin ts type (#356)
* fix: plugin ts type

* chore: comment from Chinese to English
2022-11-15 10:14:30 +08:00
ClarkXia f3fc4c702f fix: type of ice plugin (#302)
* fix: standard for ice plugin

* feat: force mts config
2022-11-14 19:46:53 +08:00
luhc228 50be6fa47b Feat: defineAppConfig (#265)
* feat: defineAppConfig

* feat: watch

* feat: add defineAuthConfig

* chore: remove NodeNext

* chore: ts-expect-error

* feat: add ./*

* chore: add ts-expect-error

* fix: types error

* chore: declare runtime module

* chore: types

* fix: types

* refactor: types path

* fix: export path
2022-11-14 19:41:27 +08:00
luhc228 5b651061ae feat: package watch (#267)
* feat: package watch

* feat: watch

* chore: remove package watch

* feat: watch and build

* fix: build

* chore: remove prebundle from build

* chore: rename
2022-11-14 19:23:02 +08:00
ZeroLing b0ba0b8548 chore: monorepo 2022-11-14 19:20:46 +08:00
ClarkXia e79205ed0a fix: optimize code 2022-11-14 19:20:45 +08:00
ClarkXia da8550ad1e chore: update dependencies 2022-11-14 19:19:00 +08:00
ClarkXia ecf09cf763 feat: appExport 2022-11-14 19:18:41 +08:00
ClarkXia 8f077690de feat: scan import (#211)
* feat: scan import

* chore: optimze code

* fix: load empty namespace

* chore: comment

* refactor: scanImports

Co-authored-by: luhc228 <luhengchang228@126.com>
2022-11-14 19:17:54 +08:00
ClarkXia c6e462268b fix: import path of runtime (#222) 2022-11-14 19:17:27 +08:00
ClarkXia b10b336514 Refactor service (#159)
* feat: refactor service

* fix: functional plugin

* fix: getCompilerPlugins

* feat: add log

* fix: refactor webpack compiler

* chore: update lock

* fix: remove useless code

* fix: config type

* chore: rename folder

* chore: optimize code

* fix: mock

* fix: ssr render

* fix: types

* chore: unused vars
2022-11-14 19:17:27 +08:00
luhc228 22e784398a feat: compile runtime (#209)
* feat: compile runtime

* feat: ts 4.7

* chore: node to default in exports

* chore: lock
2022-11-14 19:17:27 +08:00
水澜 27599db870 refactor: getAppData (#183)
* feat: data loader

* refactor: put load logic to runtime

* feat: pass matched ids

* refactor: reuse initial context

* feat: generate loader template

* fix: name with slash

* fix: name with slash

* feat: throw error

* feat: preload app data

* refactor: initail context to request context

* chore: add comment

* chore: add comment

* fix: type

* fix: merge conflict

* refactor: get app data

* fix: conflict

* fix: csr app data

Co-authored-by: luhc228 <luhengchang228@126.com>
2022-11-14 19:17:10 +08:00
水澜 704247de1e fix: csr hydrate error (#176)
* fix: csr hydrate error

* chore: demo for csr

* refactor: update route config

* fix: lint

* chore: update lock yaml

* fix: type

* refactor: pass app to document by context

* fix: lint

* chore: comment

* fix: type

* fix: do not overwrite title if not config

* chore: rename

Co-authored-by: luhc228 <luhengchang228@126.com>
2022-11-14 19:17:10 +08:00
水澜 e0297618b1 refactor: route wrapper (#135)
* refactor: wrapper

* feat: support wrapper layout

* chore: demo for auth

* fix: typo

* fix: typo

* fix: typo

* fix: typo

* fix: typo

* feat: generate layout info when build

* refactor: wrapper for layout

* test: update snapshot for layout

* fix: typo
2022-11-14 19:16:51 +08:00
shuilan.cj 740595cce0 feat: upgrade to react 18 2022-11-14 19:16:38 +08:00
水澜 99e586bf7c Feat nested routing (#112)
* feat: nested routing

* fix: update page config after navigate

* fix: initial value

* refactor: fn name

* feat: avoid load data for old route

* refactor: decoupling the dependency to page

* refactor: types for getConfig

* refactor: use prmomise

* chore: rename

* test: filter matched route

* chore: optimize types

* feat: support useAppData

* chore: just play

* chore: remove log

* chore: resolve conflict

* refactor: pages to routes

* fix: page to route

* refactor: merge value

Co-authored-by: liuxiong.lx <liuxiong.lx@alibaba-inc.com>
2022-11-14 19:16:12 +08:00
ClarkXia b201704d5d feat: optimize service include generator and compile (#72)
* feat: optimize code

* fix: relative path of runtime

* fix: compile config for app config
2022-11-14 19:15:07 +08:00
ClarkXia 748adfb2c4 refactor: create @ice/app for framework (#67)
* fix: package name

* refactor: main package for ice

* fix: test case

* test: test case

* test: run context without built-in plugin

* test: add console level

* test: test case

* fix: remove built-in plugin

* test: use json file

* Revert "test: use json file"

This reverts commit be309d7df5a00fcc14fdc54fe2a63c9bce54221c.

* fix: update build-scripts

* fix: optimize code

* fix: exports field

* chore: use consola instead of console

* fix: optimize code
2022-11-14 19:14:32 +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
大果 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
大果 400b31e4e6 feat: support useAppContext API (#26) 2022-11-14 17:54:57 +08:00
大果 a225545066 feat: rework entry (#23)
* feat: rework entry

* chore: setup lock

* fix: createRequire

* fix: IAuth -> AuthConfig
2022-11-14 17:53:49 +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
ClarkXia ac910ed2dc refactor: remove 2.x code 2022-11-14 17:17:45 +08:00
ClarkXia 4f3d9492c9
chore: add changelog and update version (#5403)
* chore: add changelog and update version

* chore: update version
2022-08-08 10:38:17 +08:00
Nick Na 65b2650e13
fix: plugin-auth #5327 (#5328) 2022-06-08 10:18:30 +08:00
ClarkXia 43b92454c0
chore: version (#5092)
* chore: version

* fix: lint
2021-12-30 11:38:43 +08:00
大果 95fba2b129
feat: pass page props to NoAuthFallback (#5088)
* feat: pass page props to NoAuthFallback

* chore: template -> runtime

* fix: optimize code

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2021-12-30 10:22:31 +08:00
ClarkXia 9a3788f3c9
fix: update auth (#4624)
* fix: update auth

* fix: remove console
2021-09-15 17:16:44 +08:00
ClarkXia 24978dffe2
fix: config auth by static props of component (#4614)
* fix: config auth by static props of component

* fix: optimize code
2021-09-09 20:15:50 +08:00
Rhuzerv 289afe4f36
fix: plugin-auth type warning (#4529) 2021-08-09 11:08:45 +08:00
Hengchang Lu 6ec8ebe0fa
feat: enhance debug package (#4505)
* feat: enhance debug package

* fix: build error
2021-07-28 16:47:11 +08:00
ClarkXia 57f37849aa
feat: support webpack-dev-server v4 (#4478)
* feat: support webpack-dev-server v4

* fix: bump version to fix ts types

* fix: bump version
2021-07-22 11:04:18 +08:00
狒狒神 3589342c47
refactor: mpa render (#4468)
* refactor: template

* refactor: runApp template

* feat: support lite runApp

* chore: optimize code

* feat: redirect runApp

* feat: support disable router plugin

* chore: lint

* chore: optimize code

* feat: add wrapperPageComponent

* chore: optimize code

* refactor: templates

* chore: optimize code

* chore: lint

* chore: lint

* chore: ssr

* chore: test

* feat: redirectImport support export default

* chore: add test case

* chore: optimize code

* chore: test case

* chore: test case

* chore: optimize code

* chore: add setRenderApp method
2021-07-21 00:24:48 +08:00