Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ“ Documentation: Not really documentation; rather feedback on using the latest and greatest #147

Closed
2 tasks done
johnnyreilly opened this issue Dec 24, 2022 Β· 22 comments
Assignees
Labels
area: documentation Improvements or additions to docs

Comments

@johnnyreilly
Copy link
Collaborator

Bug Report Checklist

Overview

When using this, I didn't know what this meant:

βœ” Whether to skip calling the GitHub API (effectively making this a local-only change). Β· no

I still don't! What does it mean?

The generated project still seems to be not completely initialised. Consider the package.json:

	"author": "Josh Goldberg <[email protected]>",

Likewise, the contributors lists Josh Goldberg and not me.

Additional Info

Happy to provide more in depth details

@johnnyreilly johnnyreilly added the area: documentation Improvements or additions to docs label Dec 24, 2022
@JoshuaKGoldberg JoshuaKGoldberg self-assigned this Dec 24, 2022
@johnnyreilly
Copy link
Collaborator Author

The .all-contributorsrc is similarly not really updated:

{
  "badgeTemplate": "<img alt=\"All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/all_contributors-<%= contributors.length %>-21bb42.svg\" />",
  "commit": false,
  "commitConvention": "angular",
  "contributors": [
    {
      "avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4",
      "contributions": ["tool"],
      "login": "JoshuaKGoldberg",
      "name": "Josh Goldberg",
      "profile": "http://www.joshuakgoldberg.com"
    }
  ],
  "contributorsPerLine": 7,
  "files": ["README.md"],
  "imageSize": 100,
  "projectName": "template-typescript-node-package",
  "projectOwner": "JoshuaKGoldberg",
  "repoHost": "https://github.com",
  "repoType": "github",
  "skipCi": true
}

BTW, as friendly as they are, I'm not in love with the contributors functionality; I find it quite noisy. Might be nice to opt out entirely. Possibly personal preference.

@JoshuaKGoldberg
Copy link
Owner

This is great feedback, thanks @johnnyreilly. I'll file out individual issues. Keep it coming! πŸ˜„

When using this, I didn't know what this meant:
βœ” Whether to skip calling the GitHub API (effectively making this a local-only change). Β· no

Yeah, that's not a great explanation. I'd added --skip-api so that when testing the setup script (e.g. in an actual end-to-end test for it, #146), there's a way to stop it from making API requests that change the repository. But you as an end user would basically never use that flag.

The generated project still seems to be not completely initialised. Consider the package.json:

Feels like a mixture of bug and feature request. It should ideally replace that author with the GitHub auth of whoever is running the script. Maybe even the end-to-end test script should verify that the string josh is nowhere in the repository after switching to test values...

Likewise, the contributors lists Josh Goldberg and not me.
...
The .all-contributorsrc is similarly not really updated:

I am slightly egotistically keeping myself in that list for "tool" because hey, it's my tooling that set up the package! But similar to the author portion, agreed, you the setup user should be added to it.

Might be nice to opt out entirely.

Heh, yeah. I can see it being especially noisy if used in single-person personal projects or even closed source projects... I'm personally not motivated to add the requisite logic to be able to turn different areas of integration on or off. But if you have ideas, I'd be up for receiving an issue and ponder some more.


Btw, @allcontributors add @johnnyreilly for bug, ideas, promotion. I'm trying to get better at remembering to do this - these all should have been done a while ago. πŸ˜„

@JoshuaKGoldberg
Copy link
Owner

@allcontributors add @johnnyreilly for bug, ideas, promotion.

@allcontributors
Copy link
Contributor

@JoshuaKGoldberg

I've put up a pull request to add @johnnyreilly! πŸŽ‰

@johnnyreilly
Copy link
Collaborator Author

I need to discover what @allcontributors is! But not right now. Another one: the initialised README is also kind of incomplete; still lists the template repo stuff / old contributors etc

<h1 align="center">Remark Cloudinary Docusaurus plugin</h1>

<p align="center">Cloudinary offers an image CDN which can improve performance of your site. This plugin allows Docusaurus to use Cloudinary to serve optimised images.</p>

<p align="center">
	<a href="#contributors" target="_blank">
<!-- prettier-ignore-start -->
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
<img alt="All Contributors: 4" src="https://img.shields.io/badge/all_contributors-4-21bb42.svg" />
<!-- ALL-CONTRIBUTORS-BADGE:END -->
<!-- prettier-ignore-end -->
	</a>
	<a href="https://codecov.io/gh/johnnyreilly/remark-cloudinary-docusaurus" target="_blank">
		<img alt="Codecov Test Coverage" src="https://codecov.io/gh/JoshuaKGoldberg/template-typescript-node-package/branch/main/graph/badge.svg?token=eVIFY4MhfQ"/>
	</a>
	<a href="https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank">
		<img alt="Contributor Covenant" src="https://img.shields.io/badge/code_of_conduct-enforced-21bb42" />
	</a>
	<a href="https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/LICENSE.md" target="_blank">
	    <img alt="License: MIT" src="https://img.shields.io/github/license/JoshuaKGoldberg/template-typescript-node-package?color=21bb42">
    </a>
	<a href="https://github.com/sponsors/JoshuaKGoldberg" target="_blank">
    	<img alt="Sponsor: On GitHub" src="https://img.shields.io/badge/sponsor-on_github-21bb42.svg" />
    </a>
	<img alt="Style: Prettier" src="https://img.shields.io/badge/style-prettier-21bb42.svg" />
    <img alt="TypeScript: Strict" src="https://img.shields.io/badge/typescript-strict-21bb42.svg" />
</p>

## Usage

```shell
npm i template-typescript-node-package
import { greet } from "template-typescript-node-package";

greet("Hello, world!");

Development

See .github/CONTRIBUTING.md.
Thanks! πŸ’–

Contributors

Josh Goldberg
Josh Goldberg

πŸ› πŸ’» πŸ–‹ πŸ’‘ πŸ€” πŸš‡ 🚧 πŸ“¦ πŸ“† πŸ‘€ πŸ›‘οΈ πŸ”§ ⚠️
Jeff Wen
Jeff Wen

πŸ”§
Paul Esch-Laurent
Paul Esch-Laurent

πŸ”§
NazCodeland
NazCodeland

πŸ”§

πŸ’™ This package is based on @JoshuaKGoldberg's template-typescript-node-package.

<!-- You can remove this notice if you don't want it πŸ™‚ no worries! -->

> πŸ’™ This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [template-typescript-node-package](https://github.com/JoshuaKGoldberg/template-typescript-node-package).

@allcontributors
Copy link
Contributor

@johnnyreilly

I could not determine your intention.

Basic usage: @all-contributors please add @Someone for code, doc and infra

For other usages see the documentation

@johnnyreilly
Copy link
Collaborator Author

johnnyreilly commented Dec 24, 2022 β€’

Ignore me @allcontibutors. This is going to screw you up too but that's life πŸ˜‰

I am slightly egotistically keeping myself in that list for "tool" because hey, it's my tooling that set up the package! But similar to the author portion, agreed, you the setup user should be added to it.

I understand that, but I suspect users and potential users may take the view "look, the electricity company is in some way a contributor to this, in that without electricity, this wouldn't be here. But it's not relevant - I don't want it". Harsh, but quite possibly a common sentiment.

@johnnyreilly
Copy link
Collaborator Author

johnnyreilly commented Dec 24, 2022 β€’

Oh and a question:

ACCESS_TOKEN: A GitHub PAT with repo permissions

I've an idea there's a built in token that GitHub Actions can access - could that be used instead?

Yeah ${{ secrets.GITHUB_TOKEN }}

That's built in and requires no setup - would that work for this?

@johnnyreilly
Copy link
Collaborator Author

johnnyreilly commented Dec 24, 2022 β€’

image

github actions also not updated by the looks: https://github.com/johnnyreilly/remark-cloudinary-docusaurus/actions/runs/3772083366/jobs/6412821035

@johnnyreilly
Copy link
Collaborator Author

Dammit - it published src and not lib

image

https://www.npmjs.com/package/remark-cloudinary-docusaurus?activeTab=explore

@JoshuaKGoldberg
Copy link
Owner

On the bright side, this is the first time I've seen activeTab=explore in action on npmjs.com! πŸ™ƒ

@johnnyreilly
Copy link
Collaborator Author

Same!

@johnnyreilly
Copy link
Collaborator Author

Probably going to call it for now, but somehow there's a way to make (I guess) release-it use lib instead of src when it publishes. Don't know what though

Repository owner deleted a comment from allcontributors bot Dec 24, 2022
@johnnyreilly
Copy link
Collaborator Author

Probably something to do with this: https://github.com/release-it/release-it/blob/HEAD/docs/npm.md#publish-path

But it looks like release-it may not have run the build prior to it perhaps?

@johnnyreilly
Copy link
Collaborator Author

@johnnyreilly
Copy link
Collaborator Author

that worked I think

@JoshuaKGoldberg
Copy link
Owner

Amazing! And yeah it makes a lot of sense. Up for sending a PR? You've already contributed so much to this repo, might as well get in the code history too πŸ˜„

@johnnyreilly
Copy link
Collaborator Author

yeah sure - probably after Christmas. Merry Christmas Josh!

@JoshuaKGoldberg
Copy link
Owner

Merry Christmas!

Joe Pesci from Home Alone saying "Merry Christmas", smiling, with a gold tooth shining

@johnnyreilly
Copy link
Collaborator Author

Haha - I can't work out if there's a latent threat in that GiF πŸ˜…

@JoshuaKGoldberg
Copy link
Owner

@allcontributors add @johnnyreilly for maintenance

@allcontributors
Copy link
Contributor

@JoshuaKGoldberg

I've put up a pull request to add @johnnyreilly! πŸŽ‰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: documentation Improvements or additions to docs
Projects
None yet
Development

No branches or pull requests

2 participants