Skip to content

Commit

Permalink
chore: initial commit from tc create
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Jul 8, 2024
0 parents commit 28bfcfa
Show file tree
Hide file tree
Showing 20 changed files with 4,444 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/eslintConfig.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,
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional=false
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}"]
}
]
}
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2024 JCore Systems

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.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# zod-invertible

declare zod schemas that can be inverted to format from output to input

[![CircleCI](https://circleci.com/gh/jcoreio/zod-invertible.svg?style=svg)](https://circleci.com/gh/jcoreio/zod-invertible)
[![Coverage Status](https://codecov.io/gh/jcoreio/zod-invertible/branch/master/graph/badge.svg)](https://codecov.io/gh/jcoreio/zod-invertible)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![npm version](https://badge.fury.io/js/zod-invertible.svg)](https://badge.fury.io/js/zod-invertible)
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,
}
51 changes: 51 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "zod-invertible",
"description": "declare zod schemas that can be inverted to format from output to input",
"repository": {
"type": "git",
"url": "https://github.com/jcoreio/zod-invertible.git"
},
"homepage": "https://github.com/jcoreio/zod-invertible",
"bugs": {
"url": "https://github.com/jcoreio/zod-invertible/issues"
},
"author": "Andy Edwards",
"license": "MIT",
"keywords": [
"zod",
"inverse",
"invertible",
"parse",
"format"
],
"devDependencies": {
"@jcoreio/eslint-plugin-implicit-dependencies": "^1.1.1",
"@jcoreio/toolchain": "4.6.0",
"@jcoreio/toolchain-circle": "^4.6.0",
"@jcoreio/toolchain-esnext": "^4.6.0",
"@jcoreio/toolchain-mocha": "^4.6.0",
"@jcoreio/toolchain-semantic-release": "^4.6.0",
"@jcoreio/toolchain-typescript": "^4.6.0",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"eslint": "^8.56.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"mocha": "^10.2.0",
"typescript": "^5.1.0"
},
"version": "0.0.0-development",
"sideEffects": false,
"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"
},
"engines": {
"node": ">=16"
},
"packageManager": "[email protected]",
"dependencies": {
"@babel/runtime": "^7.18.6"
}
}
Loading

0 comments on commit 28bfcfa

Please sign in to comment.