Commit Graph

23 Commits

Author SHA1 Message Date
luhc228 1c3d3fec6c
feat: i18n plugin (#6149)
* feat: antd5 example with i18n

* feat: fusion example with i18n

* feat: init plugin-i18n

* feat: init i18n example

* chore: lock

* feat: add language selector

* feat: i18n route

* feat: getAllLocales and getDefaultLocale API

* fix: ssr render error

* feat: support auto redirect

* fix: redirect without url param

* feat: support add response handler

* chore: lock

* feat: support blockCookie option

* fix: route test

* fix: ssg error

* fix: i18n response

* feat: add server example

* chore: add basename

* chore: add headers

* feat: i18n docs

* fix: i18n plugin

* feat: enhance disable cookie

* docs: update disabledCookie documentation

* chore: update desc

* fix: param not defined

* fix: generate routes.ts

* fix: remove todo

* test: i18n

* test: i18n

* fix: lint warning

* fix: addDefineRoutesFunc to addRoutesDefinition

* chore: i18n plugin version

* chore: changelog

* feat: use modifyRenderData instead of runtimeOptions.raw

* chore: update changelog

* chore: rename param

* fix: comment

* feat: use createLogger instead of consola directly

* feat: change customRuntimeOptions type from string to object

* refactor: route id

* chore: remove unused console.log

* chore: add comment

* fix: win32 test fail

* chore: changelog
2023-04-24 10:18:53 +08:00
ClarkXia 08ef3b745c
chore: changes the cache location for Puppeteer (#5893)
* chore: changes the cache location for Puppeteer

* fix: ci

* fix: ignore file
2023-02-13 10:50:52 +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
luhc228 2e57000afc feat: keep-alive (#556)
* feat: init keep-alive plugin

* chore: update lock

* feat: add api

* chore: remove plugin

* chore: not modify code

* fix: lock

* feat: support keep-alive

* chore: lock

* chore: update component name

* chore: add ref

* chore: import name

* docs: keep-alive

* chore: line break

* chore: remove unstable prefix
2022-11-15 10:32:49 +08:00
ZeroLing 834fc97829 docs: add docs for plugin list (#589)
* docs: add docs for plugin list

* docs: update store

* docs: update to ice.js3

* docs: update docs

* docs: update
2022-11-15 10:32:48 +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
大果 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 7305be723a feat: pre bundle for dependencies (#138)
* feat: rename folder

* feat: bundle scripts

* feat: ncc

* fix: pre bundle

* chore: optimize code

* chore: terser options

* fix: test case

* fix: package fail to pack

* feat: tsChecker and eslint

* chore: ts type

* fix: pack scripts

* fix: same webpack instance (#146)

* fix: same instance of webpack

* fix: same instance of webpack
2022-11-14 19:16:51 +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
大果 42a0a374ef chore: init website (#5)
* chore: init website

* chore: rework website ci

* fix: working-directory

* chore: trigger website ci

* chore: optimize docs

* chore: remove unused md
2022-11-14 17:41:12 +08:00
鲲尘 26ffa95e90 chore: first commit 2022-11-14 17:24:15 +08:00
ClarkXia ac910ed2dc refactor: remove 2.x code 2022-11-14 17:17:45 +08:00
狒狒神 828bdec72e
chore: migrate swc (#4966)
* chore: migrate swc

* chore: update script

* chore: update lock file

* chore: update lock file
2021-12-13 17:09:05 +08:00
狒狒神 1a35f09eac
feat: bundle swc (#4645)
* feat: support prebuild swc

* chore: ci

* chore: ci

* feat: add basic test case

* feat: add @builder/swc publish

* feat: add copy binary

* chore: ci

* chore: rename workflow

* chore: rename workflow name

* chore: rename workflow name

* Build fushen-swc binaries

* chore: replace @swc/core

* chore: change swc-plugin

* chore: ci

* chore: ci

* fix: publish version

* chore: bump version

* chore: typo

* chore: ci

* chore: add changelog

* chore: ci

* chore: revert version

* chore: ci

* Build @builder/swc binaries

Co-authored-by: SoloJiang <SoloJiang@users.noreply.github.com>
Co-authored-by: ClarkXia <ClarkXia@users.noreply.github.com>
2021-09-23 14:03:34 +08:00
ClarkXia d639c67863
feat: vite mode of icejs (#4481)
* feat: upgrade build-scripts

* chore: bump build-scripts version

* feat: add vite-service and example

* feat: property priority & build command

* fix: bump version

* feat: build dist html entry

* fix: build service

* fix: registry of setup

* fix: dependencies

* feat: add basic option tranformer (#4488)

* feat: add basic option tranformer

* fix: change get webpack plugin option to get args

* fix: chain new plugin

* fix: devServer.watchOptions -> devServer.watchOptions.static.watch

* fix: clear logs

* chore: version

* fix: fs api

* fix: hooks

* chore: tag version

* 🎉 Feat: runtime and runApp (#4498)

* fix: friendly-type-imports

* fix: inline require & ice develop deps optimize

* fix: runtime module load error

* fix: same React instance

* fix: vite build service

* fix: clear unused deps

* fix: revert add isKraken env in create-app-share

* fix: webpack dev sever ts error

* fix: friendlyTypeImports tranfrom other files (such as html and css)

* fix: change hook sequence

* fix: change extra config to vite config

* fix: ts and tsx file ext and add some comment

* fix: 'count' is already declared in the upper scope in example

* fix: runtime lazy import

* fix: global is not defined

* fix: avoid defined global in ssr

* fix: window is not defined

* fix: cannot access 'createStore' before initialization

* fix: optimize code

* fix: remove renderInServer async/await

* feat: add vite plugins for babel transform (#4500)

* feat: add vite plugins for babel transform

* fix: resolve id

* chore: bump verison

* fix: vite plugins

* fix: support mpa store

* fix: remove log

Co-authored-by: Fuzzy Fade <1339184537@qq.com>
2021-07-28 17:15:48 +08:00
ClarkXia b9afe83e2a
chore: bump dependencies version (#4034)
* chore: update typescript version

* chore: bump version

* fix: remove css-hot-loader

* fix: eslint

* fix: mini-css-extract-plugin params

* fix: example lint

* fix: example lint
2021-01-25 10:18:15 +08:00
大果 4c3a4cd797
chore: remove mp scaffold from create-ice (#3912) 2020-12-14 10:48:10 +08:00
fushen 72ec1c1a32 chore: remove rax packages 2020-11-17 15:15:00 +08:00
ClarkXia 52a9b5a827 feat: optimize cli publish workflows 2020-11-11 15:11:23 +08:00
chenbin92 b6cc23ee49
fix: ignore rules (#3544) 2020-09-18 14:20:52 +08:00
chenbin92 974e0a0152
feat: support use react write miniapp (#3393) (#3344) 2020-08-06 17:48:19 +08:00
chenbin92 a2d991b001
Feat/enhance useRequest (#3243)
* feat: integration ahooks useRequest

* refactor: useRequest types

* chore: fix lint

* refactor: rename template

* docs: add useRequest api

* feat: useRequest test (#3247)

* feat: setup test environment

* feat: add request test

* feat: add useRequest test

* fix: remove codecov.yml

* fix: exclude test in tsconfig

* fix: ci scripts

* chore: optimize code

* refactor: workflows

* fix: add react-test-renderer deps

* feat: useRequest test case

* feat: codecov ci

* chore: optimize code

* chore: update yarn lock
2020-06-08 09:49:38 +08:00
思忠 eebd118c7e feat: initial project 2020-02-13 23:14:08 +08:00