luhc228
5acb8efcd6
feat: export createStore and createModel api from ice ( #445 )
2022-11-15 10:27:18 +08:00
ClarkXia
8f7d0786fa
feat: plugin moment locales ( #425 )
...
* feat: plugin moment locales
* chore: publish config
* chore: readme
2022-11-15 10:25:00 +08:00
ClarkXia
e78d719425
fix: get default value form routes config ( #434 )
2022-11-15 10:23:01 +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
301a467fdd
feat: plugin fusion ( #424 )
...
* feat: plugin fusion
* feat: plugin fusion
* chore: publish config
2022-11-15 10:22:57 +08:00
luhc228
304c2aa112
fix: peer depenencies warning ( #420 )
...
* fix: peer depenencies warning
* chore: update pkg plugin to latest version
* chore: remove typescript package
2022-11-15 10:22:38 +08:00
luhc228
be13ee9dd8
fix: hash router preview ( #393 )
...
* feat: init example
* fix: can not render component
* chore: lock
* feat: test case
* fix: comment
* fix: test error
* fix: test case
* fix: not use the correct location in hash router
* chore: remove appConfig param
* chore: remove AppConfig type
2022-11-15 10:20:02 +08:00
ClarkXia
9a3cde783d
feat: plugin antd ( #421 )
...
* feat: plugin antd
* chore: demo
* chore: update lock
* chore: remove log
* feat: support import style
* fix: compile error
* chore: optimize dependencies
2022-11-15 10:19:56 +08:00
水澜
00f75371ed
feat: getAppData ( #375 )
...
* feat: getAppData
* fix: remove dead code
* fix: should remove default export for app entry too
* docs: app data
2022-11-15 10:15:12 +08:00
ClarkXia
7661e2967f
fix: merge swc options for sever compiler ( #382 )
...
* fix: merge swc options for sever compiler
* fix: create new object
* fix: lock @swc/core version
* chore: update lock
* fix: compile options
2022-11-15 10:15:08 +08:00
ClarkXia
dca51484c2
feat: support syntax feature by user config ( #376 )
...
* feat: support sytax feature by user config
* docs: add syntaxFeatures docs
* fix: remove sourcemap of esbuild use swc soucemap instead
* fix: default value of swc options
* fix: merge config
2022-11-15 10:14:38 +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
水澜
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
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
luhc228
4bf28c6bb5
feat: optimize server compile ( #334 )
...
* feat: support compile server bundle after the webpack compile end
* feat: support watch appConfig
* chore: update .ice to RUNTIME_TMP_DIR
* chore: optimize code
* chore: remove build condition
* chore: remove SERVER_OUTPUT
* chore: remove compileMiddleware
* chore: comment
* fix: outputDir
* fix: comment
* chore: add preBundle option
* feat: pass serverCompileTask to plugin
* fix: get serverCompileTask from extendsPluginAPI
2022-11-14 19:53:48 +08:00
ClarkXia
5cc7dc6c2b
feat: config transform ( #339 )
...
* feat: add transform
* fix: config transform
* docs: config transform
2022-11-14 19:53:32 +08:00
luhc228
9553a2209a
feat: support global style ( #237 )
...
* feat: support global style
* fix: global style path
* feat: watch global style
* fix: comment
2022-11-14 19:53:32 +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
76042d963f
chore: remove log
2022-11-14 19:48:42 +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
ClarkXia
f3fc4c702f
fix: type of ice plugin ( #302 )
...
* fix: standard for ice plugin
* feat: force mts config
2022-11-14 19:46:53 +08:00
ClarkXia
842ffeaac9
feat: remove top level code
2022-11-14 19:46:13 +08:00
ClarkXia
051cf93015
chore: optimize document
2022-11-14 19:44:04 +08:00
ClarkXia
57d4b714b0
fix: get multipile manifest
2022-11-14 19:43:16 +08:00
luhc228
50be6fa47b
Feat: defineAppConfig ( #265 )
...
* feat: defineAppConfig
* feat: watch
* feat: add defineAuthConfig
* chore: remove NodeNext
* chore: ts-expect-error
* feat: add ./*
* chore: add ts-expect-error
* fix: types error
* chore: declare runtime module
* chore: types
* fix: types
* refactor: types path
* fix: export path
2022-11-14 19:41:27 +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
d4f12f44a9
feat: add example of pha
2022-11-14 19:24:26 +08:00
ClarkXia
d4cd31000e
feat: manifest type
2022-11-14 19:23:02 +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
ZeroLing
723e0718e0
fix: test cases
2022-11-14 19:21:29 +08:00
ZeroLing
82d5ba6605
fix: remove swc helper
2022-11-14 19:21:15 +08:00
ZeroLing
b727c4ded6
chore: move to @ice/runtime/jsx-runtime
2022-11-14 19:20:46 +08:00
luhc228
48e80d9796
feat: support bundle cjs deps ( #250 )
...
* feat: support bundle cjs deps
* refactor: remove esbuild plugin
* chore: delete cache
* chore: log
* chore: defineConfig
* fix: comment
* chore: type
* fix: ICE_CORE_SSG
* chore: remove unless set.add
2022-11-14 19:19:50 +08:00
ClarkXia
ecf09cf763
feat: appExport
2022-11-14 19:18:41 +08:00
ClarkXia
0c88d42025
chore: remove useAppData
2022-11-14 19:17:54 +08:00
ClarkXia
91b87a15a4
fix: enable jsx syntax in .js file for default ( #247 )
2022-11-14 19:17:54 +08:00
ZeroLing
cd96b3fcb9
chore: restore sample project
2022-11-14 19:17:54 +08:00
ZeroLing
2d15e80f47
refactor: support unit for project
2022-11-14 19:17:53 +08:00
ZeroLing
a4fc59055f
feat: add style compat
2022-11-14 19:17:53 +08:00
ZeroLing
b4fa9e86e4
chore: optimize code style
2022-11-14 19:17:53 +08:00
ZeroLing
68fdcf8bc0
feat: impl onAppear and onDisappear
2022-11-14 19:17:53 +08:00
ZeroLing
8aa8764d06
feat: add dependency
2022-11-14 19:17:53 +08:00
ClarkXia
95cf70d639
chore: add plugin rax compat
2022-11-14 19:17:27 +08:00
ClarkXia
b10b336514
Refactor service ( #159 )
...
* feat: refactor service
* fix: functional plugin
* fix: getCompilerPlugins
* feat: add log
* fix: refactor webpack compiler
* chore: update lock
* fix: remove useless code
* fix: config type
* chore: rename folder
* chore: optimize code
* fix: mock
* fix: ssr render
* fix: types
* chore: unused vars
2022-11-14 19:17:27 +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
6480a214b9
feat: add rpx2vw postcss plugin ( #193 )
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
luhc228
f510bf65cc
fix: fs/promises module not found in node12 ( #186 )
...
* chore: fs/promises not works in node12
* chore: use fse instead fs
* fix: build error in pnpm v7
2022-11-14 19:17:22 +08:00
水澜
27599db870
refactor: getAppData ( #183 )
...
* feat: data loader
* refactor: put load logic to runtime
* feat: pass matched ids
* refactor: reuse initial context
* feat: generate loader template
* fix: name with slash
* fix: name with slash
* feat: throw error
* feat: preload app data
* refactor: initail context to request context
* chore: add comment
* chore: add comment
* fix: type
* fix: merge conflict
* refactor: get app data
* fix: conflict
* fix: csr app data
Co-authored-by: luhc228 <luhengchang228@126.com>
2022-11-14 19:17:10 +08:00
水澜
5af5199972
feat: preload data ( #158 )
...
* feat: data loader
* refactor: put load logic to runtime
* feat: pass matched ids
* refactor: reuse initial context
* feat: generate loader template
* fix: name with slash
* fix: name with slash
* feat: throw error
* feat: preload app data
* refactor: initail context to request context
* chore: add comment
* chore: add comment
* fix: type
* fix: merge conflict
* fix: types error
* fix: merge error
Co-authored-by: luhc228 <luhengchang228@126.com>
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-14 19:17:10 +08:00
水澜
704247de1e
fix: csr hydrate error ( #176 )
...
* fix: csr hydrate error
* chore: demo for csr
* refactor: update route config
* fix: lint
* chore: update lock yaml
* fix: type
* refactor: pass app to document by context
* fix: lint
* chore: comment
* fix: type
* fix: do not overwrite title if not config
* chore: rename
Co-authored-by: luhc228 <luhengchang228@126.com>
2022-11-14 19:17:10 +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
水澜
97f7388ccf
feat: suspense ssr ( #143 )
...
* feat: suspense ssr
* feat: stream render
* feat: downgrade to document
* feat: support render document only
* fix: typo
* refactor: downgrade for page
* fix: typo
* refactor: piper
* refactor: navigator
* chore: comment
* fix: typo
* feat: add log
* refactor: piper to pipe
* refactor: rename
* feat: log for error
* refactor: pipe in else
* fix: lint
* refactor: rename to pipe
* feat: add downgrade info
2022-11-14 19:16:51 +08:00
水澜
e0297618b1
refactor: route wrapper ( #135 )
...
* refactor: wrapper
* feat: support wrapper layout
* chore: demo for auth
* fix: typo
* fix: typo
* fix: typo
* fix: typo
* fix: typo
* feat: generate layout info when build
* refactor: wrapper for layout
* test: update snapshot for layout
* fix: typo
2022-11-14 19:16:51 +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
shuilan.cj
740595cce0
feat: upgrade to react 18
2022-11-14 19:16:38 +08:00
luhc228
de39aedb16
feat: cli options ( #120 )
...
* feat: support analyzer
* feat: support https
* feat: support force remove cache
* chore: config order
* chore: remove todo
* chore: self-signed-cert
* chore: self-signed option
2022-11-14 19:16:17 +08:00
ClarkXia
8f4f79dae5
feat: minify and dropLogLevel ( #119 )
...
* feat: minify and dropLogLevel
* fix: test case
2022-11-14 19:16:17 +08:00
luhc228
7701b09595
Fix: react-jsx error ( #113 )
...
* fix: react-jsx error
* chore: remove blank line
* chore: polyfills
* chore: remove rootDir
* chore: remove hasJSXRuntime function
* fix: error
* fix: error
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
luhc228
e8407ed19a
Feat: support css modules in ssr ( #43 )
...
* feat: support css module in ssr
* chore: lock
* chore: type
* fix: transform esbuild-style-plugin in jest env
* fix: test fail
* chore: transformIgnorePatterns
* chore: ci test step
* chore: -max-old-space-size
* chore: transformIgnorePatterns
* chore: transformIgnorePatterns
* chore: transformIgnorePatterns
* feat: esbuild-css-plugin
* refactor: esbuild plugins
* chore: esbuild plugin dir
* fix: build error
* fix: lint
* fix: conflict
* chore: add desc
* chore: add comment
* chore: set extract to false
* chore: add more desc
2022-11-14 19:15:46 +08:00
luhc228
3008689844
chore: defineUserConfig to defineConfig ( #110 )
2022-11-14 19:15:33 +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
d11f461d6b
refactor: global layout ( #40 )
2022-11-14 19:14:39 +08:00
ClarkXia
748adfb2c4
refactor: create @ice/app for framework ( #67 )
...
* fix: package name
* refactor: main package for ice
* fix: test case
* test: test case
* test: run context without built-in plugin
* test: add console level
* test: test case
* fix: remove built-in plugin
* test: use json file
* Revert "test: use json file"
This reverts commit be309d7df5a00fcc14fdc54fe2a63c9bce54221c.
* fix: update build-scripts
* fix: optimize code
* fix: exports field
* chore: use consola instead of console
* fix: optimize code
2022-11-14 19:14:32 +08:00
大果
4552afaec8
chore: refactor router ( #58 )
...
* chore: refactor router
* chore: add example
* fix: load all modules in first request
* fix: route module load
* chore: remove unused param
* fix: rerender twice
* fix: loadRouteModules params
Co-authored-by: luhc228 <luhengchang228@gmail.com>
2022-11-14 19:14:14 +08:00
ClarkXia
43a143de6d
feat: support defineUserConfig ( #53 )
...
* feat: support config file
* feat: config file
* feat: add config watch
* fix: createServer path
* feat: add json support
* chore: space
* fix: add browserlist and webpack bundle analyze
* fix: update package name
2022-11-14 19:13:53 +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
luhc228
de7ec7dfd3
feat: rewrite matchRoutes function
2022-11-14 19:08:44 +08:00
shuilan.cj
4a56072283
fix: aplus blocks the puppeteer load page
2022-11-14 19:08:05 +08:00
shuilan.cj
498877ccdb
refactor: root -> main
2022-11-14 19:06:40 +08:00
luhc228
e7735ec588
feat: await chunk import in CSR ( #35 )
...
* chore: remove this is undefined in esm warning
* chore: remove plugin-router
* feat: merge render
* feat: merge defaultAppConfig
* feat: support redirect without lazy
* fix: redirect error
* fix: ssr render error
* feat: add transition file
* refactor: route
* chore: update transition
* refactor: transition
* chore: ProvidePlugin
* chore: remove console
* chore: add router-dom server reference
* feat: add PageContext
* fix: comment
* chore: BrowserEntry
* chore: comment
* chore: update lock
* chore: error
* chore: loadRoutesModules
* feat: initialContext types
2022-11-14 19:05:10 +08:00
shuilan.cj
1d16997af8
fix: page config type
2022-11-14 19:03:39 +08:00
shuilan.cj
b99bf43e3a
fix: ts error
2022-11-14 19:01:14 +08:00
shuilan.cj
d43164123a
feat: get assets from manifest
2022-11-14 19:01:14 +08:00
shuilan.cj
eaeb94e782
fix: block css
2022-11-14 19:00:56 +08:00
shuilan.cj
d4cbe9182b
feat: route data
2022-11-14 18:59:05 +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
shuilan.cj
ecae77974d
fix: style path
2022-11-14 18:04:37 +08:00
shuilan.cj
763452108a
fix: lint
2022-11-14 18:03:49 +08:00
luhc228
33747c0cb8
feat: more webpack config ( #18 )
...
* feat: esm
* fix: require in esm
* fix: test fail
* feat: css loader
* feat: hmr
* feat: cache
* feat: optimization
* feat: postcss
* feat: open preview browser
* feat: assets loader
* fix: ignore swc compile document
* chore: type
* fix: test
* fix: comment
* chore: add @ice/runtime
* chore: remove example page
* chore: add openChrome.applescript
* feat: use outputDir
* fix: comment
* chore: update pnpm lock
* fix: outDir
* chore: remove document ignore
* feat: add isServer params
2022-11-14 18:01:26 +08:00
shuilan.cj
e96d5f8f7d
fix: lint
2022-11-14 18:00:23 +08:00
大果
400b31e4e6
feat: support useAppContext API ( #26 )
2022-11-14 17:54:57 +08:00
shuilan.cj
af020d04b9
feat: ssr entry
2022-11-14 17:52:55 +08:00
liuxiong.lx
72a6f3bfb7
feat: rework entry
2022-11-14 17:52:01 +08:00
大果
6bbc638e45
feat: render router ( #17 )
...
* feat: renderRouter
* fix: lint
* fix: test case
* feat: remove renderComponent
* chore: add types
* fix: scripts
* chore: build order
* chore: remove workspace from version
* chore: upgrade lock
* chore: upgrade lock
2022-11-14 17:49:04 +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
luhc228
7c171732a3
feat: use esm standard ( #14 )
...
* feat: esm
* fix: require in esm
* fix: test fail
2022-11-14 17:47:51 +08:00
ClarkXia
5d43928afe
chore: refactor package structrue ( #10 )
...
* chore: refactor package structrue
* chore: remove unexpected code
* fix: package info
* chore: fix readme
* chore: version
2022-11-14 17:45:35 +08:00
水澜
9a062c08a8
feat: render document ( #8 )
...
* feat: render document
* fix: lint
* fix: ts lint
* chore: update lock info
* fix: lint
* fix: conflict
* fix: conflict
Co-authored-by: luhc228 <luhengchang228@gmail.com>
2022-11-14 17:44:30 +08:00
luhc228
2958c633b9
fix: type error
2022-11-14 17:43:47 +08:00
ClarkXia
282543d2df
feat: basic runtime
2022-11-14 17:42:51 +08:00
luhc228
34b024a970
feat: add plugin-router
2022-11-14 17:41:47 +08:00
luhc228
75dba1b423
feat: update webpackConfig
2022-11-14 17:38:35 +08:00
luhc228
0f8b11f400
chore: temp
2022-11-14 17:37:37 +08:00
luhc228
22c7049243
feat: render react component
2022-11-14 17:37:24 +08:00
ClarkXia
7c665bee30
feat: basic icejs cli
2022-11-14 17:27:32 +08:00
ClarkXia
451699be44
fix: lint
2022-11-14 17:25:27 +08:00
ClarkXia
2fcfd8f118
fix: lint
2022-11-14 17:25:27 +08:00
鲲尘
bc43ca3300
fix: lint
2022-11-14 17:24:33 +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
luhc228
de9092eec3
feat: support nodeExternals ( #5474 )
...
* feat: support nodeExternals
* feat: support excludes
* chore: add bundled inner deps
* fix: undefined error
2022-08-30 12:17:41 +08:00
luhc228
1ee7db0419
fix: some i18n bugs ( #5400 )
...
* fix: i18n plugin not work in IE11
* feat: add setting for block cookie setting i18n locale (#5437 )
* feat: add setting for block cookie setting i18n locale
* add I18nAppConfig to IAppConfig & change appConfig key to i18n
Co-authored-by: liyidong <liyidong@baidu.com>
Co-authored-by: leo.lyd <leo.lyd@alibaba-inc.com>
* fix locale will always in default when execute history.push in cookie blocked mode (#5441 )
* feat: add setting for block cookie setting i18n locale
* add I18nAppConfig to IAppConfig & change appConfig key to i18n
* fix: fix locale will always in default when execute history.push in cookie blocked mode
Co-authored-by: liyidong <liyidong@baidu.com>
Co-authored-by: leo.lyd <leo.lyd@alibaba-inc.com>
* fix: modifyHistory params delivery error (#5442 )
* feat: add setting for block cookie setting i18n locale
* add I18nAppConfig to IAppConfig & change appConfig key to i18n
* fix: fix locale will always in default when execute history.push in cookie blocked mode
* fix: fix modifyHistory params delivery error
Co-authored-by: liyidong <liyidong@baidu.com>
Co-authored-by: leo.lyd <leo.lyd@alibaba-inc.com>
* feat: no defaultLocale return from getDetectedLocaleFromPathname & adjust detect locale sequence in getDetectedLocale function (#5458 )
* feat: add setting for block cookie setting i18n locale
* add I18nAppConfig to IAppConfig & change appConfig key to i18n
* fix: fix locale will always in default when execute history.push in cookie blocked mode
* fix: fix modifyHistory params delivery error
* feat: no defaultLocale return from getDetectedLocaleFromPathname & adjust detect locale sequence in getDetectedLocale function
Co-authored-by: liyidong <liyidong@baidu.com>
Co-authored-by: leo.lyd <leo.lyd@alibaba-inc.com>
* fix: redirect incorrect i18n page (#5461 )
* fix: redirect incorrect i18n page
* fix: eslint warning
* fix: cookie path
Co-authored-by: srhb18 <srhb18@163.com>
Co-authored-by: liyidong <liyidong@baidu.com>
Co-authored-by: leo.lyd <leo.lyd@alibaba-inc.com>
2022-08-25 15:37:17 +08:00
luhc228
201393172e
fix: not get the real component when enable i18n ( #5428 )
...
* fix: not get the real component when enable i18n
* chore: changelog
2022-08-25 15:13:50 +08:00
luhc228
01e8390fb2
feat: createModel API ( #5443 )
...
* feat: createModel API
* chore: plugin-store version
2022-08-09 12:12:46 +08:00
luhc228
b25f39a1e5
fix: not call getInitialProps method ( #5398 )
2022-07-11 17:53:00 +08:00
luhc228
f7512ce022
fix: can not get the getStaticPaths method ( #5325 )
2022-06-08 10:18:00 +08:00
那吒
545ced142a
Release: 2.6.2 ( #5255 )
...
* Feat/memory router (#5247 )
* feat: support setLocale api (#5253 )
Co-authored-by: luhc228 <44047106+luhc228@users.noreply.github.com>
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-03-31 16:38:24 +08:00
ClarkXia
3546b8e7d4
feat: support env variables ( #5164 )
...
* feat: get env files
* feat: env variables
* chore: version
* fix: compatible with task without html plugin
* fix: stringified key
* test: add test case for env
* fix: stringified key
2022-02-17 16:05:20 +08:00
ClarkXia
8d22e587d6
feat: support rename main css chunk name ( #5159 )
...
* feat: vite plugin css chunk
* feat: support rename css chunk
* fix: example
* chore: types
2022-02-17 12:15:54 +08:00
luhc228
f320c3baa4
fix: i18n ( #5151 )
...
* fix: notFound component will not render
* fix: redirect route will throw error
* chore: version
2022-01-19 14:05:06 +08:00
luhc228
79c6f69217
chore: rename redirect to autoRedirect ( #5153 )
...
* chore: rename redirect to autoRedirect
* chore: changelog
2022-01-19 13:12:24 +08:00
ClarkXia
4f833cfe86
chore: version and changelog ( #5133 )
...
* chore: changelog
* fix: dts generation
* chore: update lock
* chore: version
2022-01-17 13:57:08 +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
597ea21f76
Fix: i18n not rediect in ssr ( #5140 )
...
* fix: i18n not rediect in ssr
* feat: update test cases
* chore: remove Location typs
* chore: log when in dev
2022-01-17 10:29:13 +08:00
Hengchang Lu
46f70bb8bc
feat: i18n ( #5096 )
...
* feat: init plugin-auth
* feat: init locale example
* feat: generate locale routes
* feat: reverse providers
* feat: support get locales
* feat: support get/set locale
* chore: todo
* chore: remove index.d.ts
* feat: support ssr
* feat: support ssg
* feat: webpack-dev-server redirect
* feat: support csr redirect
* fix: activeLocale is not correct
* feat: support localeRedirect and localeRoute
* feat: modify history
* feat: common function
* feat: middleware
* fix: render data
* chore: add default locale config
* chore: remove deps
* chore: plugin version
* fix: comment
* test: add formatRoutes test
* chore: deps
* fix: could not call getInitialProps in some cases
* chore: type
* chore: type
* chore: remove comment
* fix: comment problem
* feat: support basename
* fix: can't redirect when enable basename
* chore: remove log
* chore: update peerDependencies version
* fix: can't render in ssr
* chore: locale to i18n
* fix: comment
* fix: display language error in csr
2022-01-12 20:04:01 +08:00
ClarkXia
723a8b7b25
feat: SSR in mode vite ssr ( #5045 )
...
* feat: vite ssr
* chore: fix unexpected remove
* fix: ts type
* feat: ssr build in vite mode
* chore: optimize code
* fix: optimize code
* fix: ssr in dev
* chore: version and changelog
* feat: support redirect url
* fix: vite ssr
* chore: optimize code
* chore: optimize code
* chore: update lock file
* fix: noExternal with miniapp-history
* feat: support ssg
* feat: isServer
* chore: comment
* chore: rename plugin
* chore: comment
* fix: import env file
* chore: changelog
* chore: ts lint
* fix: env path
2022-01-11 10:36:40 +08:00
大果
95fba2b129
feat: pass page props to NoAuthFallback ( #5088 )
...
* feat: pass page props to NoAuthFallback
* chore: template -> runtime
* fix: optimize code
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2021-12-30 10:22:31 +08:00
大果
b3265836ad
chore: add test case for historyApiFallback.disableDotRule ( #5066 )
...
* chore: test case for disableDotRule
* chore: git conflict
* fix: test case
2021-12-29 17:24:19 +08:00
ClarkXia
f91fb66e63
fix: enhance alias for node_modules dependencies ( #5028 )
...
* fix: enhance alias for node_modules dependencies
* chore: remove console
2021-12-15 19:08:13 +08:00
ClarkXia
f2ea7f540e
fix: error redirection when import with alias ( #5042 )
...
* fix: error redirection when import with alias
* chore: version
2021-12-15 19:07:31 +08:00
大果
da06ecb674
feat: support props.pageConfig ( #5022 )
...
* chore: add props.pageConfig test case
* feat: support props.pageConfig
* chore: fix test case
* chore: rename function
2021-12-09 14:37:15 +08:00
ClarkXia
d369745d41
fix: pre bundle webpack-dev-server and webpack loaders ( #5019 )
...
* fix: pre bundle webpack-dev-server and webpack loaders
* chore: optimize code
* chore: bump version
* chore: bump version
* chore: version
2021-12-08 15:19:19 +08:00
ClarkXia
967e09f87a
fix: avoid error when disableRuntime ( #5002 )
2021-12-03 14:52:10 +08:00
大果
32a56a2ee5
refactor: optimize router ( #4814 )
...
* chore: add useful log for router
* fix: renderComponent -> app.renderComponent
* fix: renderComponent -> app.renderComponent
* feat: spa support renderComponent
* chore: add example
* chore: build-plugin-app-core remove npmlog
* feat: support disable request plugin
* feat: wrapper page in plugin-app-core(not yet plugin-router)
* chore: optimize examples
* chore: move wrapper page to plugin-react-app
* chore: optimize router log
* feat: register enableRouter in runtime
* fix: enableRouter typo error
* feat: add mpa to runtime buildConfig
* chore: runtime buildConfig.router -> enableRouter
* chore: optimize example
* chore: bump version and add changelog
* fix: ts type
* fix: example app.renderComponent
* fix: eslint and remove log
* test: add icestark-layout test case
* chore: try test case
* fix: addProvider not work
* chore: add store test case
* chore: try test case
* chore: try test case
* chore: try test case
* chore: add npm install before test
* chore: enable all test
* chore: fix test install
* feat: ssr search params (#4987 )
* feat: ssr search params
* feat: support renderComponent ssr
* chore: add comment
* feat: add enableRouter to context
* chore: add changelog
* fix: ssr error
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
Co-authored-by: 狒狒神 <fushen.jzw@alibaba-inc.com>
2021-12-02 10:44:03 +08:00
ClarkXia
d667d5c92c
fix: support transform proxy.pathRewrite ( #4920 )
2021-11-17 17:39:23 +08:00
ClarkXia
3ebb199f9f
feat: support nested rule in css ( #4876 )
2021-11-16 17:58:29 +08:00
Hengchang Lu
c46c6f35ca
Feat: bundle ice d.ts ( #4809 )
...
* feat: update example
* feat: support pre-bundle ice dts
* feat: rename to generate-dts
* feat: postinstall copy dts to ice temp dir
* fix: dts file not exists
* chore: rename script
* chore: add dts-generation example
2021-11-15 18:54:42 +08:00
ClarkXia
0feaddb8ef
Merge branch 'master' into release/2.2.0
2021-11-12 17:48:14 +08:00
luhc228
50948d0c9a
fix: regexp
2021-11-10 16:43:26 +08:00
Hengchang Lu
88e6d26d9a
fix: ssr not works in promissory routes ( #4874 )
...
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2021-11-09 11:04:04 +08:00
那吒
77df6df968
feat: 🎸 support jsx-plus in vite mode ( #4825 )
...
* feat: 🎸 support jsx-plus in vite mode
✅ Closes : #4768
2021-11-04 15:19:53 +08:00
ClarkXia
558c5fb8c3
Merge branch 'master' into release/2.1.1
2021-10-26 11:22:13 +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
ClarkXia
e09ab56fd2
feat: plugin for ignore style import ( #4776 )
...
* feat: init plugin
* feat: plugin for ignore style import
* chore: remove console
2021-10-25 11:49:56 +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
5b9988d84d
feat: vite plugin of tsChecker ( #4740 )
...
* feat: ts checker
* feat: support ts checker
* chore: optimize code
* chore: add dependencies
* fix: optimize code
* fix: optimize code
2021-10-14 10:39:49 +08:00
ClarkXia
9a4ba117cc
Merge branch 'master' into release/2.x
2021-10-11 17:58:47 +08:00
狒狒神
b98e872bba
Fix: swc error with build mode ( #4728 )
...
* fix: minify error
* fix: example react-jsx
* Build @builder/swc binaries
* chore: add changelog
* Build @builder/swc binaries
* chore: update version
* Build @builder/swc binaries
Co-authored-by: SoloJiang <SoloJiang@users.noreply.github.com>
Co-authored-by: ClarkXia <ClarkXia@users.noreply.github.com>
2021-10-11 16:07:34 +08:00
Hengchang Lu
9b9f0cb50c
fix: Component.getInitialProps function isn't be executed ( #4682 )
...
* fix: component.getInitialProps function isn't be executed
* fix: can't get route.getInitialProps
2021-09-26 14:28:10 +08:00
ClarkXia
a7e4841fd6
fix: theme icon in vite mode ( #4683 )
2021-09-26 13:15:47 +08:00
ClarkXia
455654b236
feat: moment locales in vite mode ( #4685 )
...
* fix: moment locale
* feat: moment locales in vite mode
2021-09-26 13:14:40 +08:00
ClarkXia
e8e4864365
fix: set history value after initHistory ( #4694 )
2021-09-26 13:14:24 +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
dbe6438e63
feat: lock axios version ( #4640 )
...
* feat: lock axios version
* chore: verison
2021-09-17 11:51:46 +08:00
Hengchang Lu
d5a051601f
feat: add immer usage example ( #4633 )
2021-09-16 11:37:13 +08:00
ClarkXia
c4cd96fb41
fix: remove runtime config of logger ( #4622 )
...
* fix: remove runtime config of logger
* fix: logger
* fix: log level
2021-09-15 17:17:38 +08:00
ClarkXia
9a3788f3c9
fix: update auth ( #4624 )
...
* fix: update auth
* fix: remove console
2021-09-15 17:16:44 +08:00
Hengchang Lu
6a183bf26a
chore: not generate server loadable stats file ( #4626 )
...
* chore: not generate server loadable stats file
* fix: remove node_modules in setup:skip scripts
2021-09-15 17:16:28 +08:00
ClarkXia
53b4e31664
fix: runtime file generate by icestark ( #4619 )
2021-09-13 14:44:05 +08:00
那吒
8338eb3eb1
feat: 🎸 support es module for ice.js ( #4603 )
...
* feat: 🎸 support es module for ice.js
* feat: 🎸 yarn lock
* test: 💍 fix conflict
* feat: 🎸 fix entries
* feat: 🎸 add html for icestark
* feat: 🎸 remove log
* feat: 🎸 judge by ext
* refactor: 💡 refact code
* refactor: 💡 upgrade examples and log
* feat: 🎸 update version
* chore: 🤖 yarn locak
* chore: 🤖 yarn locak
* feat: 🎸 entries types
* chore: 🤖 changelog
2021-09-10 16:47:15 +08:00
那吒
5cd6c97f97
feat: pwa ( #4490 )
...
* feat: 🎸 pwa init
* feat: 🎸 temp release
* feat: 🎸 add scope test
* fix: 🐛 url for swPath
* feat: 🎸 support dev and manifest
* feat: 🎸 fix code
* ci: 🎡 pass ci
* chore: 🤖 remove useless pkg and pass ci
* chore: 🤖 pass ci
* feat: 🎸 update
* refactor: 💡 remove console.log
* feat: 🎸 add html-wepback-plugin to peerDedencies
* feat: 🎸 compatible 2.x
* refactor: 💡 compatible 2.x
* refactor: 💡 compatible to pwa
* refactor: 💡 remove lint
* feat: 🎸 add removed yarn locak
* chore: 🤖 update yarn lock
* feat: 🎸 add to ice2.x
* feat: 🎸 add lock
* chore: 🤖 yarn.lock
* chore: 🤖 pass ci
* chore: 🤖 changelog
* feat: 🎸 log
* feat: 🎸 change other version
2021-09-10 12:02:54 +08:00
ClarkXia
336dfc3f91
fix: proxy in vite mode ( #4618 )
2021-09-10 11:58:46 +08:00
ClarkXia
24978dffe2
fix: config auth by static props of component ( #4614 )
...
* fix: config auth by static props of component
* fix: optimize code
2021-09-09 20:15:50 +08:00
ClarkXia
6b7f3eae31
fix: compatible with plugin-icestark ( #4597 )
...
* fix: compatible with plugin-icestark
2021-09-03 14:23:52 +08:00
ClarkXia
ba411439a4
feat: mock for vite ( #4595 )
2021-09-03 10:35:49 +08:00
ClarkXia
5e640854d5
feat: refactor config of minify ( #4578 )
...
* feat: refactor config of minify
* fix: minify in vite
* fix: typo
2021-08-30 14:43:02 +08:00
Rhuzerv
04eb146b1e
fix: ignore html in mpa ( #4582 )
2021-08-30 11:03:08 +08:00
Rhuzerv
f3f8d09e38
fix: unable import svg and more files in webpack mode ( #4576 )
2021-08-25 20:29:07 +08:00
ClarkXia
a6ca85493e
chore: bump verison of build-scripts ( #4575 )
2021-08-25 20:25:59 +08:00
Hengchang Lu
575f9b19ba
Feat: ssg ( #4542 )
2021-08-25 11:07:31 +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
7cfeb54fa9
feat: vite MPA & performance ( #4538 )
...
* fix: remove friendly-type-imports
* fix: clear file that be injected react-fast-refresh in runtime
* feat: add historyApiFallback
* feat: refact plugins dir
* fix: improve spa plugin
* fix: remove unused code
* fix: remove unused options
* feat: add mpa setValue
* fix: refactor opdEntries api
* fix: can’t open url
* feat: remove generate html in dev
* fix: runApp path import fixed
* feat: vite:importPlugin support spa and mpa
* fix: historyApiFallback option
* fix: optimize code
* feat: add vite x mpa openPage
2021-08-16 11:01:17 +08:00
ClarkXia
2c90defa43
fix: config webpack runtime target ( #4540 )
2021-08-12 12:13:21 +08:00
Rhuzerv
10bd717d20
fix: polyfill file in hash and outputAssetsPath ( #4533 )
...
* fix: polyfill be control by hash
* fix: polyfill path in html and adapt outputAssetsPath
* fix: deps check for fast-glob
2021-08-10 11:28:54 +08:00
ClarkXia
664736a546
feat: vite plugin for import component style ( #4527 )
...
* feat: vite plugin for import component style
* chore: update dependencies
* chore: dependencies
* fix: add component style plugin
* fix: test case
* chore: lock file
2021-08-09 14:28:18 +08:00
Rhuzerv
47913a40da
feat: transform some ice config to vite config ( #4519 )
...
* feat: add hash outputAssetsPath minify
* feat: remove empty dir
* feat: add postcss option
* feat: add polyfill plugin and option
* feat: add ignoreHtmlTemplate
* feat: add vendor config
* feat: add vite analyzer
* fix: remove ice-stats
* fix: optimize code
* fix: optimize comment and condition
2021-08-06 15:31:43 +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
8f523203e2
feat: support specify minifier by config minify ( #4523 )
2021-08-04 16:39:29 +08:00
狒狒神
401839d78a
feat: support pre compile by swc ( #4509 )
...
* feat: support pre compile by swc
* feat: parse mutiple source
2021-07-29 16:03:30 +08:00
狒狒神
9908f6fa30
refactor: rework logger plugin ( #4497 )
...
* feat: support dropLogLevel
* chore: change examples
* chore: optimize deps
* chore: remove useless code
* chore: optimize code
* chore: change default value
2021-07-29 15:48:22 +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
ce66443f35
fix: import declartions and devServer ( #4489 )
2021-07-22 14:52:43 +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
ClarkXia
38162eeefb
Merge branch 'master' into release/2.0.0
2021-07-19 19:35:09 +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
ClarkXia
0ba91458af
chore: deprecate packages and api ( #4452 )
...
* chore: deprecate packages and api
* fix: upgrade copy-webpack-plugin
* chore: dependencies
* fix: remove deprecate api call
* fix: revert copy-webpack-plugin upgrade
* feat: upgrade copy-webpack-plugin
* fix: noErrorOnMissing for copy plugin
2021-07-12 14:46:03 +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
Rhuzerv
9916a62e89
refactor: build-plugin-ice-auth remove @ice/store ( #4453 )
...
* chore: verison and changelog
* fix: some typo and type
* feat: remove icestore
* fix: add Props type with FC
* fix: version and setAuth api
* fix: withAuth and Wrapper
2021-07-09 19:00:41 +08:00
ClarkXia
2460492e3c
fix: upgrade dependencies pack ( #4442 )
2021-07-08 15:01:56 +08:00
ClarkXia
1ca81deeea
feat: module federation for development ( #4382 )
...
* feat: remote runtime
* feat: config webpack when active remote runtime
* fix: mf config
* feat: module federation for development
* chore: version check
* fix: ci
* fix: remote compile
* fix: babel error
* fix: remove console
* fix: update lock file
* fix: update lock file
* fix: optimize code
* fix: optimize code
* fix: optimize code
2021-07-07 21:23:52 +08:00
Rhuzerv
afb2178290
feat: improve router configuration ( #4364 )
...
* feat: add centre2Comp function
* fix: clear unused log
* fix: lazy load components
* fix: adapted loadable components
* fix: set loadable component property error
* fix: clear unused code
* feat: add route type
* fix: avoid named conflict
* fix: ssr getInitialProps executed in server
* chore: modify example router setting for CI
* chore: verison and changelog
* fix: clear unused comment
* fix: getComponentByPath return usefull value
* feat: add setComponentAttr function
* Revert "chore: verison and changelog"
This reverts commit be81708402
.
* chore: add changelog
2021-07-05 11:17:23 +08:00
ClarkXia
6a9ef0df47
feat: remove deprecated configs ( #4359 )
...
* feat: remove deprecated configs
* fix: relative path
2021-07-05 11:09:20 +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
大果
b818ddcfdc
feat: support axios cancel ( #4415 )
...
* feat: support axios.CancelToken when use request
* chore: remove request.cancel
2021-06-30 22:36:51 +08:00
大果
d1200bddb5
fix: make appConfig.app.rootId works when ssr ( #4407 )
...
* fix(eslint): auto typo
* fix(eslint): remove auto format
2021-06-29 14:29:50 +08:00
ClarkXia
a6667c7d5b
fix: postcss version
2021-06-29 11:50:37 +08:00
ClarkXia
8f0b4c9a09
Merge branch 'master' into release/2.0.0
2021-05-24 15:24:57 +08:00
ClarkXia
55f8ee029a
feat: upgrade packages for webpack 5 ( #4245 )
...
* feat: support compile dependencies
* chore: revert modify
* fix: dependency check
* fix: plugin resolver
* fix: remove build task to avoid oom
* chore: remove code
* chore: update yarn.lock
* chore: bump version
* fix: teser plugin
* test: user config
* fix: esbuild
* chore: bump deps version
* feat: support a switch between webpack versions
* fix: test case
* fix: test case
* fix: update dependencies
* fix: test case of css-assets
* chore: remove dev test
* fix: support disable fs cache
* fix: built-in webpack 5
* fix: update @builder/pack
* fix: remove duplicate babel plugin
* fix: update builder pack
* fix: postcss options
* fix: css-loader options
* fix: node excute version
* chore: ignore case change
* fix: example commands
* fix: update webpack config
* feat: update dependency version
* fix: skip version check
2021-05-24 11:55:33 +08:00
ClarkXia
694227647b
feat: devServer rewrites rule for mpa development ( #4314 )
...
* feat: devServer rewrites rule for mpa development
* docs: update mpa docs
2021-05-19 10:53:23 +08:00
Hengchang Lu
7862ef52b9
Fix: not generate server bundle ( #4213 )
2021-04-15 11:18:14 +08:00