Skip to content

Commit

Permalink
Add JSR
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jan 10, 2025
1 parent 9f9ccd5 commit abbde3c
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 0 deletions.
1 change: 1 addition & 0 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ cloudevents-1-0-0 https://github.com/cloudevents/spec v1.0
cloudevents-1-0-1 https://github.com/cloudevents/spec v1.0.1
cloudevents-1-0-2 https://github.com/cloudevents/spec v1.0.2
riskine-ontology-1-0-0 https://github.com/riskine/ontology v1.0.0
jsr https://github.com/jsr-io/jsr 0e218a1d98b52f4c67b99a5c00742ffc3a3dda7d
11 changes: 11 additions & 0 deletions configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@
},
"riskine/global-insurance": {
"title": "Global Insurance Ontology"
},
"jsr": {
"title": "JSR",
"description": "The open-source package registry for modern JavaScript and TypeScript",
"email": "[email protected]",
"github": "jsr-io",
"website": "https://jsr.io"
}
},
"schemas": {
Expand Down Expand Up @@ -238,6 +245,10 @@
"base": "https://ontology.riskine.com",
"path": "./vendor/riskine-ontology-1-0-0/schemas/products",
"defaultDialect": "http://json-schema.org/draft-07/schema#"
},
"jsr": {
"base": "https://jsr.io/schema",
"path": "./vendor/jsr"
}
}
}
40 changes: 40 additions & 0 deletions vendor/jsr.mask
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.vscode/
api/
e2e/
terraform/
terraform_infra/
tools/
.licenserc.json
Cargo.lock
Cargo.toml
deno.json
deno.lock
docker-compose.yml
README.md
rust-toolchain.toml
frontend/components/
frontend/docs/
frontend/islands/
frontend/routes/
frontend/utils/
frontend/.gitignore
frontend/deno.json
frontend/deno.lock
frontend/dev.ts
frontend/Dockerfile
frontend/main.ts
frontend/tailwind.config.ts
frontend/util.ts
frontend/static/fonts/
frontend/static/images/
frontend/static/logos/
frontend/static/scripts/
frontend/static/favicon.ico
frontend/static/gfm.css
frontend/static/logo-animated.svg
frontend/static/logo-square.svg
frontend/static/logo.png
frontend/static/logo.svg
frontend/static/opensearch.xml
frontend/static/robots.txt
frontend/static/styles.css
20 changes: 20 additions & 0 deletions vendor/jsr/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
MIT License

Copyright 2024 the JSR authors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
75 changes: 75 additions & 0 deletions vendor/jsr/frontend/static/schema/config-file.v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"$id": "https://jsr.io/schema/config-file.v1.json",
"$schema": "http://json-schema.org/draft-07/schema",
"description": "A JSON representation of a JSR configuration file.",
"required": [
"name",
"exports"
],
"title": "JSR configuration file Schema",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of this JSR package. Must be scoped",
"examples": [
"@luca/flag"
]
},
"version": {
"type": "string",
"description": "The version of this JSR package.",
"examples": [
"0.1.0",
"1.0.0"
]
},
"exports": {
"oneOf": [
{
"type": "string",
"description": "The path to the main module of this JSR package.",
"examples": [
"./mod.ts",
"./index.js"
],
"pattern": "^\\./.*$"
},
{
"type": "object",
"description": "A map of package exports to files in this JSR package.",
"patternProperties": {
"^\\.(/.*)?$": {
"type": "string",
"pattern": "^\\./.*$"
}
},
"examples": [
{
".": "./mod.ts"
}
]
}
]
},
"publish": {
"type": "object",
"properties": {
"include": {
"type": "array",
"description": "List of files, directories or globs that will be included in the published package.",
"items": {
"type": "string"
}
},
"exclude": {
"type": "array",
"description": "List of files, directories or globs that will be excluded from the published package.",
"items": {
"type": "string"
}
}
}
}
}
}

0 comments on commit abbde3c

Please sign in to comment.