Commit Graph

127 Commits

Author SHA1 Message Date
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
染陌同学 c47fa3e4de
chore: add changelog for plugin pha (#5883) 2023-02-09 18:00:19 -08:00
ClarkXia 585f093772
chore: bump version of build-scripts (#5858) 2023-02-02 20:14:06 +08:00
ClarkXia 39b181d54d
chore: changelog (#5849) 2023-02-02 17:45:34 +08:00
水澜 23f4d86bf4
refactor: html to js (#5838)
* refactor: html to js

* fix: config

* revert: keep renderToEntry

* fix: types

* refactor: simplify dist type

* chore: changelog
2023-02-02 16:47:16 +08:00
染陌同学 1b1b2bbb09
Feat/support dynamic data loader pha (#5808)
* feat: add dynamicDataLoaders

* feat: support dynimic dataLoader in PHA

* feat: remove dynamicDataLoaders

* feat: add swc config

* fix: should get key from detail

* chore: modify type

* feat: support dev server

* fix: don't remove app-worker.ts

* chore: add build-script

* chore: remove log

* chore: dealwith cr

* fix: should checkout dataloaderConfig

* chore: update lock

* chore: remove keepPlatform

* chore: modify type

* chore: update lock

* fix: modify ejs

* chore: dealwith warning
2023-02-02 15:59:54 +08:00
ZeroLing 8a94c4b503 Merge branch 'master' into release/3.1.0 2023-01-13 16:39:56 +08:00
染陌同学 ccb0d86aa0
feat: pha preload (#5796)
* feat: support preload source for PHA

* feat: support resource_prefetch to preload resource

* chore: remove htmlparser

* feat: stylesheet rel should be stylesheet

* feat: take out the page preload and assign it to root

* feat: updatelock

* chore: modify type

* chore: modify version and changelog

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2023-01-12 14:21:16 +08:00
ZeroLing 9f2ee217c2 Merge branch 'release/3.0' into release/3.1.0 2023-01-12 13:57:41 +08:00
ClarkXia b551b33e33
chore: changelog (#5813)
* chore: changelog

* chore: version
2023-01-11 18:41:37 +08:00
ZeroLing 914a5e7e55 Merge branch 'release/3.0' into release/3.1.0 2023-01-09 22:00:36 +08:00
染陌同学 d1a5bf098c
feat: support enable_expired_manifest (#5731)
* feat: support enable_expired_manifest

* feat: modify enableExpiredManifest

* test: add test for enableExpiredManifest

* chore: modify type

* chore: modify type
2023-01-04 23:45:18 -08:00
长喆 fc408b9235
Fix(plugin-pha): getRouteIdByPage (#5753)
* feat: map route page to page id

* feat: map route page to page id

* feat: finish examples

* fix: route key

* feat: add layout to dataloader

* Update manifestHelpers.ts

* feat: name staticDataLoaders
2023-01-03 22:58:14 -08:00
ClarkXia 6892bca40b
feat: update esbuild and refactor server compiler (#5708)
* feat: upate esbuild and refactor server compiler

* fix: update lock

* fix: lock

* fix: log level

* feat: support incremental compile

* chore: optimize code
2022-12-20 15:44:46 +08:00
染陌同学 a44e145088
Feat/support js entry bundle (#5615)
* feat: modify generateHtml to generateEntry

* feat: support entry

* chore: update lock

* feat: support extra script

* feat: add config for entry

* feat: support entryType

* feat: add documentToJs

* feat: remove ejs to template

* chore: modify entry to output

* feat: add dom render

* chore: update lock

* chore: should publish templates

* feat: modify type and merge config

* feat: remove setConfig for output

* chore: modify jsOutput

* feat: add paths of outputs

* fix: should get data when after.start.compile

* feat: support dev

* feat: modify dist type

* chore: modify htmlOutput

* fix: modify dirname

* chore: modify dirname

* chore: add type for __ICE__CREATE_ELEMENT

* test: add test for domRender

* feat: add renderToHTML

* chore: modify platform

* chore: version

* fix: remove dataloaderFetcher (#5687)

* fix: remove dataloaderFetcher

* chore: add changelog

* docs: add docs of cumstom render for document (#5689)

* Fix/appear ref (#5693)

* fix: fix ref of Visibility

* chore: modify version

* feat: modify type of ref

* feat: fix appear and add test

* chore: add default value to urls

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-12-18 19:40:52 -08:00
染陌同学 c72c7d3b08
feat: support PHA static dataloader to manifest (#5685)
* feat: get dataloader config from pages

* feat: Set static dataloader to data_prefetch of manifest

* feat: set static dataloader to data_prefetch of frames

* chore: dealwith lint

* feat: support loaderConfig in middleware

* feat: add getLoadersConfig in index

* chore: modify title

* test: add test for static dataloader of pha

* feat: merge loaders and dataloaderCOnfig

* feat: modify name

* chore: deal with ts

* feat: modify loaders

* feat: modify getDataloaderConfig

* feat: modify loadersconfig

* chore: modify changelog and versiion

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-12-14 19:41:51 -08:00
luhc228 e041933de4
fix: optimize log (#5688)
* fix: process exits directly when has error

* fix: log duplicated log on server compiler

* fix: can not start dev server

* chore: add error log

* chore: version and changelog

* chore: version

Co-authored-by: ZeroLing <i@zeroling.com>
2022-12-14 20:17:16 +08:00
染陌同学 0e8b583e1d
fix: plugin pha with build error (#5696)
Co-authored-by: ZeroLing <zhuoling.lcl@alibaba-inc.com>
2022-12-11 22:22:06 -08:00
ClarkXia 5aa0eb1395
chore: version and changelog (#5679) 2022-12-08 11:34:03 +08:00
染陌同学 4eaaa4098c
feat: add pha query (#5666)
* feat: add pha query

* chore: add version and changelog
2022-12-07 19:03:35 -08:00
染陌同学 e78d214427
feat: title should transform (#5667)
* feat: title should transform

* chore: add version and changelog

Co-authored-by: ZeroLing <i@zeroling.com>
2022-12-07 04:00:06 -08:00
染陌同学 25adda2eb6
fix: fix dev path for pha (#5661)
* fix: fix dev path for pha

* chore: dealwith lint

* chore: modify version and changelog
2022-12-06 23:28:10 -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
ClarkXia a1eaf9458f
fix: get route config by route id in plugin pha (#5609)
* fix: route match of plugin pha

* Update manifestHelpers.ts

* chore: changelog
2022-11-23 15:26:52 +08:00
染陌同学 3092f2ba60 feat: default value of template should be true (#694) 2022-11-15 19:04:17 +08:00
ClarkXia e21fb48509 fix: release 3.0 2022-11-15 10:37:30 +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 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
水澜 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
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 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 2b00899d5d feat: automatic JSX transform of esbuild (#490)
* fix: jsx transform of esbuild

* fix: jsx transform

* chore: optimize code
2022-11-15 10:29:03 +08:00
luhc228 02eba057c3 refactor: optimize ssr error stack (#422)
* chore: add consola to runtime

* chore: format build failure

* fix: webpack error stack

* chore: remove formatBuildFailure

* chore: remove consola

* feat: optimize server compile log

* chore: remove try catch
2022-11-15 10:27:16 +08:00
ClarkXia 0d57ab4cad feat: support getAppConfig and getRoutesConfig (#410)
* feat: remove code

* feat: get config

* fix: test case
2022-11-15 10:16:02 +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 f803a17191 fix: document is not found when generate pha manifest (#360)
* fix: document is not found when generate pha manifest

* chore: fix test case
2022-11-15 10:13:31 +08:00
ClarkXia 48603cdf8f feat: support swc options for plugin-rax-compat and onappear on rax-compat (#349)
* feat: support swc options for plugin-rax-compat

* chore: example

* test: fix test case

* test: fix test case

* test: fix test case

* fix: outputdir

* fix: onappear for no ref cases

* fix: merge options

* fix: appear polyfill

* chore: remove appear polyfill dependency

* fix: add swc helpers

* fix: onappear on rax-compat

* refactor: format code and not to use react.frowardRef

Co-authored-by: ZeroLing <zhuoling.lcl@alibaba-inc.com>
2022-11-14 19:55:00 +08:00
水澜 8f8042d0cf fix: basename in faas (#328)
* fix: basename in faas

* fix: if basename not exist

* fix: type

* fix: lint

* fix: duplicate basename

* feat: server only basename

* fix: lint

* fix: type

* fix: basename order

* fix: basename order
2022-11-14 19:54:19 +08:00
ClarkXia 5dd782f4e7 fix: options of renderHTML (#343) 2022-11-14 19:54:04 +08:00
ClarkXia 7d6c987b21 feat: pha (#337)
* feat: scaffold of pha plugin

* feat: scaffold of plugin pha

* feat: pha

* feat: manifest type

* feat: add types

* feat: add test case

* fix: optimize code and test case

* feat: add example of pha

* chore: remove yml file

* chore: bump dependencies version

* feat: pha plugin

* test: add test case

* chore: update lock file

* chore: update lock file

* chore: rename option

* fix: get multipile manifest

* chore: optimize code

* fix: add url prefix

* feat: compile appConfig for start command

* feat: optimize code

* chore: optimize document

* fix: add customDataSource

* feat: remove top level code

* fix: remove code

* fix: optimize code

* fix: optimize code

* fix: plugin

* fix: plugin order

* fix: pha

* feat: add test case

* fix: files

* fix: lint

* fix: url public for dev

* fix: jsx transform in build

* fix: fallback value

* fix: basename

* fix: minify code

* fix: basename

* fix: basename

* chore: remove log

* fix: generate pha manifest

* fix: path for page item

* fix: route id

* chore: optimize test case

* fix: default basename

* fix: split chart

* fix: regex for url

* fix: default basename

* feat: support full path

* fix: default value of url

* chore: optimize code

* chore: comments

* fix: remove exports

* chore: readme
2022-11-14 19:51:45 +08:00
ClarkXia 7bd95ad70d Revert "feat: plugin for PHA" (#336) 2022-11-14 19:51:16 +08:00
ClarkXia 2965fec735 fix: default value of url 2022-11-14 19:50:07 +08:00
ClarkXia a0fb3d1716 fix: split chart 2022-11-14 19:49:00 +08:00
ClarkXia 3e62eddfa0 chore: optimize test case 2022-11-14 19:48:42 +08:00
ClarkXia 575920592e fix: route id 2022-11-14 19:48:42 +08:00
ClarkXia 7079915745 fix: path for page item 2022-11-14 19:48:42 +08:00
ClarkXia 702dd297a3 fix: generate pha manifest 2022-11-14 19:48:42 +08:00
ClarkXia 76042d963f chore: remove log 2022-11-14 19:48:42 +08:00
ClarkXia 319dee509c fix: minify code 2022-11-14 19:48:24 +08:00
ClarkXia e2adbb9f07 fix: fallback value 2022-11-14 19:47:43 +08:00
ClarkXia c47e71d82c fix: url public for dev 2022-11-14 19:47:43 +08:00
ClarkXia 5d33c97559 fix: files 2022-11-14 19:47:16 +08:00
ClarkXia c743afb13a feat: add test case 2022-11-14 19:47:16 +08:00
ClarkXia 274721f11b fix: pha 2022-11-14 19:46:59 +08:00
ClarkXia 721830c5ce fix: plugin 2022-11-14 19:46:59 +08:00
ClarkXia 711058d8aa fix: optimize code 2022-11-14 19:46:56 +08:00
ClarkXia 7f3f39495d fix: optimize code 2022-11-14 19:46:33 +08:00
ClarkXia bde0d45f61 fix: remove code 2022-11-14 19:46:29 +08:00
ClarkXia 842ffeaac9 feat: remove top level code 2022-11-14 19:46:13 +08:00
ClarkXia ef70359673 fix: add customDataSource 2022-11-14 19:44:04 +08:00
ClarkXia 599d279165 feat: optimize code 2022-11-14 19:43:16 +08:00
ClarkXia 39dd32319c fix: add url prefix 2022-11-14 19:43:16 +08:00
ClarkXia fd858faae9 chore: optimize code 2022-11-14 19:43:16 +08:00
ClarkXia 57d4b714b0 fix: get multipile manifest 2022-11-14 19:43:16 +08:00
ClarkXia 24c179dfcc chore: rename option 2022-11-14 19:41:32 +08:00
ClarkXia ce6f850d01 test: add test case 2022-11-14 19:25:41 +08:00
ClarkXia cc5817938b feat: pha plugin 2022-11-14 19:25:38 +08:00
ClarkXia 16b88d947c chore: bump dependencies version 2022-11-14 19:25:24 +08:00
ClarkXia 46eff48ff0 fix: optimize code and test case 2022-11-14 19:23:58 +08:00
ClarkXia c6f7474762 feat: add test case 2022-11-14 19:23:26 +08:00
ClarkXia 190589143d feat: add types 2022-11-14 19:23:02 +08:00
ClarkXia d4cd31000e feat: manifest type 2022-11-14 19:23:02 +08:00
ClarkXia 6a10474dbd feat: pha 2022-11-14 19:22:08 +08:00
ClarkXia a040984b88 feat: scaffold of plugin pha 2022-11-14 19:21:11 +08:00
ClarkXia f5db81ea87 feat: scaffold of pha plugin 2022-11-14 19:20:46 +08:00