Skip to content

Commit

Permalink
Migrate to jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-dldc committed May 5, 2024
1 parent 78665a6 commit 483fae1
Show file tree
Hide file tree
Showing 20 changed files with 224 additions and 5,850 deletions.
3 changes: 0 additions & 3 deletions .dldc.json

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x # Run with latest stable Deno.

- run: deno task check

- run: npx jsr publish
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc.json

This file was deleted.

15 changes: 0 additions & 15 deletions .release-it.json

This file was deleted.

5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.useFlatConfig": true
"deno.enable": true,
"editor.defaultFormatter": "denoland.vscode-deno",
"npm.autoDetect": "off"
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
## Gist

```ts
import InterpolatedColor from 'interpolated-colors';
import InterpolatedColor from "interpolated-colors";

const gradient = InterpolatedColor([
[0, 'red'],
[30, 'blue'],
[100, 'green'],
[0, "red"],
[30, "blue"],
[100, "green"],
]);

console.log(gradient(0)); // #FF0000 => red
Expand Down
19 changes: 19 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@dldc/colors",
"version": "3.0.9",
"exports": "./mod.ts",
"imports": {
"$std/": "https://deno.land/std@0.224.0/",
"color": "npm:color@^4.2.3"
},
"tasks": {
"test": "deno test --allow-read .",
"test:watch": "deno test --watch",
"bump": "deno run -A jsr:@mys/bump@1",
"update": "deno run --allow-read=. --allow-write=. --allow-net https://deno.land/x/udd@0.8.2/main.ts *.ts deno.jsonc",
"check": "deno fmt --check . && deno lint . && deno task test"
},
"lint": {
"rules": { "exclude": ["no-explicit-any"] }
}
}
85 changes: 85 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 0 additions & 41 deletions eslint.config.js

This file was deleted.

1 change: 1 addition & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./src/InterpolatedColor.ts";
67 changes: 0 additions & 67 deletions package.json

This file was deleted.

Loading

0 comments on commit 483fae1

Please sign in to comment.