-
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.
add @primate/html, readd @primate/htmx
- Loading branch information
Showing
37 changed files
with
166 additions
and
60 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 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,45 @@ | ||
{ | ||
"name": "@primate/html", | ||
"version": "0.1.0", | ||
"description": "Primate HTML frontend", | ||
"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/html" | ||
}, | ||
"dependencies": { | ||
"@primate/frontend": "workspace:^", | ||
"@rcompat/string": "^0.3.0" | ||
}, | ||
"peerDependencies": { | ||
"primate": "workspace:^" | ||
}, | ||
"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" | ||
} | ||
}, | ||
"exports": { | ||
".": { | ||
"runtime": "./src/public/runtime.js", | ||
"default": "./src/public/default.js" | ||
}, | ||
"./handler": "./src/public/handler.js" | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...s/frontend/src/server/html/build/index.js → packages/html/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.
2 changes: 1 addition & 1 deletion
2
packages/frontend/src/server/html/handler.js → packages/html/src/private/handler.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 "@primate/html"; |
2 changes: 1 addition & 1 deletion
2
...s/frontend/src/server/html/serve/index.js → packages/html/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
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,10 @@ | ||
import build from "#build"; | ||
import default_extension from "#extension"; | ||
import pkgname from "#pkgname"; | ||
import serve from "#serve"; | ||
|
||
export default ({ extension = default_extension } = {}) => ({ | ||
name: pkgname, | ||
build: build(extension), | ||
serve: serve(extension), | ||
}); |
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 "#handler"; |
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,8 @@ | ||
import default_extension from "#extension"; | ||
import pkgname from "#pkgname"; | ||
import serve from "#serve"; | ||
|
||
export default ({ extension = default_extension } = {}) => ({ | ||
name: pkgname, | ||
serve: serve(extension), | ||
}); |
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" | ||
} |
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,51 @@ | ||
{ | ||
"name": "@primate/htmx", | ||
"version": "0.1.0", | ||
"description": "Primate HTMX frontend", | ||
"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/htmx" | ||
}, | ||
"dependencies": { | ||
"@primate/frontend": "workspace:^", | ||
"@primate/html": "workspace:^", | ||
"@rcompat/object": "^0.5.0", | ||
"@rcompat/string": "^0.3.0" | ||
}, | ||
"peerDependencies": { | ||
"htmx-esm": "0.2", | ||
"primate": "workspace:^" | ||
}, | ||
"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" | ||
}, | ||
"#error/*": { | ||
"@primate/lt": "./src/private/error/*.js", | ||
"default": "./src/private/error/*.js" | ||
} | ||
}, | ||
"exports": { | ||
".": { | ||
"runtime": "./src/public/runtime.js", | ||
"default": "./src/public/default.js" | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...s/frontend/src/server/htmx/build/index.js → packages/htmx/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.
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,11 @@ | ||
import pkgname from "#pkgname"; | ||
import log from "@primate/core/log"; | ||
import file from "@rcompat/fs/file"; | ||
|
||
export default (...params) => log.error({ | ||
params, | ||
name: file(import.meta.url).base, | ||
module: pkgname, | ||
message: "the extension {0} is required for {1} client side support", | ||
fix: "add \"{0}\" to the `extensions` array for the HTMX module", | ||
}); |
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/htmx"; |
2 changes: 1 addition & 1 deletion
2
...frontend/src/server/htmx/serve/handler.js → packages/htmx/src/private/serve/handler.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.
10 changes: 5 additions & 5 deletions
10
...rontend/src/server/htmx/public/default.js → packages/htmx/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 "#htmx/build"; | ||
import default_extension from "#htmx/extension"; | ||
import name from "#htmx/name"; | ||
import serve from "#htmx/serve"; | ||
import build from "#build"; | ||
import default_extension from "#extension"; | ||
import pkgname from "#pkgname"; | ||
import serve from "#serve"; | ||
|
||
export default ({ | ||
extension = default_extension, | ||
extensions = [], | ||
client_side_templates = [], | ||
} = {}) => ({ | ||
name: `primate:${name}`, | ||
name: pkgname, | ||
build: build({ extension, extensions, client_side_templates }), | ||
serve: serve(extension), | ||
}); |
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,8 @@ | ||
import default_extension from "#extension"; | ||
import pkgname from "#pkgname"; | ||
import serve from "#serve"; | ||
|
||
export default ({ extension = default_extension } = {}) => ({ | ||
name: pkgname, | ||
serve: serve(extension), | ||
}); |
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" | ||
} |
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
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