From fa1f7702c7f96fdf43394020eb59b9b58dd08856 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Tue, 31 Dec 2024 03:24:10 -0500 Subject: [PATCH 1/3] fix: remove .all-contributorsrc from .prettierignore --- .all-contributorsrc | 890 ++++++++----------- .prettierignore | 1 - src/next/blocks/blockAllContributors.test.ts | 20 +- src/next/blocks/blockAllContributors.ts | 6 +- src/steps/writing/creation/rootFiles.ts | 1 - 5 files changed, 384 insertions(+), 534 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index b9bc1504..7bfac418 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -1,511 +1,383 @@ { - "badgeTemplate": "\t\"👪\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" />", - "contributors": [ - { - "avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4", - "contributions": [ - "bug", - "code", - "maintenance", - "review", - "tool", - "doc", - "infra", - "test", - "ideas" - ], - "login": "JoshuaKGoldberg", - "name": "Josh Goldberg", - "profile": "http://www.joshuakgoldberg.com" - }, - { - "login": "sinchang", - "name": "Jeff Wen", - "avatar_url": "https://avatars.githubusercontent.com/u/3297859?v=4", - "profile": "https://sinchang.me", - "contributions": [ - "code" - ] - }, - { - "login": "Pinjasaur", - "name": "Paul Esch-Laurent", - "avatar_url": "https://avatars.githubusercontent.com/u/6335792?v=4", - "profile": "https://paulisaweso.me/", - "contributions": [ - "code" - ] - }, - { - "login": "NazCodeland", - "name": "NazCodeland", - "avatar_url": "https://avatars.githubusercontent.com/u/113494366?v=4", - "profile": "https://github.com/NazCodeland", - "contributions": [ - "code" - ] - }, - { - "login": "johnnyreilly", - "name": "John Reilly", - "avatar_url": "https://avatars.githubusercontent.com/u/1010525?v=4", - "profile": "https://blog.johnnyreilly.com/", - "contributions": [ - "code", - "ideas", - "bug", - "maintenance", - "doc", - "tool" - ] - }, - { - "login": "webpro", - "name": "Lars Kappert", - "avatar_url": "https://avatars.githubusercontent.com/u/456426?v=4", - "profile": "https://webpro.nl", - "contributions": [ - "code" - ] - }, - { - "login": "RebeccaStevens", - "name": "Rebecca Stevens", - "avatar_url": "https://avatars.githubusercontent.com/u/7224206?v=4", - "profile": "https://github.com/RebeccaStevens", - "contributions": [ - "code", - "infra" - ] - }, - { - "login": "ronthetech", - "name": "Ron Jean-Francois", - "avatar_url": "https://avatars.githubusercontent.com/u/105710107?v=4", - "profile": "http://ronjeanfrancois.com", - "contributions": [ - "code", - "infra" - ] - }, - { - "login": "nowyDEV", - "name": "Dominik Nowik", - "avatar_url": "https://avatars.githubusercontent.com/u/12304307?v=4", - "profile": "https://github.com/nowyDEV", - "contributions": [ - "tool", - "code", - "ideas" - ] - }, - { - "login": "TAKANOME-DEV", - "name": "takanomedev", - "avatar_url": "https://avatars.githubusercontent.com/u/79809121?v=4", - "profile": "https://github.com/TAKANOME-DEV", - "contributions": [ - "code" - ] - }, - { - "login": "emday4prez", - "name": "Emerson", - "avatar_url": "https://avatars.githubusercontent.com/u/35363144?v=4", - "profile": "https://github.com/emday4prez", - "contributions": [ - "code" - ] - }, - { - "login": "jsjoeio", - "name": "Joe Previte", - "avatar_url": "https://avatars.githubusercontent.com/u/3806031?v=4", - "profile": "https://typescriptcourse.com/tutorials", - "contributions": [ - "bug", - "code" - ] - }, - { - "login": "navin-moorthy", - "name": "Navin Moorthy", - "avatar_url": "https://avatars.githubusercontent.com/u/39694575?v=4", - "profile": "https://navinmoorthy.me/", - "contributions": [ - "bug", - "code", - "ideas" - ] - }, - { - "login": "garuna-m6", - "name": "Anurag", - "avatar_url": "https://avatars.githubusercontent.com/u/23234342?v=4", - "profile": "https://github.com/garuna-m6", - "contributions": [ - "code" - ] - }, - { - "login": "danielroe", - "name": "Daniel Roe", - "avatar_url": "https://avatars.githubusercontent.com/u/28706372?v=4", - "profile": "https://roe.dev/", - "contributions": [ - "code" - ] - }, - { - "login": "the-lazy-learner", - "name": "Sudhansu", - "avatar_url": "https://avatars.githubusercontent.com/u/13695177?v=4", - "profile": "https://github.com/the-lazy-learner", - "contributions": [ - "code" - ] - }, - { - "login": "RNR1", - "name": "Ron Braha", - "avatar_url": "https://avatars.githubusercontent.com/u/45559220?v=4", - "profile": "https://linktr.ee/ronbraha", - "contributions": [ - "code", - "design", - "test" - ] - }, - { - "login": "tungbq", - "name": "Tung Bui (Leo)", - "avatar_url": "https://avatars.githubusercontent.com/u/85242618?v=4", - "profile": "https://github.com/tungbq", - "contributions": [ - "code" - ] - }, - { - "login": "orta", - "name": "Orta Therox", - "avatar_url": "https://avatars.githubusercontent.com/u/49038?v=4", - "profile": "https://orta.io", - "contributions": [ - "code", - "ideas" - ] - }, - { - "login": "promise-dash", - "name": "Promise Dash", - "avatar_url": "https://avatars.githubusercontent.com/u/86062880?v=4", - "profile": "https://github.com/promise-dash", - "contributions": [ - "code" - ] - }, - { - "login": "jolg42", - "name": "Joël Galeran", - "avatar_url": "https://avatars.githubusercontent.com/u/1328733?v=4", - "profile": "https://twitter.com/Jolg42", - "contributions": [ - "code" - ] - }, - { - "login": "kristo-baricevic", - "name": "Kristo Baricevic", - "avatar_url": "https://avatars.githubusercontent.com/u/108290619?v=4", - "profile": "https://kristo-baricevic.github.io/", - "contributions": [ - "code" - ] - }, - { - "login": "ryota-murakami", - "name": "Ryota Murakami", - "avatar_url": "https://avatars.githubusercontent.com/u/5501268?v=4", - "profile": "https://ryota-murakami.github.io/", - "contributions": [ - "code", - "bug" - ] - }, - { - "login": "ruthwikreddy09", - "name": "Ruthwik", - "avatar_url": "https://avatars.githubusercontent.com/u/126862059?v=4", - "profile": "https://github.com/RuthwikReddy09", - "contributions": [ - "code" - ] - }, - { - "login": "jdwilkin4", - "name": "Jessica Wilkins ", - "avatar_url": "https://avatars.githubusercontent.com/u/67210629?v=4", - "profile": "https://jessicawilkins.dev/", - "contributions": [ - "code" - ] - }, - { - "login": "vasanth9", - "name": "Vasanth Kumar Cheepurupalli", - "avatar_url": "https://avatars.githubusercontent.com/u/42891954?v=4", - "profile": "https://github.com/vasanth9", - "contributions": [ - "code" - ] - }, - { - "login": "conrmahr", - "name": "Conor Meagher", - "avatar_url": "https://avatars.githubusercontent.com/u/363781?v=4", - "profile": "https://conormeagher.com/", - "contributions": [ - "code" - ] - }, - { - "login": "DanexQ", - "name": "Daniel", - "avatar_url": "https://avatars.githubusercontent.com/u/72567464?v=4", - "profile": "https://github.com/DanexQ", - "contributions": [ - "infra" - ] - }, - { - "login": "jaas666", - "name": "Juan A.", - "avatar_url": "https://avatars.githubusercontent.com/u/30204147?v=4", - "profile": "https://github.com/jaas666", - "contributions": [ - "code", - "doc" - ] - }, - { - "login": "katt", - "name": "Alex / KATT", - "avatar_url": "https://avatars.githubusercontent.com/u/459267?v=4", - "profile": "https://katt.dev", - "contributions": [ - "bug" - ] - }, - { - "login": "dertimonius", - "name": "Timon Jurschitsch", - "avatar_url": "https://avatars.githubusercontent.com/u/103483059?v=4", - "profile": "https://www.linkedin.com/in/timonjurschitsch/", - "contributions": [ - "code" - ] - }, - { - "login": "biplobsd", - "name": "Biplob Sutradhar", - "avatar_url": "https://avatars.githubusercontent.com/u/43641536?v=4", - "profile": "http://biplobsd.me", - "contributions": [ - "code" - ] - }, - { - "login": "mrswastik-robot", - "name": "Swastik Patel", - "avatar_url": "https://avatars.githubusercontent.com/u/107865087?v=4", - "profile": "https://github.com/mrswastik-robot", - "contributions": [ - "doc" - ] - }, - { - "login": "gv14982", - "name": "Graham Vasquez", - "avatar_url": "https://avatars.githubusercontent.com/u/7041175?v=4", - "profile": "https://gvasquez.dev", - "contributions": [ - "code" - ] - }, - { - "login": "dominicduffin1", - "name": "Dominic Duffin", - "avatar_url": "https://avatars.githubusercontent.com/u/26224873?v=4", - "profile": "https://dominicduffin.uk", - "contributions": [ - "code" - ] - }, - { - "login": "5hraddha", - "name": "Shraddha", - "avatar_url": "https://avatars.githubusercontent.com/u/27571141?v=4", - "profile": "https://www.shraddha.tech", - "contributions": [ - "code" - ] - }, - { - "login": "xl4624", - "name": "Xiaomin Liu", - "avatar_url": "https://avatars.githubusercontent.com/u/116298054?v=4", - "profile": "https://github.com/xl4624", - "contributions": [ - "code" - ] - }, - { - "login": "jamiemagee", - "name": "Jamie Magee", - "avatar_url": "https://avatars.githubusercontent.com/u/1358764?v=4", - "profile": "https://jamiemagee.co.uk", - "contributions": [ - "ideas" - ] - }, - { - "login": "praveenshinde3", - "name": "Praveen Shinde", - "avatar_url": "https://avatars.githubusercontent.com/u/107350270?v=4", - "profile": "https://praveenshinde.vercel.app/", - "contributions": [ - "code" - ] - }, - { - "login": "aslemammad", - "name": "Mohammad Bagher Abiyat", - "avatar_url": "https://avatars.githubusercontent.com/u/37929992?v=4", - "profile": "https://github.com/Aslemammad", - "contributions": [ - "code" - ] - }, - { - "login": "lcforbes", - "name": "lcforbes", - "avatar_url": "https://avatars.githubusercontent.com/u/42080532?v=4", - "profile": "https://github.com/lcforbes", - "contributions": [ - "bug" - ] - }, - { - "login": "danvk", - "name": "Dan Vanderkam", - "avatar_url": "https://avatars.githubusercontent.com/u/98301?v=4", - "profile": "https://effectivetypescript.com", - "contributions": [ - "bug", - "ideas", - "tool" - ] - }, - { - "login": "nandertga", - "name": "nandertga", - "avatar_url": "https://avatars.githubusercontent.com/u/65074195?v=4", - "profile": "http://nandertga.ddns.net", - "contributions": [ - "code" - ] - }, - { - "login": "demianparkhomenko", - "name": "Demian Parkhomenko", - "avatar_url": "https://avatars.githubusercontent.com/u/95881717?v=4", - "profile": "https://linktr.ee/DemianParkhomenko", - "contributions": [ - "bug", - "code" - ] - }, - { - "login": "niklas-wortmann", - "name": "Jan-Niklas W.", - "avatar_url": "https://avatars.githubusercontent.com/u/6104311?v=4", - "profile": "https://niklas-wortmann.com", - "contributions": [ - "code" - ] - }, - { - "login": "rubiesonthesky", - "name": "rubiesonthesky", - "avatar_url": "https://avatars.githubusercontent.com/u/2591240?v=4", - "profile": "https://github.com/rubiesonthesky", - "contributions": [ - "ideas", - "code" - ] - }, - { - "login": "FarazPatankar", - "name": "Faraz Patankar", - "avatar_url": "https://avatars.githubusercontent.com/u/10681116?v=4", - "profile": "https://farazpatankar.com/", - "contributions": [ - "bug" - ] - }, - { - "login": "fb55", - "name": "Felix Boehm", - "avatar_url": "https://avatars.githubusercontent.com/u/188768?v=4", - "profile": "https://feedic.com", - "contributions": [ - "bug" - ] - }, - { - "login": "atilafassina", - "name": "Atila Fassina", - "avatar_url": "https://avatars.githubusercontent.com/u/2382552?v=4", - "profile": "https://atila.io", - "contributions": [ - "bug" - ] - }, - { - "login": "valon-loshaj", - "name": "Valon", - "avatar_url": "https://avatars.githubusercontent.com/u/73202963?v=4", - "profile": "https://github.com/valon-loshaj", - "contributions": [ - "doc" - ] - }, - { - "login": "voxpelli", - "name": "Pelle Wessman", - "avatar_url": "https://avatars.githubusercontent.com/u/34457?v=4", - "profile": "https://kodfabrik.se/", - "contributions": [ - "ideas" - ] - }, - { - "login": "michaelfaith", - "name": "michael faith", - "avatar_url": "https://avatars.githubusercontent.com/u/8071845?v=4", - "profile": "https://github.com/michaelfaith", - "contributions": [ - "code" - ] - } - ], - "contributorsSortAlphabetically": true, - "projectName": "create-typescript-app", - "projectOwner": "JoshuaKGoldberg", - "files": [ - "README.md" - ], - "commitType": "docs", - "commitConvention": "angular", - "contributorsPerLine": 7 + "badgeTemplate": "\t\"👪\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" />", + "contributors": [ + { + "avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4", + "contributions": [ + "bug", + "code", + "maintenance", + "review", + "tool", + "doc", + "infra", + "test", + "ideas", + "design" + ], + "login": "JoshuaKGoldberg", + "name": "Josh Goldberg", + "profile": "http://www.joshuakgoldberg.com" + }, + { + "login": "sinchang", + "name": "Jeff Wen", + "avatar_url": "https://avatars.githubusercontent.com/u/3297859?v=4", + "profile": "https://sinchang.me", + "contributions": ["code"] + }, + { + "login": "Pinjasaur", + "name": "Paul Esch-Laurent", + "avatar_url": "https://avatars.githubusercontent.com/u/6335792?v=4", + "profile": "https://paulisaweso.me/", + "contributions": ["code"] + }, + { + "login": "NazCodeland", + "name": "NazCodeland", + "avatar_url": "https://avatars.githubusercontent.com/u/113494366?v=4", + "profile": "https://github.com/NazCodeland", + "contributions": ["code"] + }, + { + "login": "johnnyreilly", + "name": "John Reilly", + "avatar_url": "https://avatars.githubusercontent.com/u/1010525?v=4", + "profile": "https://blog.johnnyreilly.com/", + "contributions": ["code", "ideas", "bug", "maintenance", "doc", "tool"] + }, + { + "login": "webpro", + "name": "Lars Kappert", + "avatar_url": "https://avatars.githubusercontent.com/u/456426?v=4", + "profile": "https://webpro.nl", + "contributions": ["code"] + }, + { + "login": "RebeccaStevens", + "name": "Rebecca Stevens", + "avatar_url": "https://avatars.githubusercontent.com/u/7224206?v=4", + "profile": "https://github.com/RebeccaStevens", + "contributions": ["code", "infra"] + }, + { + "login": "ronthetech", + "name": "Ron Jean-Francois", + "avatar_url": "https://avatars.githubusercontent.com/u/105710107?v=4", + "profile": "http://ronjeanfrancois.com", + "contributions": ["code", "infra"] + }, + { + "login": "nowyDEV", + "name": "Dominik Nowik", + "avatar_url": "https://avatars.githubusercontent.com/u/12304307?v=4", + "profile": "https://github.com/nowyDEV", + "contributions": ["tool", "code", "ideas"] + }, + { + "login": "TAKANOME-DEV", + "name": "takanomedev", + "avatar_url": "https://avatars.githubusercontent.com/u/79809121?v=4", + "profile": "https://github.com/TAKANOME-DEV", + "contributions": ["code"] + }, + { + "login": "emday4prez", + "name": "Emerson", + "avatar_url": "https://avatars.githubusercontent.com/u/35363144?v=4", + "profile": "https://github.com/emday4prez", + "contributions": ["code"] + }, + { + "login": "jsjoeio", + "name": "Joe Previte", + "avatar_url": "https://avatars.githubusercontent.com/u/3806031?v=4", + "profile": "https://typescriptcourse.com/tutorials", + "contributions": ["bug", "code"] + }, + { + "login": "navin-moorthy", + "name": "Navin Moorthy", + "avatar_url": "https://avatars.githubusercontent.com/u/39694575?v=4", + "profile": "https://navinmoorthy.me/", + "contributions": ["bug", "code", "ideas"] + }, + { + "login": "garuna-m6", + "name": "Anurag", + "avatar_url": "https://avatars.githubusercontent.com/u/23234342?v=4", + "profile": "https://github.com/garuna-m6", + "contributions": ["code"] + }, + { + "login": "danielroe", + "name": "Daniel Roe", + "avatar_url": "https://avatars.githubusercontent.com/u/28706372?v=4", + "profile": "https://roe.dev/", + "contributions": ["code"] + }, + { + "login": "the-lazy-learner", + "name": "Sudhansu", + "avatar_url": "https://avatars.githubusercontent.com/u/13695177?v=4", + "profile": "https://github.com/the-lazy-learner", + "contributions": ["code"] + }, + { + "login": "RNR1", + "name": "Ron Braha", + "avatar_url": "https://avatars.githubusercontent.com/u/45559220?v=4", + "profile": "https://linktr.ee/ronbraha", + "contributions": ["code", "design", "test"] + }, + { + "login": "tungbq", + "name": "Tung Bui (Leo)", + "avatar_url": "https://avatars.githubusercontent.com/u/85242618?v=4", + "profile": "https://github.com/tungbq", + "contributions": ["code"] + }, + { + "login": "orta", + "name": "Orta Therox", + "avatar_url": "https://avatars.githubusercontent.com/u/49038?v=4", + "profile": "https://orta.io", + "contributions": ["code", "ideas"] + }, + { + "login": "promise-dash", + "name": "Promise Dash", + "avatar_url": "https://avatars.githubusercontent.com/u/86062880?v=4", + "profile": "https://github.com/promise-dash", + "contributions": ["code"] + }, + { + "login": "jolg42", + "name": "Joël Galeran", + "avatar_url": "https://avatars.githubusercontent.com/u/1328733?v=4", + "profile": "https://twitter.com/Jolg42", + "contributions": ["code"] + }, + { + "login": "kristo-baricevic", + "name": "Kristo Baricevic", + "avatar_url": "https://avatars.githubusercontent.com/u/108290619?v=4", + "profile": "https://kristo-baricevic.github.io/", + "contributions": ["code"] + }, + { + "login": "ryota-murakami", + "name": "Ryota Murakami", + "avatar_url": "https://avatars.githubusercontent.com/u/5501268?v=4", + "profile": "https://ryota-murakami.github.io/", + "contributions": ["code", "bug"] + }, + { + "login": "ruthwikreddy09", + "name": "Ruthwik", + "avatar_url": "https://avatars.githubusercontent.com/u/126862059?v=4", + "profile": "https://github.com/RuthwikReddy09", + "contributions": ["code"] + }, + { + "login": "jdwilkin4", + "name": "Jessica Wilkins ", + "avatar_url": "https://avatars.githubusercontent.com/u/67210629?v=4", + "profile": "https://jessicawilkins.dev/", + "contributions": ["code"] + }, + { + "login": "vasanth9", + "name": "Vasanth Kumar Cheepurupalli", + "avatar_url": "https://avatars.githubusercontent.com/u/42891954?v=4", + "profile": "https://github.com/vasanth9", + "contributions": ["code"] + }, + { + "login": "conrmahr", + "name": "Conor Meagher", + "avatar_url": "https://avatars.githubusercontent.com/u/363781?v=4", + "profile": "https://conormeagher.com/", + "contributions": ["code"] + }, + { + "login": "DanexQ", + "name": "Daniel", + "avatar_url": "https://avatars.githubusercontent.com/u/72567464?v=4", + "profile": "https://github.com/DanexQ", + "contributions": ["infra"] + }, + { + "login": "jaas666", + "name": "Juan A.", + "avatar_url": "https://avatars.githubusercontent.com/u/30204147?v=4", + "profile": "https://github.com/jaas666", + "contributions": ["code", "doc"] + }, + { + "login": "katt", + "name": "Alex / KATT", + "avatar_url": "https://avatars.githubusercontent.com/u/459267?v=4", + "profile": "https://katt.dev", + "contributions": ["bug"] + }, + { + "login": "dertimonius", + "name": "Timon Jurschitsch", + "avatar_url": "https://avatars.githubusercontent.com/u/103483059?v=4", + "profile": "https://www.linkedin.com/in/timonjurschitsch/", + "contributions": ["code"] + }, + { + "login": "biplobsd", + "name": "Biplob Sutradhar", + "avatar_url": "https://avatars.githubusercontent.com/u/43641536?v=4", + "profile": "http://biplobsd.me", + "contributions": ["code"] + }, + { + "login": "mrswastik-robot", + "name": "Swastik Patel", + "avatar_url": "https://avatars.githubusercontent.com/u/107865087?v=4", + "profile": "https://github.com/mrswastik-robot", + "contributions": ["doc"] + }, + { + "login": "gv14982", + "name": "Graham Vasquez", + "avatar_url": "https://avatars.githubusercontent.com/u/7041175?v=4", + "profile": "https://gvasquez.dev", + "contributions": ["code"] + }, + { + "login": "dominicduffin1", + "name": "Dominic Duffin", + "avatar_url": "https://avatars.githubusercontent.com/u/26224873?v=4", + "profile": "https://dominicduffin.uk", + "contributions": ["code"] + }, + { + "login": "5hraddha", + "name": "Shraddha", + "avatar_url": "https://avatars.githubusercontent.com/u/27571141?v=4", + "profile": "https://www.shraddha.tech", + "contributions": ["code"] + }, + { + "login": "xl4624", + "name": "Xiaomin Liu", + "avatar_url": "https://avatars.githubusercontent.com/u/116298054?v=4", + "profile": "https://github.com/xl4624", + "contributions": ["code"] + }, + { + "login": "jamiemagee", + "name": "Jamie Magee", + "avatar_url": "https://avatars.githubusercontent.com/u/1358764?v=4", + "profile": "https://jamiemagee.co.uk", + "contributions": ["ideas"] + }, + { + "login": "praveenshinde3", + "name": "Praveen Shinde", + "avatar_url": "https://avatars.githubusercontent.com/u/107350270?v=4", + "profile": "https://praveenshinde.vercel.app/", + "contributions": ["code"] + }, + { + "login": "aslemammad", + "name": "Mohammad Bagher Abiyat", + "avatar_url": "https://avatars.githubusercontent.com/u/37929992?v=4", + "profile": "https://github.com/Aslemammad", + "contributions": ["code"] + }, + { + "login": "lcforbes", + "name": "lcforbes", + "avatar_url": "https://avatars.githubusercontent.com/u/42080532?v=4", + "profile": "https://github.com/lcforbes", + "contributions": ["bug"] + }, + { + "login": "danvk", + "name": "Dan Vanderkam", + "avatar_url": "https://avatars.githubusercontent.com/u/98301?v=4", + "profile": "https://effectivetypescript.com", + "contributions": ["bug", "ideas", "tool"] + }, + { + "login": "nandertga", + "name": "nandertga", + "avatar_url": "https://avatars.githubusercontent.com/u/65074195?v=4", + "profile": "http://nandertga.ddns.net", + "contributions": ["code"] + }, + { + "login": "demianparkhomenko", + "name": "Demian Parkhomenko", + "avatar_url": "https://avatars.githubusercontent.com/u/95881717?v=4", + "profile": "https://linktr.ee/DemianParkhomenko", + "contributions": ["bug", "code"] + }, + { + "login": "niklas-wortmann", + "name": "Jan-Niklas W.", + "avatar_url": "https://avatars.githubusercontent.com/u/6104311?v=4", + "profile": "https://niklas-wortmann.com", + "contributions": ["code"] + }, + { + "login": "rubiesonthesky", + "name": "rubiesonthesky", + "avatar_url": "https://avatars.githubusercontent.com/u/2591240?v=4", + "profile": "https://github.com/rubiesonthesky", + "contributions": ["ideas", "code"] + }, + { + "login": "FarazPatankar", + "name": "Faraz Patankar", + "avatar_url": "https://avatars.githubusercontent.com/u/10681116?v=4", + "profile": "https://farazpatankar.com/", + "contributions": ["bug"] + }, + { + "login": "fb55", + "name": "Felix Boehm", + "avatar_url": "https://avatars.githubusercontent.com/u/188768?v=4", + "profile": "https://feedic.com", + "contributions": ["bug"] + }, + { + "login": "atilafassina", + "name": "Atila Fassina", + "avatar_url": "https://avatars.githubusercontent.com/u/2382552?v=4", + "profile": "https://atila.io", + "contributions": ["bug"] + }, + { + "login": "valon-loshaj", + "name": "Valon", + "avatar_url": "https://avatars.githubusercontent.com/u/73202963?v=4", + "profile": "https://github.com/valon-loshaj", + "contributions": ["doc"] + }, + { + "login": "voxpelli", + "name": "Pelle Wessman", + "avatar_url": "https://avatars.githubusercontent.com/u/34457?v=4", + "profile": "https://kodfabrik.se/", + "contributions": ["ideas"] + }, + { + "login": "michaelfaith", + "name": "michael faith", + "avatar_url": "https://avatars.githubusercontent.com/u/8071845?v=4", + "profile": "https://github.com/michaelfaith", + "contributions": ["code"] + } + ], + "contributorsSortAlphabetically": true, + "projectName": "create-typescript-app", + "projectOwner": "JoshuaKGoldberg" } diff --git a/.prettierignore b/.prettierignore index 40d32561..24fb3851 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,3 @@ -/.all-contributorsrc /.husky /coverage* /lib diff --git a/src/next/blocks/blockAllContributors.test.ts b/src/next/blocks/blockAllContributors.test.ts index cd926516..31176735 100644 --- a/src/next/blocks/blockAllContributors.test.ts +++ b/src/next/blocks/blockAllContributors.test.ts @@ -11,14 +11,6 @@ describe("blockAllContributors", () => { expect(creation).toMatchInlineSnapshot(` { "addons": [ - { - "addons": { - "ignores": [ - "/.all-contributorsrc", - ], - }, - "block": [Function], - }, { "addons": { "secrets": [ @@ -61,7 +53,7 @@ describe("blockAllContributors", () => { { "commands": [ "pnpx all-contributors-cli generate", - "pnpx all-contributors-cli add test-owner code,content,docs,ideas,infra,maintenance,projectManagement,tool", + "pnpx all-contributors-cli add test-owner code,content,doc,ideas,infra,maintenance,projectManagement,tool", ], "phase": 3, }, @@ -89,14 +81,6 @@ describe("blockAllContributors", () => { expect(creation).toMatchInlineSnapshot(` { "addons": [ - { - "addons": { - "ignores": [ - "/.all-contributorsrc", - ], - }, - "block": [Function], - }, { "addons": { "secrets": [ @@ -139,7 +123,7 @@ describe("blockAllContributors", () => { { "commands": [ "pnpx all-contributors-cli generate", - "pnpx all-contributors-cli add test-owner code,content,docs,ideas,infra,maintenance,projectManagement,tool", + "pnpx all-contributors-cli add test-owner code,content,doc,ideas,infra,maintenance,projectManagement,tool", ], "phase": 3, }, diff --git a/src/next/blocks/blockAllContributors.ts b/src/next/blocks/blockAllContributors.ts index da0c8c5a..1ecd3f85 100644 --- a/src/next/blocks/blockAllContributors.ts +++ b/src/next/blocks/blockAllContributors.ts @@ -1,6 +1,5 @@ import { createSoloWorkflowFile } from "../../steps/writing/creation/dotGitHub/createSoloWorkflowFile.js"; import { base } from "../base.js"; -import { blockPrettier } from "./blockPrettier.js"; import { blockRepositorySecrets } from "./blockRepositorySecrets.js"; import { CommandPhase } from "./phases.js"; @@ -11,9 +10,6 @@ export const blockAllContributors = base.createBlock({ produce({ options }) { return { addons: [ - blockPrettier({ - ignores: ["/.all-contributorsrc"], - }), blockRepositorySecrets({ secrets: [ { @@ -57,7 +53,7 @@ export const blockAllContributors = base.createBlock({ { commands: [ `pnpx all-contributors-cli generate`, - `pnpx all-contributors-cli add ${options.owner} code,content,docs,ideas,infra,maintenance,projectManagement,tool`, + `pnpx all-contributors-cli add ${options.owner} code,content,doc,ideas,infra,maintenance,projectManagement,tool`, ], phase: CommandPhase.Process, }, diff --git a/src/steps/writing/creation/rootFiles.ts b/src/steps/writing/creation/rootFiles.ts index 95e669f3..2ffa6aa8 100644 --- a/src/steps/writing/creation/rootFiles.ts +++ b/src/steps/writing/creation/rootFiles.ts @@ -29,7 +29,6 @@ export async function createRootFiles(options: Options) { }), ".nvmrc": `20.18.0\n`, ".prettierignore": formatIgnoreFile([ - ...(options.excludeAllContributors ? [] : ["/.all-contributorsrc"]), "/.husky", ...(options.excludeTests ? [] : ["/coverage"]), "/lib", From 72ec8bfb6586c06832b33d6c48c597e985d8a3f7 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Tue, 31 Dec 2024 03:31:01 -0500 Subject: [PATCH 2/3] migration snapshot --- script/__snapshots__/migrate-test-e2e.ts.snap | 1 - 1 file changed, 1 deletion(-) diff --git a/script/__snapshots__/migrate-test-e2e.ts.snap b/script/__snapshots__/migrate-test-e2e.ts.snap index 77431ca5..f35100b4 100644 --- a/script/__snapshots__/migrate-test-e2e.ts.snap +++ b/script/__snapshots__/migrate-test-e2e.ts.snap @@ -113,7 +113,6 @@ exports[`expected file changes > .prettierignore 1`] = ` "--- a/.prettierignore +++ b/.prettierignore @@ ... @@ - /.all-contributorsrc /.husky -/coverage* +/coverage From cb100198523ca297118a72babb125a2ea956edc8 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Tue, 31 Dec 2024 03:33:08 -0500 Subject: [PATCH 3/3] fix: remove redundant coverage.exclude: lib from vitest.config.ts --- src/next/blocks/blockTypeScript.test.ts | 16 ++++++++----- src/next/blocks/blockTypeScript.ts | 5 +--- src/next/blocks/blockVitest.test.ts | 11 ++++----- src/next/blocks/blockVitest.ts | 32 +++++++++++++++---------- src/steps/writing/creation/rootFiles.ts | 1 - vitest.config.ts | 1 - 6 files changed, 36 insertions(+), 30 deletions(-) diff --git a/src/next/blocks/blockTypeScript.test.ts b/src/next/blocks/blockTypeScript.test.ts index 47f57b24..09462029 100644 --- a/src/next/blocks/blockTypeScript.test.ts +++ b/src/next/blocks/blockTypeScript.test.ts @@ -117,12 +117,14 @@ describe("blockTypeScript", () => { }, { "addons": { + "coverage": { + "include": [ + "src", + ], + }, "exclude": [ "lib", ], - "include": [ - "src", - ], }, "block": [Function], }, @@ -266,12 +268,14 @@ describe("blockTypeScript", () => { }, { "addons": { + "coverage": { + "include": [ + "src", + ], + }, "exclude": [ "lib", ], - "include": [ - "src", - ], }, "block": [Function], }, diff --git a/src/next/blocks/blockTypeScript.ts b/src/next/blocks/blockTypeScript.ts index b4acd1bf..9da79861 100644 --- a/src/next/blocks/blockTypeScript.ts +++ b/src/next/blocks/blockTypeScript.ts @@ -83,10 +83,7 @@ export * from "./types.js"; }, }, }), - blockVitest({ - exclude: ["lib"], - include: ["src"], - }), + blockVitest({ coverage: { include: ["src"] }, exclude: ["lib"] }), blockVSCode({ debuggers: options.bin ? [ diff --git a/src/next/blocks/blockVitest.test.ts b/src/next/blocks/blockVitest.test.ts index ce64bb1e..7f03630e 100644 --- a/src/next/blocks/blockVitest.test.ts +++ b/src/next/blocks/blockVitest.test.ts @@ -239,8 +239,7 @@ describe("blockVitest", () => { clearMocks: true, coverage: { all: true, - exclude: [], - include: [], + include: undefined, reporter: ["html", "lcov"], }, exclude: [, "node_modules"], @@ -488,8 +487,7 @@ describe("blockVitest", () => { clearMocks: true, coverage: { all: true, - exclude: [], - include: [], + include: undefined, reporter: ["html", "lcov"], }, exclude: [, "node_modules"], @@ -515,10 +513,11 @@ describe("blockVitest", () => { addons: { coverage: { directory: "coverage*", + exclude: ["other"], flags: "unit", + include: ["src/"], }, exclude: ["lib/"], - include: ["src/"], }, options: optionsBase, }); @@ -755,7 +754,7 @@ describe("blockVitest", () => { clearMocks: true, coverage: { all: true, - exclude: ["lib/"], + exclude: ["other"], include: ["src/"], reporter: ["html", "lcov"], }, diff --git a/src/next/blocks/blockVitest.ts b/src/next/blocks/blockVitest.ts index 77a5a6d9..286325cd 100644 --- a/src/next/blocks/blockVitest.ts +++ b/src/next/blocks/blockVitest.ts @@ -22,12 +22,15 @@ export const blockVitest = base.createBlock({ addons: { coverage: z .object({ - directory: z.string(), + directory: z.string().optional(), + exclude: z.array(z.string()).optional(), flags: z.string().optional(), + include: z.array(z.string()).optional(), }) - .default({ directory: "coverage" }), + .default({}), + env: z.record(z.string(), z.string()).default({}), exclude: z.array(z.string()).default([]), - include: z.array(z.string()).default([]), + flags: z.array(z.string()).default([]), }, migrate() { return { @@ -42,14 +45,14 @@ export const blockVitest = base.createBlock({ }; }, produce({ addons }) { - const { coverage, exclude = [], include = [] } = addons; + const { coverage, env, exclude = [], flags } = addons; + const coverageDirectory = coverage.directory ?? "coverage"; const excludeText = JSON.stringify(exclude); - const includeText = JSON.stringify(include); return { addons: [ blockCSpell({ - ignores: [coverage.directory], + ignores: [coverageDirectory], }), blockDevelopmentDocs({ sections: { @@ -90,7 +93,7 @@ Calls to \`console.log\`, \`console.warn\`, and other console methods will cause ], }, ], - ignores: [coverage.directory, "**/*.snap"], + ignores: [coverageDirectory, "**/*.snap"], imports: [{ source: "@vitest/eslint-plugin", specifier: "vitest" }], }), blockExampleFiles({ @@ -143,7 +146,7 @@ describe("greet", () => { }, }), blockGitignore({ - ignores: [`/${coverage.directory}`], + ignores: [`/${coverageDirectory}`], }), blockGitHubActionsCI({ jobs: [ @@ -152,6 +155,7 @@ describe("greet", () => { steps: [ { run: "pnpm run test --coverage" }, { + ...(Object.keys(env).length && { env }), if: "always()", uses: "codecov/codecov-action@v3", ...(coverage.flags && { with: { flags: coverage.flags } }), @@ -177,12 +181,12 @@ describe("greet", () => { "vitest", ), scripts: { - test: "vitest", + test: `vitest ${flags.join(" ")}`.trim(), }, }, }), blockPrettier({ - ignores: [`/${coverage.directory}`], + ignores: [`/${coverageDirectory}`], }), blockTSup({ entry: ["!src/**/*.test.*"], @@ -212,8 +216,12 @@ export default defineConfig({ clearMocks: true, coverage: { all: true, - exclude: ${excludeText}, - include: ${includeText}, + ${ + coverage.exclude?.length + ? `exclude: ${JSON.stringify(coverage.exclude)}, + ` + : "" + }include: ${JSON.stringify(coverage.include)}, reporter: ["html", "lcov"], }, exclude: [${excludeText.slice(1, excludeText.length - 1)}, "node_modules"], diff --git a/src/steps/writing/creation/rootFiles.ts b/src/steps/writing/creation/rootFiles.ts index 2ffa6aa8..0684468d 100644 --- a/src/steps/writing/creation/rootFiles.ts +++ b/src/steps/writing/creation/rootFiles.ts @@ -136,7 +136,6 @@ export default defineConfig({ clearMocks: true, coverage: { all: true, - exclude: ["lib"], include: ["src"], reporter: ["html", "lcov"], }, diff --git a/vitest.config.ts b/vitest.config.ts index 36fbb032..90b94059 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -5,7 +5,6 @@ export default defineConfig({ clearMocks: true, coverage: { all: true, - exclude: ["lib"], include: ["src"], reporter: ["html", "lcov"], },