mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-22 22:56:07 +00:00
afb8586fc4
* Make iterating over mirrors more flexible (and reusable) At the same time we fix an error, where we aren't using the mirrors for the OTP build :) * Make installation of cache-based tool callback -based This hopefully eases introduction of new languages at the cost of a bit of abstraction (there's an extensive comment on how to fill in the install options' object) We'll soon test this abstraction by making Gleam and rebar3 cached too * Increase our visibility when debugging * Improve on lessons learned to ease incorporation of further caches (starting with Gleam on Linux) * Cache Gleam on Windows * Cache Rebar3 on Linux Also, gets rid of all .sh * Cache Rebar3 on Windows Also, gets rid of all .ps1 * Act on CI results And also be consistent when it comes to using fs....Sync vs fs.promise.... * Move tests to a single file * Move main executable to a single file * Decrease number of changes to ease review * Expose function required for tests * Don't async/await when not required * Resolve post- merge-conflict resolution issues
36 lines
1.2 KiB
JSON
36 lines
1.2 KiB
JSON
{
|
|
"name": "setup-beam",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "ncc build src/setup-beam.js --no-cache",
|
|
"format": "prettier src/**/*.js --write && prettier test/**/*.js --write",
|
|
"jslint": "eslint src/**/*.js && eslint test/**/*.js",
|
|
"licenses": "yarn licenses generate-disclaimer > 3RD_PARTY_LICENSES",
|
|
"markdownlint": "markdownlint *.md ./github/**/*.md",
|
|
"shellcheck": "shellcheck .github/workflows/*.sh",
|
|
"test": "node test/setup-beam.test.js",
|
|
"yamllint": "yamllint .github/workflows/**.yml && yamllint .*.yml && yamllint *.yml",
|
|
"build-dist": "npm install && npm run build && npm run format && npm run markdownlint && npm run shellcheck && npm run yamllint && npm run jslint"
|
|
},
|
|
"dependencies": {
|
|
"@actions/core": "1.10.0",
|
|
"@actions/exec": "1.1.1",
|
|
"@actions/http-client": "2.1.0",
|
|
"@actions/tool-cache": "2.0.1",
|
|
"semver": "7.5.3"
|
|
},
|
|
"devDependencies": {
|
|
"@vercel/ncc": "0.36.1",
|
|
"eslint": "8.43.0",
|
|
"markdownlint-cli": "0.35.0",
|
|
"prettier": "2.8.8",
|
|
"shellcheck": "2.2.0",
|
|
"yaml-lint": "1.7.0",
|
|
"yarn": "1.22.19"
|
|
},
|
|
"engines": {
|
|
"node": ">=16"
|
|
}
|
|
}
|