-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: ci | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: clone repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: install deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: 1.X | ||
|
||
- name: check format | ||
run: deno fmt --check | ||
|
||
- name: check linting | ||
run: deno lint | ||
|
||
- name: run tests | ||
run: deno test |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.npm |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 mineejo | ||
|
||
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. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Color | ||
|
||
Color is a tool for creating [RGB] color by range and by HSL without leaving RGB | ||
space. With `additional tools`, `unlimited development` and `no dependencies`. | ||
|
||
[Read documentation, API...] | ||
|
||
[RGB]: https://en.wikipedia.org/wiki/RGB_color_model | ||
[Read documentation, API...]: https://deno.land/x/chalkpot_color/mod.ts | ||
|
||
## Installation | ||
|
||
`CommonJS` (script directory) and `ModuleJS` (esm directory) support for | ||
`Node.js`, see [NPM page] for installation command. Also support for `Yarn` and | ||
other package managers or CDNs like `UNPKG`. For `Deno` reference see | ||
[module page], or use CDN like `esm.sh`. | ||
|
||
[NPM page]: https://www.npmjs.com/package/@chalkpot/color | ||
[module page]: https://deno.land/x/chalkpot_color | ||
|
||
## Related | ||
|
||
- [colors](https://github.com/chalkpot/colors) - Colors is JSON with the names | ||
of colors, their values and localization. Colors are based on HTML color names | ||
and CSS keywords. | ||
|
||
## Contributing | ||
|
||
Pull requests are welcome. For major changes, please open an issue first to | ||
discuss what you would like to change. | ||
|
||
## License | ||
|
||
[MIT](https://choosealicense.com/licenses/mit/) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright 2023 mineejo. All rights reserved. MIT license. | ||
|
||
import { build, emptyDir } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
const outDir = "./.npm"; | ||
|
||
await emptyDir(outDir); | ||
|
||
await build({ | ||
entryPoints: ["./mod.ts"], | ||
outDir: outDir, | ||
shims: { | ||
deno: true, | ||
}, | ||
test: true, | ||
package: { | ||
name: "@chalkpot/color", | ||
version: Deno.args[0], | ||
description: | ||
"Color is a tool for creating [RGB] color by range and by HSL without leaving RGB space.", | ||
author: "mineejo", | ||
license: "MIT", | ||
homepage: "https://github.com/chalkpot/color#readme", | ||
repository: { | ||
type: "git", | ||
url: "git+https://github.com/chalkpot/color.git", | ||
}, | ||
bugs: { | ||
url: "https://github.com/chalkpot/color/issues", | ||
}, | ||
keywords: [ | ||
"chalkpot", | ||
"color", | ||
"rgb", | ||
"hsl", | ||
], | ||
}, | ||
postBuild() { | ||
Deno.copyFileSync("LICENSE", `${outDir}/LICENSE`); | ||
Deno.copyFileSync("README.md", `${outDir}/README.md`); | ||
}, | ||
}); |