Commit Graph

133 Commits

Author SHA1 Message Date
XGHeaven f0c6380b0c
feat: support htmlGeneratingMode option (#7032) 2024-12-12 16:34:48 +08:00
ClarkXia 15c8200f60
Feat: unnecessary to compile routes config for server render (#6856)
* fix: unnecessary to compile routes config for server render

* chore: format ejs template

* feat: support build fallback entry

* chore: add test case for fallback entry

* chore: update lock

* chore: changeset

* chore: lint

* chore: lint

* chore: remove console log

* fix: merge conflict

* fix: undefined assign
2024-06-17 16:24:57 +08:00
ClarkXia 1de19371d7
feat: add type definition of runApp (#6554)
* feat: add type defination of runApp

* chore: changeset
2023-10-11 10:22:02 +08:00
水澜 78f850fa67
feat: hash only css modules (#6289)
* feat: hash only css modules

* fix: type

* docs: css modules hash only

* chore: add changeset

* refactor: support localIdentName

* chore: add todo
2023-09-20 15:17:28 +08:00
ClarkXia 69e68633ff
feat: support API useDocumentData (#6408)
* feat: support API useDocumentData

* refactor: make document data unstable

* refactor: document data loader

* chore: lint

* chore: lint

* chore: lint

---------

Co-authored-by: ZeroLing <zhuoling.lcl@alibaba-inc.com>
2023-08-31 10:12:45 +08:00
ClarkXia 1dbcfa51a6
chore: bump version of dependencies (#6472)
* chore: bump version of dependencies

* fix: update transform rule

* fix: test case

* chore: update core-js
2023-08-21 16:26:00 +08:00
ClarkXia 67eae5c1ac
feat: support app config of runApp (#6398) 2023-08-02 17:04:50 +08:00
ClarkXia f95bbc2e71
fix: optimize deprecation warning of webpack (#6319)
* fix: optimize deprecation warning of webpack

* fix: changelog
2023-06-14 11:09:13 +08:00
水澜 137d6b1c99
fix: server dataLoader error (#6316)
* fix: server error

* chore: add changelog

* fix: fallback should be optional

* chore: add changelog
2023-06-13 11:23:18 +08:00
ClarkXia c70c77379d
fix: refactor error handling (#6286)
* fix: refactor error handling

* fix: logger

* fix: sourcemap

* fix: test case

* fix: test

* fix: add brief error message

* fix: changelog and lint
2023-06-08 18:12:12 +08:00
ClarkXia ed4ed7ee7a
hotfix: auto polyfill for abortcontroller (#6301)
* fix: auto polyfill for abortcontroller

* fix: polyfill

* feat: changelog

* fix: lint

* fix: optimize code

* fix: signal
2023-06-07 11:26:01 +08:00
ClarkXia 07687cc157 Merge branch 'master' into release/next 2023-05-09 15:34:11 +08:00
luhc228 6e9c822af8
fix: define config (#6198)
* chore: remove useless define variables

* chore: remove useless define variables

* fix: server define config

* chore: changeset

* chore: update comment

* fix: define variables in onDemand server

* docs: update define config

* fix: test

* chore: update test case

* fix: process.env variable
2023-05-08 12:04:07 +08:00
逆葵 6f7a47e0b4 chore: update dependencies version 2023-04-25 10:49:28 +08:00
逆葵 2d7d4bf1fc Merge branch 'master' into feat/miniapp-native-events 2023-03-28 11:40:52 +08:00
ClarkXia 1b6c57832a
feat: on-demand compilation for server (#5824)
* feat: node runner

* feat: node transform

* fix: unexpected modification

* fix: node runner

* test: test case

* test: test case

* test: test case

* fix: add dependencies

* fix: optimize code

* feat: server runner

* feat: optimize code

* fix: test case

* fix: test case

* feat: support on demand pre bundle

* chore: lint warning

* fix: optimize code

* fix: compile options

* fix: optimize code

* fix: add file

* fix: optimize code

* fix: test case

* fix: optimize code

* fix: test

* fix: compile target

* fix: optimize code

* fix: lint

* fix: optimize code
2023-02-22 12:17:31 +08:00
ClarkXia c893a64a1c
chore: changeset config (#5909)
* chore: reset version

* fix: changeset

* chore: publish beta

* chore: update pre

* chore: custom version

* chore: remove test

* fix: version

* chore: test case

* chore: version

* fix: reset changelog

* fix: update lock

* fix: changelog

* chore: release beta version

* chore: add changeset

* chore: release beta version

* chore: update @ice/app version

* chore: update version and lock

---------

Co-authored-by: luhc228 <luhengchang228@126.com>
2023-02-16 16:11:49 +08:00
ClarkXia 537d154899
fix: optimize webpack config (#5891)
* fix: optimize webpack config

* chore: version

* fix: lock file
2023-02-13 14:58:06 +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 acfc88427e
fix: dynamic import works in app.tsx (#5840)
* fix: dynamic import works in app.tsx

* fix: test case

* chore: update depenedency version of @ice/webpack-config

* chore: pnpm lock up-to-date
2023-02-02 14:22:35 +08:00
ClarkXia 7b686f4f82
fix: default value of ssr (#5805)
* fix: default value of ssr

* fix: test case

Co-authored-by: ZeroLing <i@zeroling.com>
2023-01-10 22:47:24 +08:00
ClarkXia 8b98d8a8cc
refactor: server bundle alias (#5736)
* fix: refactor server bundle alias

* chore: update lock

* fix: test case

* fix: test case

* chore: changelog

* fix: optimize code

* fix: compatible with win32

* fix: compatible with win32

* fix: compatible with win32

* fix: optimize code

Co-authored-by: ZeroLing <i@zeroling.com>
2022-12-27 10:58:18 +08:00
ClarkXia 6e28b672a1
fix: load env before resolve user config (#5665)
* fix: load env before resolve user config

* chore: changelog

* chore: add env file

* Delete ice.config.mts.mjs

Co-authored-by: ZeroLing <i@zeroling.com>
2022-12-08 10:11:43 +08:00
ClarkXia 46ddc52428
fix: format core-js path (#5648)
* fix: format core-js path

* chore: test

* chore: update version

* fix: remove path import
2022-12-06 14:31:35 +08:00
ClarkXia 6bcc955876
fix: file resolve when use css module in server compiling (#5632)
* fix: file resolve of css module in server compiling

* test: add test case
2022-11-29 10:45:19 +08:00
luhc228 2000774dfa chore: add AppData type (#692) 2022-11-15 19:04:00 +08:00
水澜 6ce0835d9b refactor: app data loader (#689)
* refactor: getAppData to dataLoader

* refactor: merge data loader logic in one file

* fix: comments
2022-11-15 16:31:09 +08:00
染陌同学 36475937e8 Feat/define data loader (#643)
* feat: modify dataLoader

* feat: add type

* feat: add DataLoaderConfig

* feat: modify getData to defineDataLoader

* chore: remove defineDataLoader

* fix: fetcher shoule return promise

* fix: loader may be undefined

* fix: err loader config

* chore: modify example of pha

* feat: modify getData

* chore: modify type and mofiy options of init

* feat: modify fetcher to dataLoaderFetcher and add dataLoaderImport to entry

* chore: modify defaultDataLoaderFetcher

* chore: load data by route id

* feat: modify serverDataLoader and staticDataLoader

* feat: add fetcher when route change

* fix: deal with window undefined

* chore: modify type

* feat: try get data from cache

* feat: support useData

* feat: add defineStaticDataLoader and defineServerDataLoader

* chore: modify getData of example

* fix: should load data

* fix: fix ssg err

* fix: fix dataloader for ssg

* test: modify env of test

* fix: shoule clear cache when route changed

* fix: fix renderMode and add defult remder mode

* fix: add window

* test: add jsdom

* test: modify getData to dataLoader

* test: modify test of clientApp

* test: clear window after each test

* test: remove only

* test: remove only

* chore: modify appear

* fix: Try get data from cache when CSR

* chore: update lock

* chore: remove unused

* refactor: data loader (#685)

* refactor: set global fetcher

* refactor: set global fetcher

* fix: should not build react in data loader

* fix: test

* test: modify test

Co-authored-by: 水澜 <shuilan.cj@taobao.com>
Co-authored-by: ZeroLing <i@zeroling.com>
2022-11-15 10:33:11 +08:00
ClarkXia f9a3829e63 fix: rename getConfig as pageConfig (#684)
* fix: rename getConfig as pageConfig

* chore: optimize code

* fix: type

* fix: optimzie code
2022-11-15 10:33:11 +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
ClarkXia f0e3d570e2 feat: support query loader of raw and url (#674) 2022-11-15 10:33:11 +08:00
ClarkXia 6c34133040 fix: add process support for undefined env variables (#668) 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
luhc228 1b38b5eb43 refactor: app provider (#644)
* refactor: app Provider

* feat: add example

* fix: example warning

* fix: AppProvider to AppRuntimeProvider

* feat: miniapp AppRuntimeProvider

* fix: miniapp provider order

* chore: remove type
2022-11-15 10:33:11 +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 7fe93e3503 feat: ClientOnly component (#542)
* feat: BrowserOnly Component

* docs: BrowserOnly component docs

* docs: optimize

* feat: export useIsBrowser Hook

* feat: useIsBrowser example

* docs: useIsBrowser

* docs: typo

* chore: clientOnly

* feat: ClientOnly and useMounted

* feat: add ClientOnly test

* docs: update docs

* feat: use hooks instead of Context

* chore: import name
2022-11-15 10:32:48 +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 16b82337b2 fix: ignore with non-absoulte path (#566) 2022-11-15 10:32:43 +08:00
水澜 114373633f feat: build routes config for document render (#552)
* feat: render document by routes config

* test: downgrade to csr

* chore: rename

* refactor: load route modules after only in ssr

* fix: pha test

* fix: compat with no routes config

* fix: ensure routes config before build

* fix: test case

* fix: test timeout

* fix: cache in test case

* refactor: check routes config before server compiler

* refactor: allways generate routes config

* chore: remove dead code

* fix: reset status when init config
2022-11-15 10:32:43 +08:00
luhc228 25583ffb55 feat: enhance framework types (#545)
* feat: enhance inner types

* chore: revert type
2022-11-15 10:32:43 +08:00
NK 3e031c477b feat: miniapp (#333)
* feat(miniapp): use platform in cli to generate miniapp code

* fix: lint error

* feat(miniapp): add miniapp project

* chore: revert example code

* chore: optimize code

* feat(miniapp): migrate some packages to ice

* feat(miniapp): update swcOptions for miniapp

* chore(example): add more pages

* feat(miniapp): add miniapp runClientApp

* feat(miniapp): update compile config for miniapp

* feat(miniapp): support get app and routes config in compile

* fix(miniapp): lint warning

* feat(miniapp): support routeData/routeConfig and reduce size

* fix: lint warning

* fix: lint warning

* feat(miniapp): support global css and page css

* feat(miniapp): support css modules

* feat(miniapp): support copying assets in public dir

* feat(miniapp): support Link and getSearchParams

* feat(miniapp): use index.ts.ejs as template

* feat(miniapp): support passing params in Link

* feat(miniapp): support history in miniapp

* fix(miniapp): build without compiling server bundle

* fix(miniapp): use getRoutesConfig

* feat(miniapp): support build options like outputDir

* chore(miniapp): update miniapp examples

* feat(miniapp): support html tags

* feat(miniapp): remove taro related code

* fix(miniapp): some cases

* fix(miniapp): use require.resolve to get page loader

* chore(miniapp): update lock

* fix(miniapp): page loader check this name

* chore(miniapp): add devDependencies

* chore: update index ejs template

* refactor(miniapp): update multiple platforms logic in ice

* chore: lock regenerator-runtime version

* chore(miniapp): add ali miniapp build command

* fix(ice): set default value of platform to web

* fix(runtime): remove duplicated denpdencies

* chore: set default value of platform to web

* feat(miniapp): registerSerialization when plugin activated

* test(miniapp): suit for vitest

* chore(miniapp): add webpack-sources to bundles

* chore: clean code

* chore(miniapp): remove jest config file

* fix: lint error

* fix: add default value of outputDir

* refactor(miniapp): remove openBrowser from logMessage

* chore(miniapp): remove unnecessary ts-ignore

* fix: type error

* chore(miniapp): rename Adapter to adapter

* chore(miniapp): update interface name

* refactor: use plugins to support miniapp

* chore(miniapp): update example name

* fix: update dependencies

* feat(miniapp): add platform check in cli

* chore: update lock

* fix: remove useless platform option

* fix: lint warning

* fix: lint warning

* test: use src code in tests

* chore(miniapp): remove ||= operators

* fix(miniapp): exclude miniapp-runtime esm code

* fix(ice-cli): update platform for build command
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 ad531405a8 test: improve test case (#497)
* test: improve test case

* test: compat win32

* test: test case

* test: add test case

* test: add test case

* test: test case for rax-compat

* test: test case for routes

* fix: types error

* fix: to strict equal

* chore: remove unused props

* fix: types

* test: test case for run client app

* chore: remove empty router

* test: test case of run server app

* chore: remove log

* chore: do not remove file by test case

* fix: remove document dependency when run client app

* chore: lint

* chore: remove config

* fix: lint

* chore: lint warning

* fix: test case

* chore: update unplugin
2022-11-15 10:30:52 +08:00
ClarkXia c0c342d5d5 feat: enhance transform plugins (#502) 2022-11-15 10:30:37 +08:00
luhc228 41aee63512 feat: add splitChunks to userConfig (#454)
* feat: add splitChunks to userConfig

* docs: splitChunks

* test: splitChunks test case

* fix: splitChunk test case
2022-11-15 10:27:46 +08:00
ClarkXia 11a58ed9ae fix: compatible with win32 system (#477)
* fix: compatible with win32

* fix: lint

* chore: optimize code

* fix: test case

* fix: build-scripts version

* chore: update version

* chore: update lock file

* feat: add test case of win

* fix: node matrix

* fix: format path

* fix: win32 compatible

* fix: format path
2022-11-15 10:27:42 +08:00
ClarkXia 0345af7202 chore: remove useless devDependencies (#464) 2022-11-15 10:27:18 +08:00
ClarkXia 2dbe97a76f fix: lock regenerate-runtime path (#462) 2022-11-15 10:27:18 +08:00
ClarkXia c66f3c2e0a feat: support import history from ice (#458)
* feat: support import history from ice

* fix: test case
2022-11-15 10:27:18 +08:00
水澜 00f75371ed feat: getAppData (#375)
* feat: getAppData

* fix: remove dead code

* fix: should remove default export for app entry too

* docs: app data
2022-11-15 10:15:12 +08:00