CLI toolbox for common scripts for front-end projects

Overview

yg-configs 🛠 📦

license npmdownload

CLI toolbox for common scripts for my front-end projects


Table of Contents

Installation

$ npm install @taoyage/configs --save-dev
or
$ pnpm install @taoyage/configs -D

Usage

This can be a very helpful way to make editor integration work for tools like ESLint,babel,prettier,commitlint which require project-based configuration to be present to work.

config prettier

if we were to do this for prettier, you could create an .prettierrc.js with the contents of

module.exports = require('@taoyage/configs/prettier');

config eslint

if we were to do this for eslint of typescript react project, you could create an .eslintrc.js with the contents of

module.exports = require('@taoyage/configs/eslint-ts');

create tsconfig.json with the contents of

{
    "extends": "@taoyage/configs/shared-tsconfig",
    "compilerOptions": {},
    "exclude": [],
    "include": []
}

config commitlint

if were to do this for commitlint, you could create an .commitlintrc.js with the contents of

module.exports = require('@taoyage/configs/commitlint');

config lintstaged

if were to do this for lintstaged, you could create an .lintstagedrc.js with the contents of

module.exports = require('@taoyage/configs/lintstaged');

config stylelint

if were to do this for stylelint, you could create an .stylelintrc.js with the contents of

module.exports = require('@taoyage/configs/stylelint');

config postcss

if were to do this for postcss, you could create an postcss.config.js with the contents of

module.exports = require('@sk/configs/postcss');

config swc

if were to do swc-loader to webpack configure,you could import this swc configuration, this configuration suport typescript program. example of

  import swcOptions from '@taoyage/configs/swc-ts';

  module: {
    rules: [
      {
        test: /\.ts?x$/,
        use: {
          loader: 'swc-loader',
          options: swcOptions(rootPath, { isDev: false, override: {} }),
        },
      },
    ],
  },
params description type
rootPath tsconfig.json file path string
isDev current is dev or production bool
override swc compilation config object

TODO

  • eslint config
  • tsconfig
  • prettier
  • commitlint config
  • lintstage config
  • stylelint config
  • swc config
  • swc react-loader
  • babel config
You might also like...

Privacy First Toolbox For Developers 🧰

Dev Toolbox 🧰 A collection of tools for developers in one place Note This project is inspired and shares some code from tooling.one by @egoist which

Nov 30, 2022

🔆🔎👀 Smart Contract Storage Viewer, DataType Guesser, Toolbox & Transaction Decoder

🔆🔎👀  Smart Contract Storage Viewer, DataType Guesser, Toolbox & Transaction Decoder

🔆 🔎 👀 Smart Contract Storage HexViewer Demo Target - the target contract API Endpoint - your infura (or equivalent) api key Retrieves smart contrac

Nov 27, 2022

Uniform, Unlimited, Universal and Unbelievable Annotation Toolbox

特性 📝 本项目包含@label-u/annotation、@label-u/components、@label-u/utils及@label-u/web等4个工程。 📝 采用rollup esbuild插件及vite编译,让开发者上高速,开发效率更高 📝 采用lerna进行多工程管理。 📝

Dec 23, 2022

CloudCrafter CLI is a command-line interface tool that provides templates for common cloud resources to help you get started quickly.

CloudCrafter CLI CloudCrafter CLI is a command-line interface tool that provides templates for common cloud resources to help you get started quickly.

May 5, 2023

Common build tools for Saber projects.

saber-build-common Common build configurations across Saber projects. This repo was extracted from saber-hq/saber-common to reduce the amount of versi

Jul 4, 2022

🗂 The perfect Front-End Checklist for modern websites and meticulous developers

🗂 The perfect Front-End Checklist for modern websites and meticulous developers

Front-End Checklist The Front-End Checklist is an exhaustive list of all elements you need to have / to test before launching your website / HTML page

Jan 7, 2023

A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore.

A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore.

Front-end Developer Interview Questions This repository contains a number of front-end interview questions that can be used when vetting potential can

Jan 4, 2023

📚 Study guide and introduction to the modern front end stack.

📚 Study guide and introduction to the modern front end stack.

Grab Front End Guide Credits: Illustration by @yangheng This guide has been cross-posted on Free Code Camp. Grab is Southeast Asia (SEA)'s leading tra

Jan 3, 2023

🎮 The only Front-End Performance Checklist that runs faster than the others

Front-End Performance Checklist 🎮 The only Front-End Performance Checklist that runs faster than the others. One simple rule: "Design and code with p

Jan 1, 2023
Owner
taoyage
taoyage
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Personal Blog - a project developed with Angular for the front-end interface and Wordpress for the back-end API served with Docker containers

PersonalBlog This project was generated with Angular CLI version 13.0.1. Front-end Interface Development server Run ng serve or ng serve --configurati

null 9 Oct 5, 2022
Pass trust from a front-end Algorand WalletConnect session, to a back-end web service

AlgoAuth Authenticate to a website using only your Algorand wallet Pass trust from a front-end Algorand WalletConnect session, to a back-end web servi

Nullable Labs 16 Dec 15, 2022
It consists of a recreation of Twitter, to put into practice both Front-end and Back-end knowledge by implementing the MERN Stack together with other technologies to add more value to the project.

Twitter-Clone_Back-end ✨ Demo. ?? About the project. ?? Descriptions. It consists of a recreation of Twitter, to put into practice knowledge of both F

Mario Quirós Luna 5 Apr 12, 2022
It consists of a recreation of Twitter, to put into practice knowledge of both Front-end and Back-end implementing the MERN Stack along with other technologies to add more value to the project.

Twitter-Clone_Front-end ✨ Demo. Login Home Profile Message Notifications Deployed in: https://twitter-clone-front-end.vercel.app/ ?? About the project

Mario Quirós Luna 5 Jun 26, 2022
Web-Technology with Aj Zero Coding. In this tutorial we learn front-end and back-end development.

Installation through NPM: The jQWidgets framework is available as NPM package: jQuery, Javascript, Angular, Vue, React, Web Components: https://www

Ajay Dhangar 3 Nov 19, 2022
💥 The best all-in-one toolbox. Bazinga!

Bazinga Tools The all-in-one toolbox for developers. https://bazinga.tools You Are in Good Company BAZINGA.TOOLS is the best all-in-one toolbox for al

Zihua Li 101 Jan 6, 2023
🔮 Development toolbox, and more...

Pre-installed rust nodejs wasm-pack rsw Install wasm-pack cargo install wasm-pack # With Windows cargo install wasm-pack --version 0.9.1 Install rsw

lencx 167 Dec 23, 2022