Skip to content

Commit

Permalink
feat: add commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbetancourt committed Nov 25, 2021
1 parent 8740b0d commit 8122e19
Show file tree
Hide file tree
Showing 16 changed files with 1,597 additions and 3,996 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
env: {
node: true
},
ignorePatterns: ['*.js'],
ignorePatterns: ['*.cjs'],
rules: {
'no-throw-literal': 'off',
'@typescript-eslint/no-throw-literal': ['error']
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# Solq

CLI for humans.
23 changes: 23 additions & 0 deletions craft.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineConfig, libraryPreset } from '@kraftr/build/craft';

import path from 'path';

export default defineConfig({
entries: ['./src/index.ts'],
plugins: [
libraryPreset()
// {
// writeBundle(_, bundle) {
// globalThis.UVU_QUEUE = [[null]];
// Object.values(bundle)
// .filter((v) => v.fileName.includes('.unit.mjs'))
// .forEach((b) => {
// if (b.type === 'chunk' && b.isEntry) {
// const fullPath = path.resolve(process.cwd(), 'dist', b.fileName);
// import(fullPath + `?cache=${new Date()}`);
// }
// });
// }
// }
]
});
26 changes: 0 additions & 26 deletions jest.config.ts

This file was deleted.

54 changes: 30 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "xx-project-xx",
"name": "solq",
"version": "0.1.0",
"description": "",
"type": "module",
"keywords": [
"typescript"
],
Expand All @@ -19,11 +20,12 @@
},
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts-resolve",
"build": "craft",
"build:watch": "craft --watch",
"clean": "rimraf dist",
"prebuild": "npm run clean",
"test": "jest",
"coverage": "jest --coverage",
"test": "uvu -r esbuild-register dist",
"coverage": "c8 npm test",
"lint": "run-s lint:ts lint:eslint lint:prettier",
"lint:ts": "tsup src/index.ts --dts",
"lint:eslint": "eslint '**/*.ts'",
Expand All @@ -35,39 +37,43 @@
"semantic-release": "semantic-release"
},
"engines": {
"node": ">=16"
"node": ">=14"
},
"author": "xx-author-xx",
"dependencies": {},
"dependencies": {
"command-line-args": "^5.2.0"
},
"peerDependencies": {
"zod": "^3.0.0"
},
"devDependencies": {
"@types/node": "12.20.36",
"@types/jest": "27.0.2",
"@jest/types": "27.2.5",
"@typescript-eslint/parser": "5.3.0",
"@typescript-eslint/eslint-plugin": "5.3.0",
"@kraftr/build": "^0.4.0",
"@types/command-line-args": "^5.2.0",
"@types/node": "^16.11.8",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"c8": "^7.10.0",
"esbuild": "^0.13.14",
"esbuild-register": "^3.1.2",
"eslint": "8.1.0",
"eslint-config-prettier": "8.3.0",
"prettier": "2.4.1",
"esbuild": "0.13.10",
"esbuild-jest": "0.5.0",
"tsup": "5.5.0",
"husky": "6.0.0",
"lint-staged": "10.5.4",
"jest": "27.3.1",
"typescript": "4.4.4",
"npm-run-all": "4.1.5",
"husky": "6.0.0",
"prettier": "2.4.1",
"rimraf": "3.0.2",
"ts-node": "10.4.0",
"eslint": "8.1.0",
"tslib": "2.3.1"
"tslib": "2.3.1",
"typescript": "^4.5.2",
"uvu": "^0.5.2"
},
"repository": {
"type": "git",
"url": "xx-repository-xx"
"url": "https://github.com/mdbetancourt/solq"
},
"bugs": {
"url": "xx-repository-xx/issues"
"url": "https://github.com/mdbetancourt/solq/issues"
},
"homepage": "xx-repository-xx#readme",
"homepage": "https://github.com/mdbetancourt/solq#readme",
"lint-staged": {
"*.ts": [
"eslint --fix",
Expand Down

0 comments on commit 8122e19

Please sign in to comment.