Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Apr 22, 2024
0 parents commit 519cf8a
Show file tree
Hide file tree
Showing 21 changed files with 7,517 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .babelrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* eslint-env node, es2018 */
module.exports = function (api) {
const base = require('@jcoreio/toolchain-esnext/.babelrc.cjs')(api)
return {
...base,
}
}
38 changes: 38 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# created by @jcoreio/toolchain-circle

version: 2.1
jobs:
build:
docker:
- image: cimg/node:20.10.0

steps:
- checkout
- run:
name: Setup NPM Token
command: |
npm config set \
"//registry.npmjs.org/:_authToken=$NPM_TOKEN" \
"registry=https://registry.npmjs.org/"
- run:
name: Corepack enable
command: sudo corepack enable
- run:
name: Install Dependencies
command: pnpm install --frozen-lockfile
- run:
name: Prepublish
command: |
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc prepublish
- run:
name: Release
command: |
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc release
workflows:
build:
jobs:
- build:
context:
- npm-release
- github-release
4 changes: 4 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* eslint-env node, es2018 */
module.exports = {
extends: [require.resolve('@jcoreio/toolchain/eslint.config.cjs')],
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/dist
.nyc_output
node_modules
/coverage
5 changes: 5 additions & 0 deletions .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* eslint-env node, es2018 */
const base = require('@jcoreio/toolchain-mocha/.mocharc.cjs')
module.exports = {
...base,
}
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "test:debug <file>",
"port": 9229,
"request": "attach",
"skipFiles": ["<node_internals>/**"],
"type": "node",
"preLaunchTask": "test:debug <file>"
}
]
}
59 changes: 59 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"options": {
"shell": {
"executable": "bash",
"args": ["-c", "-l"]
}
},
"command": "pnpm",
"isBackground": false,
"group": "test",
"presentation": {
"panel": "dedicated",
"clear": true
},
"label": "test <file>",
"args": ["tc", "test", "${file}"]
},
{
"type": "shell",
"options": {
"shell": {
"executable": "bash",
"args": ["-c", "-l"]
}
},
"command": "pnpm",
"isBackground": false,
"group": "test",
"presentation": {
"panel": "dedicated",
"clear": true
},
"label": "test:watch <file>",
"args": ["tc", "test", "--watch", "${file}"]
},
{
"type": "shell",
"options": {
"shell": {
"executable": "bash",
"args": ["-c", "-l"]
}
},
"command": "pnpm",
"isBackground": false,
"group": "test",
"presentation": {
"panel": "dedicated",
"clear": true
},
"label": "test:debug <file>",
"args": ["tc", "test", "-n", "inspect-brk", "${file}"]
}
]
}
10 changes: 10 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
The MIT License (MIT)
Copyright (c) 2015 Dmitry Ivanov
Copyright 2015 Andy Jansson <[email protected]>
Copyright 2024 Andy Edwards

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.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @jcoreio/css-color-converter

Fork of `css-color-converter` with TS type defs. API should be pretty self-explanatory from the TS
5 changes: 5 additions & 0 deletions githooks.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* eslint-env node, es2018 */
const base = require('@jcoreio/toolchain/githooks.cjs')
module.exports = {
...base,
}
5 changes: 5 additions & 0 deletions lint-staged.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* eslint-env node, es2018 */
const base = require('@jcoreio/toolchain/lint-staged.config.cjs')
module.exports = {
...base,
}
5 changes: 5 additions & 0 deletions nyc.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* eslint-env node, es2018 */
const base = require('@jcoreio/toolchain-mocha/nyc.config.cjs')
module.exports = {
...base,
}
65 changes: 65 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "@jcoreio/css-color-converter",
"version": "0.0.0-development",
"description": "Converts CSS colors from one representation to another",
"scripts": {
"tc": "toolchain",
"toolchain": "toolchain",
"test": "toolchain test",
"prepublishOnly": "echo This package is meant to be published by semantic-release from the dist build directory. && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jcoreio/css-color-converter.git"
},
"bugs": {
"url": "https://github.com/jcoreio/css-color-converter/issues"
},
"homepage": "https://github.com/jcoreio/css-color-converter",
"keywords": [
"css",
"color",
"conversions",
"converter"
],
"author": "Andy Edwards",
"license": "MIT",
"devDependencies": {
"@jcoreio/eslint-plugin-implicit-dependencies": "^1.1.1",
"@jcoreio/toolchain": "^3.11.0",
"@jcoreio/toolchain-circle": "^3.11.0",
"@jcoreio/toolchain-esnext": "^3.11.0",
"@jcoreio/toolchain-mocha": "^3.11.0",
"@jcoreio/toolchain-semantic-release": "^3.11.0",
"@jcoreio/toolchain-typescript": "^3.11.0",
"@types/chai": "^4.0.0",
"@types/color-name": "^1.1.4",
"@types/mocha": "^10.0.6",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"chai": "^4.0.0",
"eslint": "^8.56.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"mocha": "^10.4.0",
"typescript": "^5.1.0"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"default": "./dist/index.js"
}
},
"sideEffects": false,
"engines": {
"node": ">=16"
},
"packageManager": "[email protected]",
"dependencies": {
"@babel/runtime": "^7.18.6"
}
}
Loading

0 comments on commit 519cf8a

Please sign in to comment.