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

chore: replace nps with npm scripts #5128

Merged
merged 31 commits into from
Aug 5, 2024
Merged

chore: replace nps with npm scripts #5128

merged 31 commits into from
Aug 5, 2024

Conversation

voxpelli
Copy link
Member

@voxpelli voxpelli commented Mar 26, 2024

PR Checklist

Overview

Work in progress draft branch to keep #5042 cleaner and more focused

Remaining

  • Doc scripts
  • Node based tests
  • Coverage
  • Remove:
    > PRO TIP: After `npm install`, run `npm start` to see a list of commands which can be run with `npm start <command>` (powered by [nps](https://npm.im/nps)).

@Uzlopak
Copy link
Member

Uzlopak commented Mar 26, 2024

Yes please

@voxpelli
Copy link
Member Author

Related: #5159

I would suggest moving the version scripts to GitHub Actions along with that.

voxpelli added a commit that referenced this pull request Jul 15, 2024
voxpelli added a commit that referenced this pull request Jul 15, 2024
@voxpelli
Copy link
Member Author

voxpelli commented Aug 1, 2024

Waiting for #5177 before I continue on this one, as they overlap

@voxpelli voxpelli self-assigned this Aug 1, 2024
voxpelli added a commit that referenced this pull request Aug 1, 2024
* ci: use `npm ci` consistently

* ci: use `actions/setup-node` cache mechanism

* ci: reusable workflow for DRY:er setup

* ci: remove unused `delete-runs.yml`

* ci: fix matrix definitions

* ci: fix matrix definitions, take 2

* ci: ensure they all scripts can use `npm run`

See also #5128

* ci: add node 22 to `test-node`

* ci: have the coverage run always happen on `lts/*`

* ci: set permissions

* ci: lock down all non-github actions by hash

* ci: use reusable workflow for full tests as well

* ci: remove redundant activity types

* ci: add one more permissions

* ci: use full sha hashes for third party workflows

* ci: be consistent in naming

* ci: generate the coverage report using nps for now

See #5126

* ci: parallelize, run local browser test right away

* ci: disable saucelabs for now, too noisy
@coveralls
Copy link

coveralls commented Aug 1, 2024

Coverage Status

coverage: 94.628% (+0.1%) from 94.523%
when pulling 70bb03d on voxpelli/issue5126
into 1883c41 on main.

@voxpelli voxpelli marked this pull request as ready for review August 2, 2024 22:20
@voxpelli voxpelli changed the title chore: WIP - replace nps with npm scripts chore: replace nps with npm scripts Aug 2, 2024
@voxpelli
Copy link
Member Author

voxpelli commented Aug 2, 2024

Created a related feature request for VSCode: microsoft/vscode#224581 Requesting syntax highlighting of npm scripts

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: this looks wonderful, thank you!

It's hard to review such a sweeping PR - but everything works on my end.

@voxpelli voxpelli merged commit c44653a into main Aug 5, 2024
105 checks passed
@voxpelli voxpelli deleted the voxpelli/issue5126 branch August 5, 2024 12:38
@Uzlopak
Copy link
Member

Uzlopak commented Aug 5, 2024

Great success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

🛠 Repo: Replace nps with ordinary npm scripts
4 participants