Commit Graph

683 Commits

Author SHA1 Message Date
ClarkXia 2ad98a0910
Merge pull request #553 from ice-lab/release-next
Release-rc.4
2022-10-13 16:22:56 +08:00
luhc228 22d9b21118
feat: add sync command log (#579) 2022-10-12 17:31:24 +08:00
luhc228 f29f6a62b4
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-10-12 17:07:23 +08:00
ClarkXia ffac38e1f1
fix: optimize html output (#569)
* fix: optimize html output

* fix: test case

* fix: optimize code
2022-10-12 14:05:00 +08:00
ClarkXia 541b4e52cf
Refactor: plugin for develop miniapp (#582)
* refactor: add plugin for miniapp development

* fix: format plugin

* fix: update build-scripts

* fix: generator api
2022-10-12 11:58:34 +08:00
luhc228 d27a908582
fix: css chunk filename (#578)
* fix: css-chunk-filename

* fix: chunkFilename same as filename logic
2022-10-11 17:42:53 +08:00
luhc228 f349249787
test: add defineJestConfig and defineVitestConfig test cases (#564)
* test: add jest test case

* test: add defineVitestConfig test case
2022-10-09 15:20:21 +08:00
ClarkXia 7cebf0f238
fix: ignore with non-absoulte path (#566) 2022-09-28 18:12:08 +08:00
NK ede382df9b
feat: add EntryDependency in compiled webpack (#567) 2022-09-28 17:58:13 +08:00
ClarkXia 181bb0bac6
fix: remove useless config in document (#535)
* fix: remove useless config in document

* chore: optimize code

* fix: optimize code
2022-09-28 16:53:39 +08:00
ClarkXia a8f2d2ac70
chore: update @swc/core for stable minify (#563)
* chore: update @swc/core for stable minify

* fix: lock plugin version

* chore: update lock

* fix: route type

* fix: lint
2022-09-28 16:00:42 +08:00
水澜 e730071e22
feat: build routes config for document render (#552)
* feat: render document by routes config

* test: downgrade to csr

* chore: rename

* refactor: load route modules after only in ssr

* fix: pha test

* fix: compat with no routes config

* fix: ensure routes config before build

* fix: test case

* fix: test timeout

* fix: cache in test case

* refactor: check routes config before server compiler

* refactor: allways generate routes config

* chore: remove dead code

* fix: reset status when init config
2022-09-28 14:00:09 +08:00
ClarkXia 264689355c
feat: optimize dependencies (#544)
* fix: optimize dependencies

* fix: optimize dependecies

* fix: update lock

* fix: remove ts which packed

* fix: loader-utils
2022-09-27 16:18:27 +08:00
ClarkXia 1ca882a1bd
fix: get assets mainfest from compilation (#534)
* fix: get assets mainfest from compilation

* fix: mark as virtual module

* chore: optimize code

* chore: optimize code

* fix: optimize code

* chore: optimize code

* chore: remove dead code
2022-09-27 10:50:37 +08:00
NK 34a83a6552
fix(miniapp): lint warning (#562) 2022-09-26 17:01:07 +08:00
luhc228 c0971df811
feat: enhance framework types (#545)
* feat: enhance inner types

* chore: revert type
2022-09-26 16:57:21 +08:00
luhc228 a8a38ab7d8
docs: auth (#528)
* docs: auth

* fix: build error

* feat: remove api auth
2022-09-26 16:15:55 +08:00
luhc228 7c85915a7f
docs: store (#504)
* docs: init

* feat: update store docs

* fix: diff syntax

* docs: add example link

* chore: summary name

* docs: optimize store doc

* docs: remove reference

* docs: remove preState

* docs: decorator
2022-09-26 16:14:50 +08:00
luhc228 c93c6de334
docs: memory router (#548) 2022-09-26 16:05:06 +08:00
NK 83f9a2b111
feat: miniapp (#333)
* feat(miniapp): use platform in cli to generate miniapp code

* fix: lint error

* feat(miniapp): add miniapp project

* chore: revert example code

* chore: optimize code

* feat(miniapp): migrate some packages to ice

* feat(miniapp): update swcOptions for miniapp

* chore(example): add more pages

* feat(miniapp): add miniapp runClientApp

* feat(miniapp): update compile config for miniapp

* feat(miniapp): support get app and routes config in compile

* fix(miniapp): lint warning

* feat(miniapp): support routeData/routeConfig and reduce size

* fix: lint warning

* fix: lint warning

* feat(miniapp): support global css and page css

* feat(miniapp): support css modules

* feat(miniapp): support copying assets in public dir

* feat(miniapp): support Link and getSearchParams

* feat(miniapp): use index.ts.ejs as template

* feat(miniapp): support passing params in Link

* feat(miniapp): support history in miniapp

* fix(miniapp): build without compiling server bundle

* fix(miniapp): use getRoutesConfig

* feat(miniapp): support build options like outputDir

* chore(miniapp): update miniapp examples

* feat(miniapp): support html tags

* feat(miniapp): remove taro related code

* fix(miniapp): some cases

* fix(miniapp): use require.resolve to get page loader

* chore(miniapp): update lock

* fix(miniapp): page loader check this name

* chore(miniapp): add devDependencies

* chore: update index ejs template

* refactor(miniapp): update multiple platforms logic in ice

* chore: lock regenerator-runtime version

* chore(miniapp): add ali miniapp build command

* fix(ice): set default value of platform to web

* fix(runtime): remove duplicated denpdencies

* chore: set default value of platform to web

* feat(miniapp): registerSerialization when plugin activated

* test(miniapp): suit for vitest

* chore(miniapp): add webpack-sources to bundles

* chore: clean code

* chore(miniapp): remove jest config file

* fix: lint error

* fix: add default value of outputDir

* refactor(miniapp): remove openBrowser from logMessage

* chore(miniapp): remove unnecessary ts-ignore

* fix: type error

* chore(miniapp): rename Adapter to adapter

* chore(miniapp): update interface name

* refactor: use plugins to support miniapp

* chore(miniapp): update example name

* fix: update dependencies

* feat(miniapp): add platform check in cli

* chore: update lock

* fix: remove useless platform option

* fix: lint warning

* fix: lint warning

* test: use src code in tests

* chore(miniapp): remove ||= operators

* fix(miniapp): exclude miniapp-runtime esm code

* fix(ice-cli): update platform for build command
2022-09-23 11:11:38 +08:00
染陌同学 120b1595a8
Feat/compat props (#540)
* feat: add possibleStandardNames

* chore: remove transform maxlength from createElement

* chore: modify version of package

* feat: select part of possibleStandardNames

* test: add test for transfrom props

* chore: dealwith warning
2022-09-22 17:49:09 +08:00
水澜 2883089f3a
fix: disable hydrate when downgrade (#539)
* fix: disable hydrate when downgrade

* refactor: downgrade

* fix: remvoe dead code
2022-09-22 16:52:06 +08:00
水澜 dc2bd1c0e1
refactor: generate data-loader only by getData (#514)
* refactor: generate data-loader only by getData

* feat: support config dataloader

* test: disable data-loader

* chore: rename

* docs: data loader

* chore: update lock
2022-09-22 15:56:32 +08:00
luhc228 61b5a4be5b
chore: remove default 404 page (#538) 2022-09-22 10:29:48 +08:00
ClarkXia 3729095bb1
chore: add tsconfig for @ice/webpack-modify (#546) 2022-09-21 17:54:34 +08:00
ClarkXia b3ffbc4d7b
feat: support several APIs to modify webpack (#532)
* feat: support several APIs to modify webpack

* chore: optimize code

* fix: test case

* chore: optimize code
2022-09-21 16:55:22 +08:00
ClarkXia 854b7b387e
Merge pull request #492 from ice-lab/release-next
Release rc.3
2022-09-16 14:59:27 +08:00
ZeroLing 9d0b27b541
feat: plugin jsx plus (#529)
* feat: create plugin jsx plus

* feat: add jsx plus plugin

* chore: dismiss all lint problems

* feat: add include and exclude

* docs: update docs of jsx plus

* fix: in case of auto lint fix

* fix: lint problem

* fix: compatible with node 14

* chore: update version

* chore: update pnpm lock

* fix: dev dep
2022-09-16 14:45:22 +08:00
ClarkXia 88d27494f5
feat: support initialize auth by app data (#519) 2022-09-16 14:34:24 +08:00
luhc228 640279ecda
feat: test (#512)
* feat: init jest test

* feat: support vitest

* chore: jest version

* feat: jest component test

* feat: vitest demo

* chore: add @vitest/coverage-c8 dep

* fix: lint

* docs: test

* chore: add comment

* fix: not depend on the vitest as dependencies

* chore: vitest version

* chore: version

* chore: version

* chore: lock

* fix: lock

* chore: vitest version

* fix: lock

* docs: typo

* docs: file extname
2022-09-16 14:32:38 +08:00
luhc228 1fb380c600
test: fix routes-generate unit test timeout (#531)
* test: fix routes-generate timeout

* refactor: optimize page.push()
2022-09-16 14:05:27 +08:00
染陌同学 39a9f786bc
Feat/support appear (#517)
* feat: support appear component

* chore: modify version

* fix: should disappear

* chore: export VisibilityChangeEvent

* feat: rax-compat use @ice/appear

* feat: need not give childref

* chore: update lock

* chore: update README and package

* chore: update README

* test: add test for appear

* chore: update lock
2022-09-16 11:25:13 +08:00
水澜 16e0afaaf8
feat: support inline style for ssr (#518)
* feat: inline style for less

* feat: classname to style

* feat: esbuild inline style

* feat: transform styles

* fix: compat for less module

* fix: less rule

* feat: ignore

* docs: ignore

* refactor: to ts

* test: inline-style

* chore: update lock

* fix: deps

* refactor: enable esbuild inline style loader only in ssr

* fix: validate for ignore plugins

* refactor: to pure functions

* feat: sync syntaxFeatures

* fix: lint

* Update rax-inline-style.test.ts
2022-09-16 10:58:10 +08:00
luhc228 2d55abc2ac
chore: change disableResetPageState to resetPageState (#505)
* chore: change disableResetPageState to resetPageState

* chore: add resetPageState
2022-09-16 10:17:16 +08:00
ZeroLing 6c11977972
Fix/unplugin (#527)
* fix: remove the error code

* fix: judge if this is not undefined
2022-09-15 16:51:27 +08:00
luhc228 6ffef3317a
docs: optimize getConfig sub title (#474)
* docs: getConfig sub title

* fix: title
2022-09-15 16:44:48 +08:00
ClarkXia af9a9c6616
feat: add types for document component (#515) 2022-09-15 12:15:20 +08:00
luhc228 d67db4d760
feat: plugin-css-assets-local (#520)
* feat: init plugin

* feat: add plugin to example

* fix: lock

* docs: README

* docs: css-assets-local

* fix: typo
2022-09-15 11:39:59 +08:00
luhc228 acbabcca3e
chore: remove consola from runtime (#498) 2022-09-15 11:34:56 +08:00
水澜 c09fb20fec
Feat keep export (#501)
* feat: keep export

* fix: empty module

* feat: filter export only for routes entry

* fix: compat for source not exist

* fix: remvoe top expr by swc

* chore: upgrade swc plugin

* chore: update lock file

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-09-14 11:28:46 +08:00
染陌同学 d48189bdb5
Fix/input onchange (#507)
* fix: fix input onchange is invalid

* fix: onChange event is SyntheticEvent in React but it is dom event in Rax

* fix: prevent INPUT from being created repeatedly

* fix: should update value when props update

* test: add test for input value

* chore: update version

* test: add test for inputElement should not recreate when update props

* feat: modify useCallback

* test: add test for onchange

* feat: modify useCallback

* fix: usecallback should not use in createElement

* chore: remove line

* chore: remove onChange

* chore: dealwith lint

* chore: modify transformPrototypes to transformPrototype
2022-09-09 10:38:40 +08:00
ClarkXia c259859338
test: improve test case (#497)
* test: improve test case

* test: compat win32

* test: test case

* test: add test case

* test: add test case

* test: test case for rax-compat

* test: test case for routes

* fix: types error

* fix: to strict equal

* chore: remove unused props

* fix: types

* test: test case for run client app

* chore: remove empty router

* test: test case of run server app

* chore: remove log

* chore: do not remove file by test case

* fix: remove document dependency when run client app

* chore: lint

* chore: remove config

* fix: lint

* chore: lint warning

* fix: test case

* chore: update unplugin
2022-09-07 14:49:54 +08:00
ClarkXia dc99618a77
feat: enhance transform plugins (#502) 2022-09-07 11:48:40 +08:00
ZeroLing 843c57c14e
feat: support baseurl in internal website (#511) 2022-09-07 10:36:15 +08:00
ZeroLing 962fd4012e
Plugin/request (#439)
* feat: introduce useRequest

* chore: add some description

* fix: export statment for generator

* fix: make @ice/types dev dep

* fix: remove I prefix for interface

* fix: lint

* fix: update pnpm

* feat: add use case for app config

* fix: using export request config

* fix: review for code

* fix: dev dependency
2022-09-06 17:33:06 +08:00
ClarkXia 7b5bc498af
fix: default value of compilation (#499)
* fix: default value of compilation

* fix: get default value
2022-09-06 17:28:19 +08:00
ClarkXia 17a8d747c7
feat: support swc minification (#493)
* feat: support swc minification

* chore: optimize config

* fix: minify config
2022-09-06 17:13:10 +08:00
染陌同学 57d43560ed
fix: fix error when test is a function (#506) 2022-09-05 23:56:23 -07:00
染陌同学 1cf3800450
Feat/support event transform (#496)
* feat: add events to transform event

* feat: add events

* feat: support transform event

* chore: delete events file

* feat: modify transformPrototypes

* test: add test for onclick

* test: add test for events

* chore: update version

* chore: add CHANGELOG

* chore: update CHANGELOG
2022-09-05 02:25:20 -07:00
NK aa26a91014
Merge pull request #500 from ice-lab/refactor/runtime-types
Refactor/runtime types
2022-09-05 11:07:05 +08:00