fusee-framework 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -2
- package/bin/create-fusee-linux +0 -0
- package/bin/create-fusee-mac-arm64 +0 -0
- package/bin/create-fusee-mac-intel +0 -0
- package/bin/create-fusee-win.exe +0 -0
- package/framework/auto-import-preset.js +20 -12
- package/framework/auto-imports.d.ts +68 -39
- package/framework/core/compiler.js +310 -310
- package/framework/core/component-core.js +445 -0
- package/framework/core/component.js +11 -440
- package/framework/core/composable.js +29 -29
- package/framework/core/h.js +588 -557
- package/framework/core/jsx-helpers.js +11 -2
- package/framework/core/jsx-runtime.js +73 -73
- package/framework/core/rust-compiler/pkg/fusee_compiler_bg.wasm +0 -0
- package/framework/core/store.js +333 -333
- package/framework/globals.js +42 -0
- package/framework/index.js +22 -55
- package/framework/router/file-router.js +184 -184
- package/framework/server/actions.js +183 -183
- package/framework/server/generate-manifest.js +3 -3
- package/framework/types/component.d.ts +97 -86
- package/framework/types/index.d.ts +118 -117
- package/package.json +83 -80
- package/framework/core/rust-compiler/Cargo.toml +0 -31
- package/framework/core/rust-compiler/README.md +0 -69
- package/framework/core/rust-compiler/pkg/README.md +0 -69
- package/framework/core/rust-compiler/pkg/fusee_compiler.d.ts +0 -6
- package/framework/core/rust-compiler/pkg/fusee_compiler.js +0 -9
- package/framework/core/rust-compiler/pkg/fusee_compiler_bg.js +0 -137
- package/framework/core/rust-compiler/pkg/fusee_compiler_bg.wasm.d.ts +0 -11
- package/framework/core/rust-compiler/pkg/package.json +0 -18
- package/framework/core/rust-compiler/src/ast.rs +0 -274
- package/framework/core/rust-compiler/src/errors.rs +0 -204
- package/framework/core/rust-compiler/src/generator.rs +0 -583
- package/framework/core/rust-compiler/src/lexer.rs +0 -414
- package/framework/core/rust-compiler/src/lib.rs +0 -87
- package/framework/core/rust-compiler/src/main_compiler.rs +0 -165
- package/framework/core/rust-compiler/src/parser.rs +0 -516
- package/framework/core/rust-compiler/src/ssr_generator.rs +0 -688
- package/framework/core/rust-compiler/src/transformer.rs +0 -562
- package/framework/core/rust-compiler/src/utils.rs +0 -10
- package/framework/engine-go/actions.go +0 -112
- package/framework/engine-go/cmd/server/main.go +0 -233
- package/framework/engine-go/comet/comet.go +0 -41
- package/framework/engine-go/comet/fragment.go +0 -51
- package/framework/engine-go/dispatcher.go +0 -120
- package/framework/engine-go/elements.go +0 -248
- package/framework/engine-go/evalexpr/evalexpr.go +0 -733
- package/framework/engine-go/go.mod +0 -3
- package/framework/engine-go/hydration.go +0 -43
- package/framework/engine-go/load-helpers.go +0 -29
- package/framework/engine-go/manifest.go +0 -41
- package/framework/engine-go/reactive.go +0 -123
- package/framework/engine-go/render.go +0 -635
- package/framework/engine-go/reqcontext.go +0 -48
- package/framework/engine-go/router.go +0 -85
- package/framework/engine-go/rustast/rustast.go +0 -317
- package/framework/engine-go/ssr.go +0 -103
- package/framework/engine-go/static-assets.go +0 -139
- package/framework/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
|
@@ -1,118 +1,119 @@
|
|
|
1
|
-
import { createApp as createAppFn } from './app-registry'
|
|
2
|
-
|
|
3
|
-
export * from './signal'
|
|
4
|
-
export * from './component'
|
|
5
|
-
export * from './element'
|
|
6
|
-
export * from './composable'
|
|
7
|
-
export * from './router'
|
|
8
|
-
export * from './compiler'
|
|
9
|
-
export * from './directives'
|
|
10
|
-
export * from './store'
|
|
11
|
-
export * from './event-delegation'
|
|
12
|
-
export * from './di'
|
|
13
|
-
export * from './reconcile'
|
|
14
|
-
export * from './resource'
|
|
15
|
-
export * from './actions'
|
|
16
|
-
export * from './actions.server'
|
|
17
|
-
export * from './plugins'
|
|
18
|
-
export * from './app-registry'
|
|
19
|
-
export * from '../core/comet-js/comet'
|
|
20
|
-
export * from '../core/comet-js/comet-fusee'
|
|
21
|
-
|
|
22
|
-
declare global {
|
|
23
|
-
type Signal<T = any> = import('./signal').Signal<T>
|
|
24
|
-
type Computed<T = any> = import('./signal').Computed<T>
|
|
25
|
-
type SignalAccessor<T> = import('./signal').SignalAccessor<T>
|
|
26
|
-
type Composable<T extends (...args: any[]) => any> = import('./composable').Composable<T>
|
|
27
|
-
type DirectiveBinding<V = any> = import('./directives').DirectiveBinding<V>
|
|
28
|
-
type DirectiveHooks<V = any> = import('./directives').DirectiveHooks<V>
|
|
29
|
-
type DelegatedEventOptions = import('./event-delegation').DelegatedEventOptions
|
|
30
|
-
|
|
31
|
-
type AppConfig = import('./app-registry').AppConfig
|
|
32
|
-
type Plugin<Options extends any[] = any[]> = import('./app-registry').Plugin<Options>
|
|
33
|
-
type CompilerPlugin = import('./plugins').CompilerPlugin
|
|
34
|
-
type ServerPlugin = import('./plugins').ServerPlugin
|
|
35
|
-
type DevToolsPlugin = import('./plugins').DevToolsPlugin
|
|
36
|
-
type RuntimeAdapter = import('./plugins').RuntimeAdapter
|
|
37
|
-
type FuseePlugin = import('./plugins').FuseePlugin
|
|
38
|
-
|
|
39
|
-
const createApp: typeof createAppFn
|
|
40
|
-
|
|
41
|
-
const defineCompilerPlugin: typeof import('./plugins').defineCompilerPlugin
|
|
42
|
-
const defineServerPlugin: typeof import('./plugins').defineServerPlugin
|
|
43
|
-
const defineDevToolsPlugin: typeof import('./plugins').defineDevToolsPlugin
|
|
44
|
-
const defineRuntimeAdapter: typeof import('./plugins').defineRuntimeAdapter
|
|
45
|
-
const defineFuseePlugin: typeof import('./plugins').defineFuseePlugin
|
|
46
|
-
|
|
47
|
-
const emit: (eventName?: string, ...args: any[]) => void
|
|
48
|
-
const signal: typeof import('./signal').signal
|
|
49
|
-
const computed: typeof import('./signal').computed
|
|
50
|
-
const effect: typeof import('./signal').effect
|
|
51
|
-
const batch: typeof import('./signal').batch
|
|
52
|
-
const untrack: typeof import('./signal').untrack
|
|
53
|
-
const inspect: typeof import('./signal').inspect
|
|
54
|
-
const watch: typeof import('./signal').watch
|
|
55
|
-
const onCleanup: typeof import('./signal').onCleanup
|
|
56
|
-
const resource: typeof import('./signal').resource
|
|
57
|
-
const defineResource: typeof import('./resource').defineResource
|
|
58
|
-
const createSuspense: typeof import('./signal').createSuspense
|
|
59
|
-
const scheduleAsyncJob: typeof import('./signal').scheduleAsyncJob
|
|
60
|
-
|
|
61
|
-
const defineComponent: typeof import('./component').defineComponent
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
const
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
1
|
+
import { createApp as createAppFn } from './app-registry'
|
|
2
|
+
|
|
3
|
+
export * from './signal'
|
|
4
|
+
export * from './component'
|
|
5
|
+
export * from './element'
|
|
6
|
+
export * from './composable'
|
|
7
|
+
export * from './router'
|
|
8
|
+
export * from './compiler'
|
|
9
|
+
export * from './directives'
|
|
10
|
+
export * from './store'
|
|
11
|
+
export * from './event-delegation'
|
|
12
|
+
export * from './di'
|
|
13
|
+
export * from './reconcile'
|
|
14
|
+
export * from './resource'
|
|
15
|
+
export * from './actions'
|
|
16
|
+
export * from './actions.server'
|
|
17
|
+
export * from './plugins'
|
|
18
|
+
export * from './app-registry'
|
|
19
|
+
export * from '../core/comet-js/comet'
|
|
20
|
+
export * from '../core/comet-js/comet-fusee'
|
|
21
|
+
|
|
22
|
+
declare global {
|
|
23
|
+
type Signal<T = any> = import('./signal').Signal<T>
|
|
24
|
+
type Computed<T = any> = import('./signal').Computed<T>
|
|
25
|
+
type SignalAccessor<T> = import('./signal').SignalAccessor<T>
|
|
26
|
+
type Composable<T extends (...args: any[]) => any> = import('./composable').Composable<T>
|
|
27
|
+
type DirectiveBinding<V = any> = import('./directives').DirectiveBinding<V>
|
|
28
|
+
type DirectiveHooks<V = any> = import('./directives').DirectiveHooks<V>
|
|
29
|
+
type DelegatedEventOptions = import('./event-delegation').DelegatedEventOptions
|
|
30
|
+
|
|
31
|
+
type AppConfig = import('./app-registry').AppConfig
|
|
32
|
+
type Plugin<Options extends any[] = any[]> = import('./app-registry').Plugin<Options>
|
|
33
|
+
type CompilerPlugin = import('./plugins').CompilerPlugin
|
|
34
|
+
type ServerPlugin = import('./plugins').ServerPlugin
|
|
35
|
+
type DevToolsPlugin = import('./plugins').DevToolsPlugin
|
|
36
|
+
type RuntimeAdapter = import('./plugins').RuntimeAdapter
|
|
37
|
+
type FuseePlugin = import('./plugins').FuseePlugin
|
|
38
|
+
|
|
39
|
+
const createApp: typeof createAppFn
|
|
40
|
+
|
|
41
|
+
const defineCompilerPlugin: typeof import('./plugins').defineCompilerPlugin
|
|
42
|
+
const defineServerPlugin: typeof import('./plugins').defineServerPlugin
|
|
43
|
+
const defineDevToolsPlugin: typeof import('./plugins').defineDevToolsPlugin
|
|
44
|
+
const defineRuntimeAdapter: typeof import('./plugins').defineRuntimeAdapter
|
|
45
|
+
const defineFuseePlugin: typeof import('./plugins').defineFuseePlugin
|
|
46
|
+
|
|
47
|
+
const emit: (eventName?: string, ...args: any[]) => void
|
|
48
|
+
const signal: typeof import('./signal').signal
|
|
49
|
+
const computed: typeof import('./signal').computed
|
|
50
|
+
const effect: typeof import('./signal').effect
|
|
51
|
+
const batch: typeof import('./signal').batch
|
|
52
|
+
const untrack: typeof import('./signal').untrack
|
|
53
|
+
const inspect: typeof import('./signal').inspect
|
|
54
|
+
const watch: typeof import('./signal').watch
|
|
55
|
+
const onCleanup: typeof import('./signal').onCleanup
|
|
56
|
+
const resource: typeof import('./signal').resource
|
|
57
|
+
const defineResource: typeof import('./resource').defineResource
|
|
58
|
+
const createSuspense: typeof import('./signal').createSuspense
|
|
59
|
+
const scheduleAsyncJob: typeof import('./signal').scheduleAsyncJob
|
|
60
|
+
|
|
61
|
+
const defineComponent: typeof import('./component').defineComponent
|
|
62
|
+
const defineCompiledComponent: typeof import('./component').defineCompiledComponent
|
|
63
|
+
const defineAsyncComponent: typeof import('./component').defineAsyncComponent
|
|
64
|
+
const onMount: typeof import('./component').onMount
|
|
65
|
+
const onUnmount: typeof import('./component').onUnmount
|
|
66
|
+
const parseSlots: typeof import('./component').parseSlots
|
|
67
|
+
const provide: typeof import('./component').provide
|
|
68
|
+
const inject: typeof import('./di').inject
|
|
69
|
+
const getCurrentInstance: typeof import('./component').getCurrentInstance
|
|
70
|
+
|
|
71
|
+
const defineElement: typeof import('./element').defineElement
|
|
72
|
+
const toCustomElement: typeof import('./element').toCustomElement
|
|
73
|
+
const css: typeof import('./element').css
|
|
74
|
+
const unsafeCSS: typeof import('./element').unsafeCSS
|
|
75
|
+
|
|
76
|
+
const createRouter: typeof import('./router').createRouter
|
|
77
|
+
const navigate: typeof import('./router').navigate
|
|
78
|
+
const mountOutlet: typeof import('./router').mountOutlet
|
|
79
|
+
const currentRoute: typeof import('./router').currentRoute
|
|
80
|
+
const routeParams: typeof import('./router').routeParams
|
|
81
|
+
const routeQuery: typeof import('./router').routeQuery
|
|
82
|
+
const matchedRoutes: typeof import('./router').matchedRoutes
|
|
83
|
+
const routeMeta: typeof import('./router').routeMeta
|
|
84
|
+
const beforeEach: typeof import('./router').beforeEach
|
|
85
|
+
const afterEach: typeof import('./router').afterEach
|
|
86
|
+
const use: typeof import('./router').use
|
|
87
|
+
const onError: typeof import('./router').onError
|
|
88
|
+
const generateRoutes: typeof import('./router').generateRoutes
|
|
89
|
+
|
|
90
|
+
const mountTemplate: typeof import('./compiler').mountTemplate
|
|
91
|
+
const defineComposable: typeof import('./composable').defineComposable
|
|
92
|
+
const assertSetupContext: typeof import('./composable').assertSetupContext
|
|
93
|
+
|
|
94
|
+
const defineStore: typeof import('./store').defineStore
|
|
95
|
+
const storeToRefs: typeof import('./store').storeToRefs
|
|
96
|
+
const storeToState: typeof import('./store').storeToState
|
|
97
|
+
const storeToGetters: typeof import('./store').storeToGetters
|
|
98
|
+
const useNestedStore: typeof import('./store').useNestedStore
|
|
99
|
+
const resetStore: typeof import('./store').resetStore
|
|
100
|
+
const clearStores: typeof import('./store').clearStores
|
|
101
|
+
const registerStorePlugin: typeof import('./store').registerStorePlugin
|
|
102
|
+
type StoreHook<T> = import('./store').StoreHook<T>
|
|
103
|
+
|
|
104
|
+
const directive: typeof import('./directives').directive
|
|
105
|
+
const isDelegatedEvent: typeof import('./event-delegation').isDelegatedEvent
|
|
106
|
+
const InjectionToken: typeof import('./di').InjectionToken
|
|
107
|
+
const provideGlobal: typeof import('./di').provideGlobal
|
|
108
|
+
const reconcile: typeof import('./reconcile').reconcile
|
|
109
|
+
|
|
110
|
+
const defineAction: typeof import('./actions').defineAction
|
|
111
|
+
const createActionProxy: typeof import('./actions').createActionProxy
|
|
112
|
+
const useAction: typeof import('./actions').useAction
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export as namespace Fusee
|
|
116
|
+
|
|
117
|
+
declare module '*.template.html' {
|
|
118
|
+
export const render: (_ctx: any, _components: any) => any[]
|
|
118
119
|
}
|
package/package.json
CHANGED
|
@@ -1,80 +1,83 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fusee-framework",
|
|
3
|
-
"version": "2.7.
|
|
4
|
-
"description": "Fusée - Signals-first JS Framework | Peak Performance",
|
|
5
|
-
"main": "./framework/index.js",
|
|
6
|
-
"types": "./framework/types/index.d.ts",
|
|
7
|
-
"module": "./framework/index.js",
|
|
8
|
-
"files": [
|
|
9
|
-
"framework/",
|
|
10
|
-
"!framework/__tests__/",
|
|
11
|
-
"!framework/
|
|
12
|
-
"!framework/
|
|
13
|
-
"!framework/
|
|
14
|
-
"!framework
|
|
15
|
-
"framework/core/rust-compiler/pkg/fusee_compiler_bg.wasm",
|
|
16
|
-
"bin/index.js",
|
|
17
|
-
"bin/create-fusee-win.exe",
|
|
18
|
-
"bin/create-fusee-linux",
|
|
19
|
-
"bin/create-fusee-mac-arm64",
|
|
20
|
-
"bin/create-fusee-mac-intel",
|
|
21
|
-
"fusee-logo.svg"
|
|
22
|
-
],
|
|
23
|
-
"bin": {
|
|
24
|
-
"fusee": "./bin/index.js",
|
|
25
|
-
"create-fusee": "./bin/index.js",
|
|
26
|
-
"create-fusee-app": "./bin/index.js"
|
|
27
|
-
},
|
|
28
|
-
"type": "module",
|
|
29
|
-
"scripts": {
|
|
30
|
-
"dev": "node ./framework/server/generate-manifest.js && cd framework/engine-go && go run ./cmd/server",
|
|
31
|
-
"dev:spa": "vite",
|
|
32
|
-
"build": "vite build",
|
|
33
|
-
"preview": "vite preview",
|
|
34
|
-
"test": "vitest run",
|
|
35
|
-
"test:go": "cd framework/engine-go && go test -v ./...",
|
|
36
|
-
"manifest": "node ./framework/server/generate-manifest.js",
|
|
37
|
-
"ssr:go": "node ./framework/server/generate-manifest.js && cd framework/engine-go && go run ./cmd/server",
|
|
38
|
-
"prepack": "node ./scripts/prepack.mjs"
|
|
39
|
-
},
|
|
40
|
-
"keywords": [],
|
|
41
|
-
"author": "",
|
|
42
|
-
"license": "MIT",
|
|
43
|
-
"repository": {
|
|
44
|
-
"type": "git",
|
|
45
|
-
"url": "git+https://github.com/SebiSomu/fusee.git"
|
|
46
|
-
},
|
|
47
|
-
"publishConfig": {
|
|
48
|
-
"registry": "https://registry.npmjs.org/"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"fast-glob": "^3.3.3",
|
|
52
|
-
"jsdom": "^29.0.2",
|
|
53
|
-
"typescript": "^6.0.2",
|
|
54
|
-
"unplugin-auto-import": "^21.0.0",
|
|
55
|
-
"vite": "^5.0.0",
|
|
56
|
-
"vitest": "^4.1.4"
|
|
57
|
-
},
|
|
58
|
-
"exports": {
|
|
59
|
-
".": {
|
|
60
|
-
"types": "./framework/types/index.d.ts",
|
|
61
|
-
"import": "./framework/index.js"
|
|
62
|
-
},
|
|
63
|
-
"./server": {
|
|
64
|
-
"types": "./framework/types/server.d.ts",
|
|
65
|
-
"import": "./framework/server/index.js"
|
|
66
|
-
},
|
|
67
|
-
"./router": {
|
|
68
|
-
"types": "./framework/types/router.d.ts",
|
|
69
|
-
"import": "./framework/router/index.js"
|
|
70
|
-
},
|
|
71
|
-
"./runtime/ssr": {
|
|
72
|
-
"import": "./framework/core/ssr.js"
|
|
73
|
-
},
|
|
74
|
-
"./
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
}
|
|
80
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "fusee-framework",
|
|
3
|
+
"version": "2.7.1",
|
|
4
|
+
"description": "Fusée - Signals-first JS Framework | Peak Performance",
|
|
5
|
+
"main": "./framework/index.js",
|
|
6
|
+
"types": "./framework/types/index.d.ts",
|
|
7
|
+
"module": "./framework/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"framework/",
|
|
10
|
+
"!framework/__tests__/",
|
|
11
|
+
"!framework/**/node_modules/",
|
|
12
|
+
"!framework/core/compiler-legacy/",
|
|
13
|
+
"!framework/server-legacy/",
|
|
14
|
+
"!framework/engine-go/",
|
|
15
|
+
"framework/core/rust-compiler/pkg/fusee_compiler_bg.wasm",
|
|
16
|
+
"bin/index.js",
|
|
17
|
+
"bin/create-fusee-win.exe",
|
|
18
|
+
"bin/create-fusee-linux",
|
|
19
|
+
"bin/create-fusee-mac-arm64",
|
|
20
|
+
"bin/create-fusee-mac-intel",
|
|
21
|
+
"fusee-logo.svg"
|
|
22
|
+
],
|
|
23
|
+
"bin": {
|
|
24
|
+
"fusee": "./bin/index.js",
|
|
25
|
+
"create-fusee": "./bin/index.js",
|
|
26
|
+
"create-fusee-app": "./bin/index.js"
|
|
27
|
+
},
|
|
28
|
+
"type": "module",
|
|
29
|
+
"scripts": {
|
|
30
|
+
"dev": "node ./framework/server/generate-manifest.js && cd framework/engine-go && go run ./cmd/server",
|
|
31
|
+
"dev:spa": "vite",
|
|
32
|
+
"build": "vite build",
|
|
33
|
+
"preview": "vite preview",
|
|
34
|
+
"test": "vitest run",
|
|
35
|
+
"test:go": "cd framework/engine-go && go test -v ./...",
|
|
36
|
+
"manifest": "node ./framework/server/generate-manifest.js",
|
|
37
|
+
"ssr:go": "node ./framework/server/generate-manifest.js && cd framework/engine-go && go run ./cmd/server",
|
|
38
|
+
"prepack": "node ./scripts/prepack.mjs"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [],
|
|
41
|
+
"author": "",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/SebiSomu/fusee.git"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"registry": "https://registry.npmjs.org/"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"fast-glob": "^3.3.3",
|
|
52
|
+
"jsdom": "^29.0.2",
|
|
53
|
+
"typescript": "^6.0.2",
|
|
54
|
+
"unplugin-auto-import": "^21.0.0",
|
|
55
|
+
"vite": "^5.0.0",
|
|
56
|
+
"vitest": "^4.1.4"
|
|
57
|
+
},
|
|
58
|
+
"exports": {
|
|
59
|
+
".": {
|
|
60
|
+
"types": "./framework/types/index.d.ts",
|
|
61
|
+
"import": "./framework/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./server": {
|
|
64
|
+
"types": "./framework/types/server.d.ts",
|
|
65
|
+
"import": "./framework/server/index.js"
|
|
66
|
+
},
|
|
67
|
+
"./router": {
|
|
68
|
+
"types": "./framework/types/router.d.ts",
|
|
69
|
+
"import": "./framework/router/index.js"
|
|
70
|
+
},
|
|
71
|
+
"./runtime/ssr": {
|
|
72
|
+
"import": "./framework/core/ssr.js"
|
|
73
|
+
},
|
|
74
|
+
"./globals": {
|
|
75
|
+
"import": "./framework/globals.js"
|
|
76
|
+
},
|
|
77
|
+
"./core/*": "./framework/core/*",
|
|
78
|
+
"./*": "./framework/*"
|
|
79
|
+
},
|
|
80
|
+
"dependencies": {
|
|
81
|
+
"benchmark": "^2.1.4"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[package]
|
|
2
|
-
name = "fusee-compiler"
|
|
3
|
-
version = "0.1.0"
|
|
4
|
-
edition = "2021"
|
|
5
|
-
description = "Fusée template compiler — lexer/parser/transformer/generator — Rust+WASM port"
|
|
6
|
-
|
|
7
|
-
[lib]
|
|
8
|
-
crate-type = ["cdylib", "rlib"]
|
|
9
|
-
|
|
10
|
-
[dependencies]
|
|
11
|
-
wasm-bindgen = "0.2"
|
|
12
|
-
serde = { version = "1", features = ["derive"] }
|
|
13
|
-
serde-wasm-bindgen = "0.6"
|
|
14
|
-
console_error_panic_hook = { version = "0.1", optional = true }
|
|
15
|
-
wee_alloc = { version = "0.4", optional = true }
|
|
16
|
-
once_cell = "1"
|
|
17
|
-
regex = "1"
|
|
18
|
-
serde_json = "1"
|
|
19
|
-
|
|
20
|
-
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
21
|
-
wee_alloc = { version = "0.4", optional = true }
|
|
22
|
-
console_error_panic_hook = { version = "0.1", optional = true }
|
|
23
|
-
|
|
24
|
-
[features]
|
|
25
|
-
default = ["console_error_panic_hook"]
|
|
26
|
-
wee_alloc = ["dep:wee_alloc"]
|
|
27
|
-
console_error_panic_hook = ["dep:console_error_panic_hook"]
|
|
28
|
-
|
|
29
|
-
[profile.release]
|
|
30
|
-
opt-level = "s"
|
|
31
|
-
lto = true
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
<h1><code>wasm-pack-template</code></h1>
|
|
4
|
-
|
|
5
|
-
<strong>A template for kick starting a Rust and WebAssembly project using <a href="https://github.com/rustwasm/wasm-pack">wasm-pack</a>.</strong>
|
|
6
|
-
|
|
7
|
-
<p>
|
|
8
|
-
<a href="https://travis-ci.org/rustwasm/wasm-pack-template"><img src="https://img.shields.io/travis/rustwasm/wasm-pack-template.svg?style=flat-square" alt="Build Status" /></a>
|
|
9
|
-
</p>
|
|
10
|
-
|
|
11
|
-
<h3>
|
|
12
|
-
<a href="https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/index.html">Tutorial</a>
|
|
13
|
-
<span> | </span>
|
|
14
|
-
<a href="https://discordapp.com/channels/442252698964721669/443151097398296587">Chat</a>
|
|
15
|
-
</h3>
|
|
16
|
-
|
|
17
|
-
<sub>Built with 🦀🕸 by <a href="https://rustwasm.github.io/">The Rust and WebAssembly Working Group</a></sub>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
## About
|
|
21
|
-
|
|
22
|
-
[**📚 Read this template tutorial! 📚**][template-docs]
|
|
23
|
-
|
|
24
|
-
This template is designed for compiling Rust libraries into WebAssembly and
|
|
25
|
-
publishing the resulting package to NPM.
|
|
26
|
-
|
|
27
|
-
Be sure to check out [other `wasm-pack` tutorials online][tutorials] for other
|
|
28
|
-
templates and usages of `wasm-pack`.
|
|
29
|
-
|
|
30
|
-
[tutorials]: https://rustwasm.github.io/docs/wasm-pack/tutorials/index.html
|
|
31
|
-
[template-docs]: https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/index.html
|
|
32
|
-
|
|
33
|
-
## 🚴 Usage
|
|
34
|
-
|
|
35
|
-
### 🐑 Use `cargo generate` to Clone this Template
|
|
36
|
-
|
|
37
|
-
[Learn more about `cargo generate` here.](https://github.com/ashleygwilliams/cargo-generate)
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
cargo generate --git https://github.com/rustwasm/wasm-pack-template.git --name my-project
|
|
41
|
-
cd my-project
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### 🛠️ Build with `wasm-pack build`
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
wasm-pack build
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### 🔬 Test in Headless Browsers with `wasm-pack test`
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
wasm-pack test --headless --firefox
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### 🎁 Publish to NPM with `wasm-pack publish`
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
wasm-pack publish
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## 🔋 Batteries Included
|
|
63
|
-
|
|
64
|
-
* [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating
|
|
65
|
-
between WebAssembly and JavaScript.
|
|
66
|
-
* [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook)
|
|
67
|
-
for logging panic messages to the developer console.
|
|
68
|
-
* [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized
|
|
69
|
-
for small code size.
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
<h1><code>wasm-pack-template</code></h1>
|
|
4
|
-
|
|
5
|
-
<strong>A template for kick starting a Rust and WebAssembly project using <a href="https://github.com/rustwasm/wasm-pack">wasm-pack</a>.</strong>
|
|
6
|
-
|
|
7
|
-
<p>
|
|
8
|
-
<a href="https://travis-ci.org/rustwasm/wasm-pack-template"><img src="https://img.shields.io/travis/rustwasm/wasm-pack-template.svg?style=flat-square" alt="Build Status" /></a>
|
|
9
|
-
</p>
|
|
10
|
-
|
|
11
|
-
<h3>
|
|
12
|
-
<a href="https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/index.html">Tutorial</a>
|
|
13
|
-
<span> | </span>
|
|
14
|
-
<a href="https://discordapp.com/channels/442252698964721669/443151097398296587">Chat</a>
|
|
15
|
-
</h3>
|
|
16
|
-
|
|
17
|
-
<sub>Built with 🦀🕸 by <a href="https://rustwasm.github.io/">The Rust and WebAssembly Working Group</a></sub>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
## About
|
|
21
|
-
|
|
22
|
-
[**📚 Read this template tutorial! 📚**][template-docs]
|
|
23
|
-
|
|
24
|
-
This template is designed for compiling Rust libraries into WebAssembly and
|
|
25
|
-
publishing the resulting package to NPM.
|
|
26
|
-
|
|
27
|
-
Be sure to check out [other `wasm-pack` tutorials online][tutorials] for other
|
|
28
|
-
templates and usages of `wasm-pack`.
|
|
29
|
-
|
|
30
|
-
[tutorials]: https://rustwasm.github.io/docs/wasm-pack/tutorials/index.html
|
|
31
|
-
[template-docs]: https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/index.html
|
|
32
|
-
|
|
33
|
-
## 🚴 Usage
|
|
34
|
-
|
|
35
|
-
### 🐑 Use `cargo generate` to Clone this Template
|
|
36
|
-
|
|
37
|
-
[Learn more about `cargo generate` here.](https://github.com/ashleygwilliams/cargo-generate)
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
cargo generate --git https://github.com/rustwasm/wasm-pack-template.git --name my-project
|
|
41
|
-
cd my-project
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### 🛠️ Build with `wasm-pack build`
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
wasm-pack build
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### 🔬 Test in Headless Browsers with `wasm-pack test`
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
wasm-pack test --headless --firefox
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### 🎁 Publish to NPM with `wasm-pack publish`
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
wasm-pack publish
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## 🔋 Batteries Included
|
|
63
|
-
|
|
64
|
-
* [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating
|
|
65
|
-
between WebAssembly and JavaScript.
|
|
66
|
-
* [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook)
|
|
67
|
-
for logging panic messages to the developer console.
|
|
68
|
-
* [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized
|
|
69
|
-
for small code size.
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* @ts-self-types="./fusee_compiler.d.ts" */
|
|
2
|
-
import * as wasm from "./fusee_compiler_bg.wasm";
|
|
3
|
-
import { __wbg_set_wasm } from "./fusee_compiler_bg.js";
|
|
4
|
-
|
|
5
|
-
__wbg_set_wasm(wasm);
|
|
6
|
-
wasm.__wbindgen_start();
|
|
7
|
-
export {
|
|
8
|
-
compile, greet
|
|
9
|
-
} from "./fusee_compiler_bg.js";
|