-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
90 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "@primate/solid", | ||
"version": "0.4.0", | ||
"description": "Primate Solid frontend", | ||
"homepage": "https://primatejs.com/modules/solid", | ||
"bugs": "https://github.com/primatejs/primate/issues", | ||
"license": "MIT", | ||
"files": [ | ||
"src/**/*.js", | ||
"!src/**/*.spec.js" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/primatejs/primate", | ||
"directory": "packages/solid" | ||
}, | ||
"dependencies": { | ||
"@primate/frontend": "workspace:^", | ||
"@rcompat/build": "^0.4.0", | ||
"@rcompat/fs": "^0.4.0", | ||
"@rcompat/platform": "^0.3.0" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "7", | ||
"babel-preset-solid": "1", | ||
"primate": "workspace:^", | ||
"solid-js": "1" | ||
}, | ||
"type": "module", | ||
"imports": { | ||
"#*": { | ||
"@primate/lt": "./src/private/*.js", | ||
"default": "./src/private/*.js" | ||
}, | ||
"#build": { | ||
"@primate/lt": "./src/private/build/index.js", | ||
"default": "./src/private/build/index.js" | ||
}, | ||
"#serve": { | ||
"@primate/lt": "./src/private/serve/index.js", | ||
"default": "./src/private/serve/index.js" | ||
}, | ||
"#context/*": { | ||
"@primate/lt": "./src/private/context/*.js", | ||
"default": "./src/private/context/*.js" | ||
}, | ||
"#client": { | ||
"@primate/lt": "./src/private/client/index.js", | ||
"default": "./src/private/client/index.js" | ||
}, | ||
"#client/*": { | ||
"@primate/lt": "./src/private/client/*.js", | ||
"default": "./src/private/client/*.js" | ||
} | ||
}, | ||
"exports": { | ||
".": { | ||
"runtime": "./src/public/runtime.js", | ||
"default": "./src/public/default.js" | ||
}, | ||
"./head": "./src/public/head.js", | ||
"./context/*": "./src/public/context/*.js" | ||
} | ||
} |
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
.../frontend/src/server/solid/build/index.js → packages/solid/src/private/build/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default "@primate/solid"; |
6 changes: 3 additions & 3 deletions
6
.../frontend/src/server/solid/serve/index.js → packages/solid/src/private/serve/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "#context/app"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "#context/head"; |
10 changes: 5 additions & 5 deletions
10
...ontend/src/server/solid/public/default.js → packages/solid/src/public/default.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import build from "#solid/build"; | ||
import default_extension from "#solid/extension"; | ||
import name from "#solid/name"; | ||
import serve from "#solid/serve"; | ||
import build from "#build"; | ||
import default_extension from "#extension"; | ||
import pkgname from "#pkgname"; | ||
import serve from "#serve"; | ||
|
||
export default ({ | ||
extension = default_extension, | ||
// activate fetch-based browsing | ||
spa = true, | ||
} = {}) => ({ | ||
name: `primate:${name}`, | ||
name: pkgname, | ||
build: build(extension), | ||
serve: serve(extension, spa), | ||
}); |
2 changes: 1 addition & 1 deletion
2
.../frontend/src/server/solid/public/head.js → packages/solid/src/public/head.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ontend/src/server/solid/public/runtime.js → packages/solid/src/public/runtime.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import default_extension from "#solid/extension"; | ||
import name from "#solid/name"; | ||
import serve from "#solid/serve"; | ||
import default_extension from "#extension"; | ||
import pkgname from "#pkgname"; | ||
import serve from "#serve"; | ||
|
||
export default ({ | ||
extension = default_extension, | ||
// activate fetch-based browsing | ||
spa = true, | ||
} = {}) => ({ | ||
name: `primate:${name}`, | ||
name: pkgname, | ||
serve: serve(extension, spa), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json" | ||
} |