├── .gitignore ├── .prettierrc ├── .vscode ├── launch.json └── settings.json ├── LICENSE ├── README.md ├── __tests__ ├── activity │ └── makeScope.test.ts ├── api │ ├── hFor.test.ts │ └── hIf.test.ts ├── component │ └── defineComponent.test.ts ├── html │ ├── activity.test.ts │ ├── h.test.ts │ ├── makeRender.test.ts │ └── mount.test.ts ├── lifecycle │ ├── makeBlock.test.ts │ ├── onMount.test.ts │ └── onUnmount.test.ts └── utils │ └── index.test.ts ├── example └── counter.html ├── jest.config.js ├── package.json ├── rollup.config.js ├── src ├── activity │ ├── index.ts │ ├── makeScopeTree.ts │ ├── refresh.ts │ └── watch.ts ├── api │ ├── hFor.ts │ ├── hIf.ts │ ├── index.ts │ └── scheduler.ts ├── component │ ├── defineComponent.ts │ └── index.ts ├── event │ └── index.ts ├── global.d.ts ├── html │ ├── h.ts │ ├── index.ts │ ├── makeRenderTree.ts │ └── mount.ts ├── index.ts ├── lifecycle │ ├── makeBlockTree.ts │ ├── onMount.ts │ ├── onUnmount.ts │ └── useBlockTree.ts ├── log │ ├── error.ts │ └── index.ts ├── renderer │ ├── index.ts │ ├── render.ts │ ├── setAttr.ts │ ├── setClass.ts │ ├── setDomProp.ts │ ├── setEvent.ts │ ├── setProp.ts │ └── setStyle.ts └── utils │ └── index.ts ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/activity/makeScope.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/activity/makeScope.test.ts -------------------------------------------------------------------------------- /__tests__/api/hFor.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/api/hFor.test.ts -------------------------------------------------------------------------------- /__tests__/api/hIf.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/api/hIf.test.ts -------------------------------------------------------------------------------- /__tests__/component/defineComponent.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/component/defineComponent.test.ts -------------------------------------------------------------------------------- /__tests__/html/activity.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/html/activity.test.ts -------------------------------------------------------------------------------- /__tests__/html/h.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/html/h.test.ts -------------------------------------------------------------------------------- /__tests__/html/makeRender.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/html/makeRender.test.ts -------------------------------------------------------------------------------- /__tests__/html/mount.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/html/mount.test.ts -------------------------------------------------------------------------------- /__tests__/lifecycle/makeBlock.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/lifecycle/makeBlock.test.ts -------------------------------------------------------------------------------- /__tests__/lifecycle/onMount.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/lifecycle/onMount.test.ts -------------------------------------------------------------------------------- /__tests__/lifecycle/onUnmount.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/lifecycle/onUnmount.test.ts -------------------------------------------------------------------------------- /__tests__/utils/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/__tests__/utils/index.test.ts -------------------------------------------------------------------------------- /example/counter.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/example/counter.html -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/activity/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/activity/index.ts -------------------------------------------------------------------------------- /src/activity/makeScopeTree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/activity/makeScopeTree.ts -------------------------------------------------------------------------------- /src/activity/refresh.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/activity/refresh.ts -------------------------------------------------------------------------------- /src/activity/watch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/activity/watch.ts -------------------------------------------------------------------------------- /src/api/hFor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/api/hFor.ts -------------------------------------------------------------------------------- /src/api/hIf.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/api/hIf.ts -------------------------------------------------------------------------------- /src/api/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/api/index.ts -------------------------------------------------------------------------------- /src/api/scheduler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/api/scheduler.ts -------------------------------------------------------------------------------- /src/component/defineComponent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/component/defineComponent.ts -------------------------------------------------------------------------------- /src/component/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/component/index.ts -------------------------------------------------------------------------------- /src/event/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/event/index.ts -------------------------------------------------------------------------------- /src/global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/global.d.ts -------------------------------------------------------------------------------- /src/html/h.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/html/h.ts -------------------------------------------------------------------------------- /src/html/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/html/index.ts -------------------------------------------------------------------------------- /src/html/makeRenderTree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/html/makeRenderTree.ts -------------------------------------------------------------------------------- /src/html/mount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/html/mount.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from '@/api'; 2 | -------------------------------------------------------------------------------- /src/lifecycle/makeBlockTree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/lifecycle/makeBlockTree.ts -------------------------------------------------------------------------------- /src/lifecycle/onMount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/lifecycle/onMount.ts -------------------------------------------------------------------------------- /src/lifecycle/onUnmount.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/lifecycle/onUnmount.ts -------------------------------------------------------------------------------- /src/lifecycle/useBlockTree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/lifecycle/useBlockTree.ts -------------------------------------------------------------------------------- /src/log/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/log/error.ts -------------------------------------------------------------------------------- /src/log/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/log/index.ts -------------------------------------------------------------------------------- /src/renderer/index.ts: -------------------------------------------------------------------------------- 1 | export * from './render'; 2 | -------------------------------------------------------------------------------- /src/renderer/render.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/renderer/render.ts -------------------------------------------------------------------------------- /src/renderer/setAttr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/renderer/setAttr.ts -------------------------------------------------------------------------------- /src/renderer/setClass.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/renderer/setClass.ts -------------------------------------------------------------------------------- /src/renderer/setDomProp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/renderer/setDomProp.ts -------------------------------------------------------------------------------- /src/renderer/setEvent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/renderer/setEvent.ts -------------------------------------------------------------------------------- /src/renderer/setProp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/renderer/setProp.ts -------------------------------------------------------------------------------- /src/renderer/setStyle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/renderer/setStyle.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hopejs/hope/HEAD/yarn.lock --------------------------------------------------------------------------------