ClarkXia
5266fedc7b
fix: import store source before swc compiler ( #6248 )
2023-05-17 15:06:17 +08:00
ClarkXia
4763bc7666
Refactor: router ( #6123 )
...
* chore: refactor unfinished
* feat: support create router
* refactor: render mode
* fix: code splitting false
* feat: add location for icestark
* chore: remove console
* test: examples
* fix: dataloader is undefined
* fix: test
* fix: test case
* fix: test case
* fix: types
* fix: test case
* fix: lock
* fix: update lock
* fix: hydration
* fix: router
* fix: router
* chore: log
* fix: hmr
* fix: test
* fix: test
* chore: optimize code
* Update singleRoute.test.tsx
* fix: types
2023-04-13 12:01:16 +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
Albert
f4638b002d
fix: improve the robustness of StoreProviderWrapper ( #5770 )
2023-01-10 14:00:32 +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
luhc228
ee8963886b
feat: modify store to storeConfig ( #688 )
2022-11-15 19:04:24 +08:00
luhc228
d9ff53302b
fix: plugin-store will transform image ( #639 )
...
* fix: plugin-store will transform image
* feat: use regexp to filter module id
2022-11-15 10:33:10 +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
luhc228
9208dae707
refactor: import app store ( #596 )
...
* fix: throw error when no app store
* fix: ts type
* refactor: import app store
* refactor: change extraContext to runtimeOptions
* feat: call render in plugin
* refactor: optimize code
* chore: remove log
2022-11-15 10:32:49 +08:00
luhc228
3f54369bff
feat: store initialStates ( #435 )
...
* feat: store initialStates
* chore: update README
* chore: add file comment
* chore: rename type
* fix: peer dependencies
* fix: defineStoreConfig not found
* feat: support get the appData
* fix: test case
* fix: lock
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
luhc228
e7424d4cb9
chore: change disableResetPageState to resetPageState ( #505 )
...
* chore: change disableResetPageState to resetPageState
* chore: add resetPageState
2022-11-15 10:31:14 +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
luhc228
c273035c2f
fix: can not read store api from ice ( #476 )
2022-11-15 10:27:18 +08:00
luhc228
5acb8efcd6
feat: export createStore and createModel api from ice ( #445 )
2022-11-15 10:27:18 +08:00
luhc228
2ca66f5857
feat: store plugin ( #431 )
...
* feat: app store
* chore: store example
* chore: lock
* feat: init page store
* feat: update page store
* fix: disable reset page state
* feat: createModel
* test: with-store test
* fix: comment
* chore: lock
2022-11-15 10:23:01 +08:00
ClarkXia
ac910ed2dc
refactor: remove 2.x code
2022-11-14 17:17:45 +08:00
luhc228
01e8390fb2
feat: createModel API ( #5443 )
...
* feat: createModel API
* chore: plugin-store version
2022-08-09 12:12:46 +08:00
Hengchang Lu
0aed0206b4
Fix: store alias error in swc ( #5147 )
...
* fix: store alias error in swc
* feat: originSourcePath is equal to aliasKey
2022-01-17 13:37:49 +08:00
Hengchang Lu
9e2e81a428
Fix: store not work in mpa(webpack mode) ( #5144 )
...
* fix: store not work in mpa
* feat: add mpa-webpack example
* chore: example name
* chore: update comment
* fix: use rootDir to replace process.cwd()
* chore: format
2022-01-17 10:56:13 +08:00
Hengchang Lu
61b767a944
fix: plugin-store use the incorrect alias ( #5113 )
...
* fix: get alias from userConfig object directly
* fix: can't get correct alias
* fix: layout nested store not work
* fix: mpa store
* chore: version
* chore: remove default alias value
2022-01-12 16:48:26 +08:00
ClarkXia
ba90e005c2
fix: redirect import from ice in mode vite ( #4919 )
2021-11-17 17:09:35 +08:00
狒狒神
810bc9df93
chore: remove swc precompile ( #4895 )
...
* chore: remove swc precompile
* chore: lint
2021-11-15 16:21:06 +08:00
luhc228
517ef86ab1
fix: enforce value, import declaration undefined
2021-11-10 22:17:21 +08:00
luhc228
0e2fb6d76f
feat: support redirect other API in store
2021-11-10 20:15:39 +08:00
luhc228
5a6f9a1e8d
fix: comment
2021-11-10 17:02:13 +08:00
luhc228
f8e3474315
chore: add annotation
2021-11-10 16:51:45 +08:00
luhc228
50948d0c9a
fix: regexp
2021-11-10 16:43:26 +08:00
luhc228
857778e01a
fix: store error in vite HMR
2021-11-10 16:37:26 +08:00
Hengchang Lu
40ef97ff66
Fix: nested routes not render in vite ( #4787 )
...
* feat: fix: nested router not render in vite
* feat: optimize regexp
* chore: version and changelog
2021-10-26 11:10:51 +08:00
Hengchang Lu
90d1f695b8
fix: ts type error ( #4781 )
2021-10-21 15:41:52 +08:00
Hengchang Lu
2161a08244
Fix: can run project normally when first use store ( #4708 )
...
* fix: not restart after init store
* feat: add cache id
* fix: ci error
* chore: add webpack cache type
* chore: remove onHooks
* chore: add onHook
* feat: update webpack cache version
* chore: lock
* chore: temp remove webpack cache
* chore: sync run jest
* chore: add ignore pattern
* chore: add more ignore test case
* chore: remove ignore pattern
* chore: remove ignore pattern
* chore: add basic-spa test case
* chore: add mpa test
* fix: comment
* chore: add log heap usage
* chore: remove expose-gc
* chore: ignore basic-store test
* chore: update webpack config cache version
* chore: update cache config
* chore: update cache id
* chore: ignore spa example
* chore: not use merge cache
* chore: remove cache
* feat: disable swc
* chore: remove store test case
* chore: disable cache
* chore: upgrade puppeteer version
* fix: yarn-lock
* chore: update cache version
* feat: add cache merge condition
* chore: remove unnecessary code
* chore: version and changelog
* chore: version and changelog
* chore: upgrade app-core version in icejs package
* feat: use hash format webpack cache id
* feat: add jsx-runtime option to webpack cache id
* chore: lint
* fix: jest test
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2021-10-20 14:55:16 +08:00
Hengchang Lu
d25641d4c0
fix: display warning message but the page has no store ( #4693 )
2021-09-26 11:58:48 +08:00
Hengchang Lu
e003e4888f
Revert "chore: generator to Generator" ( #4690 )
...
This reverts commit c852f66002
.
2021-09-24 20:47:28 +08:00
luhc228
c852f66002
chore: generator to Generator
2021-09-24 20:17:45 +08:00
ClarkXia
7463838169
chore: remove deprecate type ( #4625 )
2021-09-15 10:38:52 +08:00
ClarkXia
1aee509ea6
fix: format match routes in win32 ( #4568 )
2021-08-23 11:10:46 +08:00
Hengchang Lu
fda00a6b72
Fix: pages/index.jsx has error when enable store ( #4556 )
...
* feat: update example
* fix: index page store error
* chore: example
* chore: format
2021-08-19 10:47:34 +08:00
Rhuzerv
ac27fb87f8
Fix: react-refresh in vite mode ( #4550 )
...
* fix: createStore recycle deps
* fix: pages file change call generator render
* fix: add pages path name watcher
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2021-08-17 20:22:36 +08:00
Hengchang Lu
20be9af38b
fix: recompile when use store ( #4551 )
...
* fix: recompile when use store
* fix: can't get the latest page names
* fix: comment
2021-08-17 20:09:43 +08:00
ClarkXia
aa5e9ddd89
feat: support style import in vite ( #4528 )
...
* feat: support style import in vite
* fix: update build-scripts
2021-08-09 12:11:14 +08:00
Hengchang Lu
948a883d64
refactor: replace route path in plugin-store ( #4501 )
...
* refactor: replace route path in plugin-store
* chore: remove babel plugin
* feat: support lazy load
* chore: example
* fix: ci
* fix: test
* fix: comment
* fix: comment
* fix: not include tsx and jsx
2021-08-04 16:40:09 +08:00
ClarkXia
ae63fe7018
fix: build error in vite mode ( #4511 )
...
* fix: default rollupOptions
* fix: resolve path of store
2021-07-30 14:13:10 +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
狒狒神
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
Rhuzerv
8badeab92b
feat: multi theme ( #4349 )
...
* feat: initial multi theme plugin and example
* feat: improve themes type tips
* fix: setAPI.tsx -> setAPI.ts
* feat: defined injectThemeCode and getThemeVars
* feat: setup injectThemes
* feat: add postcss plugin
* fix: adapt typescript 4.x -> 3.8
* feat: complie less/sass var to css-var
* fix: clear unused dependencies
* fix: plugin-store path.join type error
* fix: loader path error
* fix: plugin-theme build
* fix: multi-theme example start error
* fix: remove lodash-es
* fix: getEnableThemes return value error
* fix: wirte types file for themes type tips
* fix: themesPathList add path prefix
* fix: avoid use ts deprecated api
* fix: loss get theme variable data
* fix: clear css inline comments
* fix: fail to load runtime
* feat: optimize injectTheme process
* fix: inline comment is unknown word
* feat: empty style when theme is default
* fix: postCSS -> postcss
* fix: add lodash to dependencies list
* fix: unit test problem
* fix: clear unused var and type
* feat: add themeData runtime.value
* fix: dependency error
* chore: fix ci error
* feat: function analysis and change inject data logic
* feat: watch themes files change
* fix: modify error comments
* fix: clear postcss warning
* fix: optimize code
* fix: split utils.ts postcss node walkers ability
* fix: improve named and dir
* fix: assemble webpack config for themes inject
* chore: add comment and update README title
* feat: add initialTheme feat
* fix: optimizeChunkAssets api deprecated in webpack5
* fix: add condition for entry fileName
* fix: optimize webpack plugin
* fix: support @import in themes css files
* chore: clear outdate comment
* fix: get filename name not full
* feat: add watcher for theme files change
* fix: add theme option in build.json
* fix: getDefaultTheme in watcher parames count
* fix: optimize code and example
* fix: webpack plugin implements
* feat: adapte ice 2.0
* chore: add peerDependencies and author
* fix: theme project example
* fix: loader not sync
* fix: change postcss-import async
* fix: deps and use postcss-loader
* fix: _theme -> themeProperty
* feat: implement multi theme
* chore: add walkDeps function comment
* fix: var name conflict in same scope
* fix: type error of postcss
* feat: example add transition
* feat: add cache file
* chore: optimize code
* feat: support nest funtion complie
* fix: get css var sync
* fix: change replace variable ruler logic
* fix: file path blackList during func collection
2021-07-14 16:24:45 +08:00
Hengchang Lu
51af9c37d3
feat: upgrade @ice/store ( #4451 )
...
* refactor: plugin-store
* chore: version
* fix: not use PROJECT_TYPE
* chore: update example
* fix: ci
* chore: update example
* fix: ci
* chore: version and changelog
* chore: version
* fix: store dir
* feat: support reset page state
* chore: version
* fix: remove getPageModelPath
* fix: tempPath
2021-07-12 16:32:55 +08:00
狒狒神
89f344aac3
feat: support swc ( #4178 )
...
* feat: support swc
* feat: support swc
* chore: add default value
* chore: add context for modularImportRuntime
* chore: resolve conflict
* refactor: rework swc
* feat: swc plugin
* chore: rename example name
* chore: optimize code
* chore: update lock file
* chore: update version
* chore: optimize code
* chore: optimize code
* chore: optimize code
* chore: ci
* chore: optimize code
* chore: remove useless code
2021-07-12 12:05:05 +08:00
ClarkXia
be7adf2456
feat: runtime structure refactor ( #4346 )
...
* feat: runtime structure refactor
* fix: unknown method
* fix: error import source
* chore: lock version
* chore: optimize code
2021-07-02 16:32:42 +08:00
Hengchang Lu
6c3b67081d
Fix: fail to check store file in Windows ( #4212 )
2021-04-15 11:17:53 +08:00