-
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
25 changed files
with
89 additions
and
29 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,63 @@ | ||
{ | ||
"name": "@primate/react", | ||
"version": "0.12.0", | ||
"description": "Primate React frontend", | ||
"homepage": "https://primatejs.com/modules/react", | ||
"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/react" | ||
}, | ||
"dependencies": { | ||
"@primate/frontend": "workspace:^", | ||
"@rcompat/build": "^0.4.0", | ||
"@rcompat/fs": "^0.4.0", | ||
"@rcompat/platform": "^0.3.0" | ||
}, | ||
"peerDependencies": { | ||
"primate": "workspace:^", | ||
"react": "18", | ||
"react-dom": "18" | ||
}, | ||
"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/react/build/index.js → packages/react/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.
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/react"; |
6 changes: 3 additions & 3 deletions
6
.../frontend/src/server/react/serve/index.js → packages/react/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/react/public/default.js → packages/react/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 "#react/build"; | ||
import default_extension from "#react/extension"; | ||
import name from "#react/name"; | ||
import serve from "#react/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/react/public/head.js → packages/react/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/react/public/runtime.js → packages/react/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 "#react/extension"; | ||
import name from "#react/name"; | ||
import serve from "#react/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" | ||
} |