GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - inpyjamas/scripts

This repository was archived by the owner on Feb 10, 2024. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

173 Commits
173 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
src
src
 
 
test
test
 
 
.DS_Store
.DS_Store
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.huskyrc.js
.huskyrc.js
 
 
.npmignore
.npmignore
 
 
.nvmrc
.nvmrc
 
 
.prettierrc.js
.prettierrc.js
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bak.renovate.json
bak.renovate.json
 
 
eslint.js
eslint.js
 
 
husky.js
husky.js
 
 
jest.config.js
jest.config.js
 
 
jest.js
jest.js
 
 
lint-staged.config.js
lint-staged.config.js
 
 
lint-staged.js
lint-staged.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
prettier.js
prettier.js
 
 
release.config.js
release.config.js
 
 
renovate.json
renovate.json
 
 
tsconfig.json
tsconfig.json
 
 
utilities.js
utilities.js
 
 

Repository files navigation

@inpyjamas/scripts

⚠️ This is totally Work In Progress. Please ignore ⚠️ An opinionated toolkit for setting up projects. Inspired (and plugged a lot) from react-scripts and kcd-scripts

Todos/Ideas

  • How to include scripts? start (node dist/index.js), dev, build (tsc -p . set NODE_ENV), test (jest should detect ci and generate coverage, set BABEL_ENV and NODE_ENV)
  • Document the existing configs
  • How to update package.json with the right scripts? mrm? roll your own?
  • Add plop?
  • Add modules in the root so we don't have to link to @inpyjamas/scripts/dist/config/eslint/typescript just @inpyjamas/scripts/eslint-typescript or one module that exports all the configs {eslint-ts:{…}}
  • Scaffold configs for, prettier, lint-staged, jest, husky, .eslintignore or This should be done by yo generator!

Installation

Add it to an existing project

npm install @inpyjamas/scripts --save-dev --save-exact

Init a new project.⚠️ Not yet implemented ⚠️ Most of the templates use @inpyjamas/scripts in one way or another

npm install --global yo
npm install --global @inpyjamas/generator-defaults
yo @inpyjamas/defaults

Usage

Included configs

Extending configs

You can import any config and extend it.

// this is jest.config.js
const config = require("@inpyjamas/scripts/jest");
config.testPathIgnorePatterns.push("src/scripts/test.ts");
config.collectCoverageFrom.push("!src/scripts/test.ts");
module.exports = config;

The package contains a merge utility for merging more complex scenarios.

// this is jest.config.js
const config = require("@inpyjamas/scripts/jest");
const { merge } = require("@inpyjamas/scripts/utilities");

const localConfig = {
  testEnvironment: "jsdom",
  coverageThreshold: {
    global: {
      branches: 75,
      functions: 75,
      lines: 75,
      statements: 75,
    },
  },
};
module.exports = merge(config, localConfig);

Release

  • npm version v0.1.x-alpha
  • git push --tags
  • gh release create

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.