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
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
ZeroLing
f46241fe75
Fix/compat rax element ( #5847 )
...
* fix: dynamic import works in app.tsx
* fix: test case
* chore: update depenedency version of @ice/webpack-config
* refactor: rax-compat jsx-runtime
* chore: add CHANGELOG and update version of rax-compat
* chore: pnpm lock up-to-date
* fix: puppteer update
2023-02-01 23:12:21 -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
5f2433abd3
fix: pass a timeout value for long-running test ( #5604 )
...
* fix: pass a timeout value for long-running test
* fix: configure testTimeout
2022-11-22 16:43:03 +08:00
ClarkXia
9f57caffb4
fix: duplicate assets in document output ( #646 )
...
* fix: duplicate assets in document output
* fix: add test case
* chore: typo
2022-11-15 10:33:11 +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
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
c8b4db3cd4
test: fix routes-generate unit test timeout ( #531 )
...
* test: fix routes-generate timeout
* refactor: optimize page.push()
2022-11-15 10:31:55 +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
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
b19b5c586f
Feat: remove data loader ( #379 )
...
* feat: regenerate config file
* feat: add data loader plugin
* feat: compile data loader
* feat: remove data-loader
* chore: remove useless file
* fix: remove useless code
* fix: remove minify
* fix: watch app.ts
* chore: remove log
2022-11-15 10:15:15 +08:00
水澜
1d1bb89778
refactor: swc plugin ( #346 )
...
* fix: basename in faas
* fix: if basename not exist
* refactor: swc plugin
* fix: deps
* fix: plugin path
* fix: swc plugin path
* fix: lock file
* fix: conflict
* fix: transform jsx by default
* feat: const modules
* fix: lock file
* feat: keep platform
* fix: uppercase first letter
* chore: comment for swc config
* revert: prebunlde
* revert: regenerator config
* chore: map from swc is string
* fix: beta version
* test: keep platform
2022-11-15 10:13:53 +08:00
水澜
0152f33742
feat: get server data ( #288 )
...
* fix: lint
* feat: getStatiData getServerData
* refactor: distinguish static env
* test: get static data
* fix: ssr runtime env
* fix: ssr runtime env
* fix: fliter ssr runtime env
* fix: routes data may be null
* fix: return empty object if getStaticData not exists
* fix: throw error when generate html
* fix: env order
* refactor: env name
* refactor: ssg option
* refactor: get hydrate info by userConfig
* fix: lint
* fix: lint
* fix: lint
* refactor: static generation to render mode
* refactor: reset ssr env in runtime
* refactor: isCSR to csr
* fix: type
2022-11-14 19:48:13 +08:00
水澜
2eac971c1b
feat: data loader shaking ( #246 )
...
* fix: lint
* feat: apply swc transform to esbuild
* chore: updata lock file
* refactor: rename params
* fix: types
* fix: add data loader to entry
* fix: add data loader after runtime
* feat: support config exports for ssr
* fix: conflict
* chore: remove debug info
* fix: transform page entry only
* fix: file extension
* fix: file extension
* revert: document
* fix: side effects
* feat: filter pages without getData
* feat: bundle optimization in dev mod
* refactor: side effects is not needed
* refactor: pass swc options to server compiler
* chore: comment
* refactor: runtime chunk is no more needed
* refactor: render data loader according to manifest
* test: data-loader
* chore: rename
* refactor: jsxTransform
* chore: update swc plugin version
* chore: update lock file
* fix: add jsx dev runtime
* chore: update swc plugin version
Co-authored-by: ZeroLing <zhuoling.lcl@alibaba-inc.com>
2022-11-14 19:22:57 +08:00
ClarkXia
070e707944
feat: serve static assets ( #164 )
...
* feat: server static assets
* chore: update lock
* fix: dev server
* chore: remove log
* fix: middleware order
* chore: lock file
* chore: types
* chore: types
2022-11-14 19:17:25 +08:00
luhc228
19b00c1276
feat: mock ( #161 )
...
* feat: support get mock data
* feat: middleware
* feat: support watch mock dir file change
* chore: lock
* fix: mock
* chore: lint
* feat: put mock middleware to first
* feat: support mock exclude
* fix: app.addProvider not be added (#190 )
* feat: app.addProvider not be executed
* fix: still excute when error
* chore: skip test
2022-11-14 19:17:25 +08:00
大果
69c7ecb251
feat: support tree-shaking react-router deps when only one route ( #86 )
...
* feat: support tree-shaking react-router deps when only one route
* chore: optimize history API
* fix: typo error
* chore: make esbuild compile @ice/runtime add inject env vars
* chore: make esbuild compile @ice/runtime add inject env vars
* chore: resolve conflict
* feat: mock react-router api when disable router
* feat: env
* fix: test
* feat: support dotenv
* chore: add stringify
* chore: lock build-scripts
* feat: add removeHistoryDeadCode userConfig
* fix: duplicate register of routes
* fix: default value of define
* chore: optimize code
* fix: typo
* chore: upgrade react
* fix: code
* chore: optimize matchRoutes
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-14 19:17:06 +08:00
ClarkXia
8f4f79dae5
feat: minify and dropLogLevel ( #119 )
...
* feat: minify and dropLogLevel
* fix: test case
2022-11-14 19:16:17 +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
b50d478103
feat: optimize output folder ( #115 )
...
* feat: optimize folder
* fix: assets transform
* fix: optimze code
* fix: optimize code
2022-11-14 19:15:57 +08:00
luhc228
54163342ef
Feat: define routes and ignore route files ( #69 )
...
* feat: support define routes
* fix: test
* fix: test
* chore: undefined type
* fix: conflict
* chore: remove pages str from route id
* fix: watch route change
* fix: warn
* fix: test
* fix: test
* chore: example
* chore: add route-gen example
* feat: add integration test
* chore: test
* chore: update config file
* chore: remove pnpm cache
* chore: test
* chore: remove test:ci from ci workflow
* chore: update build-scripts version
* chore: build fixture
* chore: remove devServer test
* chore: buildFixture
* feat: add vitest
* chore: add ts-ignore
* chore: node ci version
* chore: comment bundle analyzer
* chore: add test timeout
* fix: lint
* chore: remove threads
* chore: set maxThreads and minThreads
* chore: add maxConcurrency
* chore: remove coverage
* chore: threads
* chore: set threads to false
* fix: conflict
* fix: comment
2022-11-14 19:15:57 +08:00
水澜
525142f9d4
refactor: hydrate document ( #74 )
...
* feat: update page config after link
* Rename Document.tsx to document.tsx
* chore: add comment
* test: routing
* fix: test utils of puppeteer page
* test: update pageconfig after route
* chore: add origin source
* fix: meta tag
* fix: add s
* feat: reuse the links already loaded
* refactor: hydrate document
* refactor: pass data by app context
* refactor: get assets in document
* refactor: pass app as children
* refactor: use app context
* revert: document
* refactor: pass document by app context
* Rename document.tsx to Document.tsx
* fix: hydrate error
* chore: add comment
* feat: toggle for ssr
* refactor: entry options
* refactor: merge simple functions
* feat: downgrade to csr
* refactor: ssr entry
* fix: file name
* fix: remove deadcode
* Rename generateHtml.ts to generateHTML.ts
* fix: remove deadcode
* fix: remove deadcode
* refactor: remove block scripts
* feat: pass ssr flag to csr
* fix: remove ssg flag
* fix: spelling
* refactor: pass ssr flag to hydrate
* chore: add todo for runtime
* fix: typo
* chore: add todo for load links
* chore: send html for send html
* refactor: remove config for custom rootId
* feat: load page assets
* feat: ssr config
* refactor: disable csr hydrate warning
* chore: add issue link
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-14 19:15:29 +08:00
luhc228
ab9c50913b
test: use vitest instead of jest ( #75 )
...
* test: use vitest
* chore: update test script in ci.yml
* chore: remove coverage
* chore: remove max-old-space-size
* chore: not use threads
* chore: add maxThreads
* chore: set maxThreads to 2
* chore: set to node 16
* chore: set threads to false
* chore: add coverage
* chore: max-old-space-size
2022-11-14 19:15:00 +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
shuilan.cj
eb1ec431f9
fix: enable build test
2022-11-14 19:05:51 +08:00
shuilan.cj
b36e9ddbb6
fix: enable build test
2022-11-14 19:05:51 +08:00
shuilan.cj
d6ad0e7b8a
chore: log test result
2022-11-14 19:03:43 +08:00
shuilan.cj
5995c18753
chore: log test result
2022-11-14 19:03:43 +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