Skip to content

Commit

Permalink
- drop gulp.
Browse files Browse the repository at this point in the history
- update all deps to latest.
- update node to v20.
  • Loading branch information
lukka committed Nov 1, 2023
1 parent ed58931 commit 8c0367b
Show file tree
Hide file tree
Showing 9 changed files with 45,165 additions and 40,170 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
@@ -1 +1,5 @@
node_modules
/dist
/node_modules
.eslintrc.js
*.js
14 changes: 7 additions & 7 deletions .github/workflows/build-test.yml
Expand Up @@ -4,7 +4,7 @@ on:
push:
pull_request:
schedule:
- cron: '0 1 * * SUN'
- cron: '0 1 * * *'
workflow_dispatch:

jobs:
Expand All @@ -22,18 +22,18 @@ jobs:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'
# How to consume GitHub packages, from this message (!): https://github.community/t/download-from-github-package-registry-without-authentication/14407/35
# Inspired from here: https://github.com/jcansdale-test/npmrc-configurations/blob/master/.github/workflows/blank.yml
- name: Authenticate to GitHub Packages
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
echo "@${{ github.repository_owner }}:registry=https://npm.pkg.github.com/" >> ~/.npmrc
- run: |
npm install
npm run test
name: build and test
shell: bash
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm run test
- run: npm run pack
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
Expand Down
21 changes: 15 additions & 6 deletions CONTRIBUTING.md
@@ -1,16 +1,25 @@
# Contributing
* [Prerequisites](#prerequisites)
* [Building](#build-and-lint)
* [Packaging](#packaging)
* [Testing](#testing)
- [Contributing](#contributing)
- [Prerequisites](#prerequisites)
- [Setup for consuming GitHub Registry public packages](#setup-for-consuming-github-registry-public-packages)
- [Build and lint](#build-and-lint)
- [Packaging](#packaging)
- [Testing](#testing)

The software is provided as is, there is no warranty of any kind. All users are encouraged to improve the [source code](https://github.com/lukka/run-vcpkg) with fixes and new features contributed by means of Pull Requests.


## Prerequisites
[gulp 4](https://www.npmjs.com/package/gulp4) globally installed.

### Setup for GitHub Registry public packages
Run

```bash
npm install
```

to populate the dependencies in `./node_modules` directory.

### Setup for consuming GitHub Registry public packages

`run-vcpkg` depends on public NPM packages published by [lukka/run-cmake-vcpkg-action-libs](https://github.com/lukka/run-cmake-vcpkg-action-libs) in the [GitHub Packages registry](https://docs.github.com/en/free-pro-team@latest/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages).
Unexpectedly, a public package still requires authentication when downloading it, hence if you want to `npm install` those packages correctly, you need to obtain a token with `read:packages` scope. Then create in the root of the repository a `.npmrc` file with the following content:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
@@ -1,5 +1,5 @@
The MIT License (MIT)
Copyright (c) 2019-2020-2021-2022 Luca Cappa
Copyright (c) 2019-2020-2021-2022-2023 Luca Cappa

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -58,7 +58,7 @@ inputs:
description: "Specifies a semicolon separated list of regular expressions that are used to identify log file paths in the workflow output. A regular expression must have a single capturing group, that is a single pair of parenthesis such as 'See also (.+.log)'. When a match occurs, the content of the file is written into the workflow output for disclosing its content to the user. The default regular expressions are for CMake's and vcpkg's log files."

runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'

branding:
Expand Down
59,673 changes: 40,824 additions & 18,849 deletions dist/index.js

Large diffs are not rendered by default.

64 changes: 0 additions & 64 deletions gulpfile.js

This file was deleted.

0 comments on commit 8c0367b

Please sign in to comment.