pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/chyzwar/common

370f045c7e0.css" /> GitHub - chyzwar/common: Shareable configs, generic task runner · GitHub
Skip to content

chyzwar/common

Repository files navigation

Common

Collection of useful packages that I am using in my side projects.

@chyzwar/tsconfig

Installation

yarn add "@chyzwar/tsconfig

Usage

Extend preset:

{
  "extends": "@chyzwar/tsconfig/lib.json", 
  "compilerOptions": {
    "outDir": "lib",
    "rootDir": "src",
    "tsBuildInfoFile": "./lib/buildInfo.json"
  },
  "include": [
    "src/**/*"
  ]
}

@chyzwar/eslint-config

Strict preset for eslint. Intention is to include plugin dependacies and make it easy manage configs in one place. It support number of sub-presets:

  • node
  • react

Installation

yarn add eslint @chyzwar/eslint-config

Examples

Example of usage in eslint.cjs

module.exports = {
  extends: "@hyper/eslint-config/node",
  parserOptions: {
    tsconfigRootDir: __dirname,
  },
};

@chyzwar/runner

It is tool inspired by grunt/gulp and docker-compose runner makes possible to define tasks as serial or parallel sequences

Instalation

yarn add @chyzwar/runner

Examples

Example of config file runner.config.js

import {spawnTask, dockerTask, parallelTask, seriesTask} from "@hyper/runner";

spawnTask("build:watch", 
  "yarn", ["build:watch"], 
);

spawnTask("start:ui", 
  "yarn", ["start"], 
  {
    cwd: "./packages/ui"
  }
);
spawnTask("build:ui", 
  "yarn", ["build"], 
  {
    cwd: "./packages/ui"
  }
);

spawnTask("start:api", 
  "yarn", ["start"], 
  {
    cwd: "./packages/api"
  }
);
spawnTask("build:api", 
  "yarn", ["build"], 
  {
    cwd: "./packages/api"
  }
);

dockerTask("postgres", "postgres", {
  interactive: true,
  rm: true,
  name: "PostgresDB",
  ports: [
    "5434:5432"
  ],
  env: {
    POSTGRES_PASSWORD: "postgres",
  },
});


seriesTask("start:prod", ["build:api", "build:ui", "start:api:prod"])
parallelTask("start", [
  "build:watch", 
  "postgres", 
  "start:api", 
  "start:ui"
])

About

Shareable configs, generic task runner

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy