Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mineejo committed Nov 11, 2023
0 parents commit 5cab0b2
Show file tree
Hide file tree
Showing 43 changed files with 2,717 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.npm
5 changes: 5 additions & 0 deletions .idea/.gitignore

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

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

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

12 changes: 12 additions & 0 deletions .idea/color.iml

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

6 changes: 6 additions & 0 deletions .idea/copyright/mit_license.xml

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

10 changes: 10 additions & 0 deletions .idea/copyright/profiles_settings.xml

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

7 changes: 7 additions & 0 deletions .idea/deno.xml

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

8 changes: 8 additions & 0 deletions .idea/dictionaries/mineejo.xml

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

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

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

8 changes: 8 additions & 0 deletions .idea/modules.xml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

145 changes: 145 additions & 0 deletions .idea/watcherTasks.xml

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

21 changes: 21 additions & 0 deletions LICENSE
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.
34 changes: 34 additions & 0 deletions README.md
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/)
42 changes: 42 additions & 0 deletions _build_npm.ts
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`);
},
});
Loading

0 comments on commit 5cab0b2

Please sign in to comment.