Commit Graph

284 Commits

Author SHA1 Message Date
Hengchang Lu 90d1f695b8
fix: ts type error (#4781) 2021-10-21 15:41:52 +08:00
ClarkXia 36ae85073d
chore: version and changelog (#4775)
* chore: version and changelog

* chore: version

* chore: rename package

* chore: lock verison of plugin-pwa

* chore: version of webpack-dev-mock

* chore: version
2021-10-21 12:23:19 +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
ClarkXia e1b2a9c114 chore: version 2021-09-26 14:41:41 +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
Hengchang Lu d5a051601f
feat: add immer usage example (#4633) 2021-09-16 11:37:13 +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
Hengchang Lu 6ec8ebe0fa
feat: enhance debug package (#4505)
* feat: enhance debug package

* fix: build error
2021-07-28 16:47:11 +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
ClarkXia 40a4d84f78
chore: tag next version and changelog (#4447)
* chore: tag next version and changelog

* chore: versions

* chore: version

* chore: fix version

* chore: remove deprecate package

* chore: remove useless dependencies

* chore: fix demo

* chore: version

* chore: bump version

* chore: add dependencies
2021-07-12 19:48:09 +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
ClarkXia d562586c3f
chore: add repository (#4220)
* chore: add repository

* chore: update package.json of plugin-fusion (#4218)

add repo

* chore: fix repository type

Co-authored-by: 游鹿 <njuzhaoguoyan@foxmail.com>
2021-04-20 15:30:21 +08:00
Hengchang Lu dcc2d34fea
Chore: bump version (#4232) 2021-04-15 15:21:44 +08:00
Hengchang Lu 6c3b67081d
Fix: fail to check store file in Windows (#4212) 2021-04-15 11:17:53 +08:00
ClarkXia fb06b2fd7c
chore: version (#4206)
* chore: version

* chore: update lock file

* chore: version
2021-04-08 16:11:27 +08:00
Hengchang Lu 7f748fb3e9
Feat: support page store state reset (#4167)
* feat: support page store state reset

* chore: update example name

* chore: add example case

* feat: add resetPageInitialStates param

* fix: test

* fix: store test

* chore: example

* fix: restPageState

* fix: name

* fix: comment

* fix: deps

* chore: changelog

* chore: changelog

* chore: store.ts change changelog
2021-04-08 12:08:44 +08:00
Hengchang Lu 989c0f098f
feat: watch store.ts file change (#4189) 2021-04-07 10:59:27 +08:00
ClarkXia 57ac1f7297
chore: verison and changelog (#4148)
* chore: verison and changelog

* chore: bump version

* chore: verison

* chore: plugin-antd version
2021-03-10 18:07:39 +08:00
ClarkXia cc2db2090f
refactor: generate runtime module (#4132)
* refactor: generate runtime module

* fix: npm files

* feat: debug runtime as default

* fix: remove moduleName

* fix: ts lint of runtime

* fix: ts error
2021-03-09 18:12:30 +08:00
ClarkXia 1d9923403f
chore: changelog and version (#4094)
* chore: version

* chore: update version

* chore: version

* chore: changelog
2021-02-24 13:59:33 +08:00
ClarkXia b486cf07f1
feat: support react jsx runtime (#4077)
* feat: react-jsx transform

* feat: support react-jsx

* fix: babel config

* fix: default option

* fix: auto detect of jsx runtime

* feat: userConfig disableJSXTransform
2021-02-22 14:00:23 +08:00
Hengchang Lu 0d156d2e98
Hotfix: store provider in ssr lazy (#4064) 2021-01-28 14:37:16 +08:00
Hengchang Lu d96e222ca6
fix: store getInitialProps error (#4061) 2021-01-27 16:18:01 +08:00
Hengchang Lu 9be58f1c51
chore: bump plugin-store version (#4058)
* chore: bump version plugin-store

* fix: ci
2021-01-27 13:42:44 +08:00
fushen ecdd4aca09 Merge branch 'master' into release/next 2021-01-25 16:41:38 +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
fushen 752e9777d8 fix: store wrapper getInitialProps 2021-01-21 10:41:39 +08:00
ClarkXia 6cde32d08e
chore: version (#3992)
* chore: version

* chore: tag version

* chore: verison
2021-01-06 10:54:04 +08:00
Hengchang Lu 72c2c0b829
refactor: remove rax logic in plugin-store (#3975) 2021-01-05 11:36:19 +08:00
ClarkXia 0837d131da
feat: support modular import of runtime (#3982)
* feat: support modular import of runtime

* fix: check config module

* fix: consider with rax-app
2021-01-05 11:26:37 +08:00
Hengchang Lu 3407373520
feat: enhance debug store (#3984)
* feat: give warning when store or model or index file  not existed

* chore: typo

* chore: update code comment

* fix: ci

* fix: comment

* fix: ci
2021-01-05 10:58:34 +08:00
ClarkXia b284d3065b
chore: version (#3949)
* chore: version

* chore: version

* chore: update yarn.lock

* chore: add test config

* chore: version

* chore: version
2020-12-23 10:28:49 +08:00
Hengchang Lu 8fae61455c
chore: lint (#3948) 2020-12-22 16:25:09 +08:00
Hengchang Lu 1f64063d8f
feat: auto buildin icestore (#3932) 2020-12-22 15:32:13 +08:00
ClarkXia 5bd7a579d4 chore: version 2020-12-14 11:20:49 +08:00
ClarkXia 9f4b3a9eb8
refactor: support generator api for plugins (#3899) 2020-12-14 10:48:47 +08:00
ClarkXia aa9bb1f0fc Merge branch 'release-next' into chore-version 2020-12-03 15:06:32 +08:00
ClarkXia 44bba1843a
fix: export types (#3887) 2020-12-03 15:05:21 +08:00
ClarkXia 01e2d48d4a chore: version 2020-12-03 14:57:53 +08:00
ClarkXia 5d31f7215e
Release (#3811)
* feat: support uniqueName of plugin-icestark (#3804)

* feat: support uniqueName of plugin-icestark

* chore: version

* fix: update userconfig

* fix: ci error

* chore: optimize code

* fix: update userconfig (#3829)

* fix: update userconfig

* fix: ci error

* chore: optimize code

* fix: component name with dash code in store config (#3824)

* fix: returns html with UNICODE when Chinese words are passed in ssr (#3819)

* fix: ssr html decode error

* fix: ssr html decode error

* fix: cheerio decodeEntities config

* fix: package version

* fix: typo mpa (#3826)

* chore: formate yml

* fix: compatible with undefined options (#3828)

* fix: compatible with undefined options

* chore: version

* feat: inner plugin ice auth (#3805)

* feat: inner build-plugin-ice-auth

* feat: compatible with adding plugin

* fix: comment

* refactor: mpa config (#3825)

* refactor: remove inline loader of entry

* fix: format path in win

* fix: mpa entries

* fix: mpa config

* fix: default src dir when use mpa

* fix: compatible with files do not export component

* feat: support wrappers of Layout component (#3822)

* feat: support wrappers of Layout

* fix: wrapper router

* chore: remove useless code

* refactor: motify userconfig

* chore: revert minify file

* chore: optimize code

* feat: support off eslint

* feat: support framework custom cli options (#3838)

* feat: support framework custom cli options

* chore: rename config

* feat: update review

* fix: compatible with build-mpa-config

* fix: default config output dir (#3847)

* fix: same instance of task config (#3848)

* feat: ssr fallback (#3837)

* feat: support ssr fallback

* feat: support csr get ctx

* chore: getInitialContext func

* fix: location undefined

* chore: remove package.json

* chore: remove useless code

* fix: format

* fix: state

* fix: comment

* fix: lint warning

* fix: lint warning

* fix: ci

* docs: update notice of wrappers (#3849)

* chore: version (#3834)

* chore: version

* chore: plugin-mpa version

* chore: versions

* chore: plugin-store version

* chore: version

* chore: version

Co-authored-by: fushen <fushen.jzw@alibaba-inc.com>
Co-authored-by: Hengchang Lu <44047106+luhc228@users.noreply.github.com>
Co-authored-by: William <wiolem@hotmail.com>
Co-authored-by: yangfan <18767120422@163.com>
2020-11-23 14:53:22 +08:00
fushen cf43e0b163 chore: release version 2020-11-12 15:46:05 +08:00
fushen f15255c5cf fix: injectBabel 2020-11-09 16:06:44 +08:00
fushen 3f91638c09 feat: support pages which not under the src/pages 2020-10-30 16:01:17 +08:00
Hengchang Lu 6c1d7bc2de
chore: icejs v1.10.0-beta (#3737) 2020-10-29 16:17:38 +08:00
Hengchang Lu d5aa323a3d
fix: store types not existed (#3729) 2020-10-28 17:17:21 +08:00
chenbin92 9ba0ae4571
docs: replace createApp with runApp (#3643) 2020-10-21 11:09:25 +08:00
Hengchang Lu f2e8baff56
fix: rax store of null (#3641) 2020-10-13 16:14:20 +08:00
狒狒神 e1aadd4528
chore: bump version (#3622) 2020-10-12 20:56:32 +08:00
chenbin92 c3b1ad8e72
docs: update store docs (#3636)
* docs: update store docs

* docs: add tip

* docs: optimize

* docs: add types desc

* docs: export types api

* docs: rename types api

* chore: update store example
2020-10-12 17:38:03 +08:00
chenbin92 e0b150c925
feat: refactor store (#3555)
* chore: nested page with store example

* chore: add index.html

* feat: support nested layout

* chore: update nested-store example

* chore: remove jest config

* docs: update store guide

* Feat: support create app store (#3590)

* chore: typo

Co-authored-by: Hengchang Lu <44047106+luhc228@users.noreply.github.com>
Co-authored-by: luhc228 <luhengchang228@gmail.com>
2020-09-28 21:49:59 +08:00
狒狒神 907546003e
feat: the next rax app framework 2020-09-28 20:54:38 +08:00
Hengchang Lu d1be342e78
hotifx: store is undefined in class component (#3579) 2020-09-25 15:53:44 +08:00
思忠 9d1838ddc5 chore: publish icejs@1.9.0 2020-09-03 17:24:30 +08:00
思忠 73e8b81cb7 feat: support custom temp dir 2020-09-02 12:06:07 +08:00
狒狒神 821af53150
feat: support store (#3442) 2020-08-21 17:56:26 +08:00
思忠 2501c9bb68 chore: publish icejs@1.7.2 2020-08-17 10:51:31 +08:00
思忠 2eb6c33826 chore: publish icejs@1.7.1-beta 2020-08-13 16:36:37 +08:00
f00bar 159f7aa668
fix: get src dir from entry (#3422) 2020-08-13 10:52:07 +08:00
chenbin92 2272f1838c
chore: update version (#3409)
* chore: update version

* chore: use latest version
2020-08-10 14:55:42 +08:00
chenbin92 974e0a0152
feat: support use react write miniapp (#3393) (#3344) 2020-08-06 17:48:19 +08:00
思忠 468b54dfa1 v1.6.4-alpha.0 2020-07-30 10:36:39 +08:00
思忠 943b267519 v1.6.3 2020-07-09 15:53:14 +08:00
思忠 014641ef40 v1.6.3-alpha.1 2020-07-09 15:20:25 +08:00
chenbin92 4d25c5a81e
fix: statement error (#3333) 2020-07-09 15:13:58 +08:00
chenbin92 7cdd928119
fix: compatible model is empty (#3325) 2020-07-09 10:57:39 +08:00
思忠 a223f053a5 v1.6.3-alpha.0 2020-07-08 17:21:01 +08:00
sspku-yqLiu 710e75611c
feat: change module.ts to runtime.ts (#3323)
* feat:  change module.ts to runtime.ts

issue: #3286

* feat: change 'module.ts' in filenames, docs and comments to 'runtime.ts'

* fix: add WARN message when plugins using 'module.ts' & edit comment
2020-07-07 18:01:53 +08:00
思忠 c8f23b7b72 v1.6.2 2020-07-02 13:57:54 +08:00
思忠 909a39b0f8 v1.6.2-alpha.0 2020-07-02 11:54:11 +08:00
思忠 507624d291 v1.6.1 2020-06-30 11:09:45 +08:00
思忠 403bede88f v1.6.1-alpha.0 2020-06-30 10:36:23 +08:00
思忠 60a12793b7 v1.6.0 2020-06-22 16:36:39 +08:00
思忠 2643f28470 v1.6.0-alpha.2 2020-06-22 16:17:25 +08:00
Hengchang Lu c84011a98a
Feat: support prerender (#3252)
* feat: init plugin-prerender

* feat: support minify and renderer

* feat: add example

* feat: support mpa prerender

* fix: fix entryName

* docs: add prerender docs

* docs: add README.md

* docs: update docs

* fix: fix by the comment

* fix: fix ci problem

* fix: fix ci problem

* fix: fix by the comment

* docs: update docs

* docs: update docs

* docs: update docs

* v1.6.0-alpha.0

* docs: add nginx deploy docs

* docs: optimize

* docs: update prerender docs

Co-authored-by: 思忠 <chenbinbin.cb@alibaba-inc.com>
2020-06-22 14:48:13 +08:00
思忠 7b19bfbd18 v1.6.0-alpha.1 2020-06-18 11:16:03 +08:00
思忠 9699162c17 v1.5.0 2020-06-08 14:45:07 +08:00
思忠 3bda971349 v1.5.0-alpha.2 2020-06-08 12:39:10 +08:00
思忠 b5f5aa5fad v1.5.0-alpha.1 2020-06-08 10:54:26 +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
思忠 03828281ec v1.5.0-alpha.0 2020-06-04 16:39:05 +08:00
chenbin92 5e85122f0e
fix: ignore dot file (#3248)
* fix: ignore dot file

* fix: match rule
2020-06-04 10:26:42 +08:00
思忠 bebc7bc64f v1.4.0 2020-05-25 16:43:16 +08:00
思忠 a81e834cb6 v1.4.0-alpha.2 2020-05-25 15:56:35 +08:00
思忠 00a821a2c0 v1.4.0-y.0 2020-05-25 15:51:02 +08:00
思忠 a746905929 v1.4.0-alpha.1 2020-05-25 14:57:17 +08:00
思忠 c70f7eda8c v1.4.0-alpha.0 2020-05-25 09:01:52 +08:00
chenbin92 b1cb26d5bb
refactor: store getInitialStates deprecated (#3222)
* refactor: store getInitialStates deprecated

* fix: lint

* fix: getInitialStates order

* fix: lint rule

* docs: update getInitialData api
2020-05-22 13:58:14 +08:00