2021-09-14 14:50:57 +08:00
|
|
|
{
|
|
|
|
"name": "setup-cpp",
|
2023-07-07 06:57:48 +08:00
|
|
|
"version": "0.30.1",
|
2021-09-14 14:57:47 +08:00
|
|
|
"description": "Install all the tools required for building and testing C++/C projects.",
|
2021-09-14 14:50:57 +08:00
|
|
|
"repository": "https://github.com/aminya/setup-cpp",
|
|
|
|
"license": "Apache-2.0",
|
2021-10-08 09:00:00 +08:00
|
|
|
"author": "Amin Yahyaabadi",
|
2022-07-06 12:19:58 +08:00
|
|
|
"exports": {
|
2023-07-16 06:41:58 +08:00
|
|
|
"import": "./dist/modern/setup-cpp.mjs",
|
|
|
|
"require": "./dist/legacy/setup-cpp.js"
|
2022-07-06 12:19:58 +08:00
|
|
|
},
|
2023-07-16 06:41:58 +08:00
|
|
|
"main": "dist/legacy/setup-cpp.js",
|
|
|
|
"actions": "./dist/actions/setup-cpp.js",
|
|
|
|
"modern": "./dist/modern/setup-cpp.js",
|
2021-10-08 09:00:00 +08:00
|
|
|
"source": "./src/main.ts",
|
|
|
|
"bin": {
|
2023-07-16 06:41:58 +08:00
|
|
|
"setup-cpp": "dist/legacy/setup-cpp.js"
|
2021-10-08 09:00:00 +08:00
|
|
|
},
|
2023-01-18 13:40:21 +08:00
|
|
|
"files": [
|
2023-05-27 04:20:42 +08:00
|
|
|
"action.yml",
|
|
|
|
".dockerignore",
|
2023-01-18 13:40:21 +08:00
|
|
|
"dist",
|
|
|
|
"src",
|
|
|
|
"packages",
|
2023-05-27 04:20:42 +08:00
|
|
|
"dev/docker",
|
|
|
|
"dev/container-tests",
|
2023-01-18 13:40:21 +08:00
|
|
|
"README.md",
|
|
|
|
"LICENSE.txt",
|
|
|
|
"LICENSE.dependencies.txt",
|
|
|
|
"package.json",
|
2023-05-27 04:20:42 +08:00
|
|
|
"package-version.json",
|
2023-01-18 13:40:21 +08:00
|
|
|
"tsconfig.json"
|
|
|
|
],
|
2021-09-14 14:50:57 +08:00
|
|
|
"scripts": {
|
2023-07-16 06:41:58 +08:00
|
|
|
"build": "shx rm -rf dist/ && shx mkdir -p ./dist/legacy ./dist/actions ./dist/modern && run-p lint.tsc build.parcel copy.matchers",
|
2023-01-18 13:40:21 +08:00
|
|
|
"build.docker": "pnpm build && docker build -f ./dev/docker/ubuntu_node.dockerfile -t setup-cpp .",
|
|
|
|
"build.docker.arch": "pnpm build && docker build -f ./dev/docker/arch_node.dockerfile -t setup-cpp:arch .",
|
|
|
|
"build.docker.fedora": "pnpm build && docker build -f ./dev/docker/fedora_node.dockerfile -t setup-cpp:fedora .",
|
|
|
|
"build.docker.ubuntu": "pnpm build && docker build -f ./dev/docker/ubuntu_node.dockerfile -t setup-cpp:ubuntu .",
|
2023-04-23 15:53:36 +08:00
|
|
|
"build.parcel": "cross-env NODE_ENV=production parcel build && babel ./dist --out-dir dist --plugins @upleveled/babel-plugin-remove-node-prefix --compact --no-babelrc --source-maps true",
|
2023-04-23 16:09:38 +08:00
|
|
|
"bump": "ncu -u -x numerous && pnpm update",
|
2022-02-14 12:16:18 +08:00
|
|
|
"clean": "shx rm -rf .parcel-cache dist exe",
|
2023-07-16 06:41:58 +08:00
|
|
|
"copy.matchers": "run-p copy.matchers.legacy copy.matchers.actions copy.matchers.modern",
|
|
|
|
"copy.matchers.legacy": "shx cp ./src/gcc/gcc_matcher.json ./dist/legacy/ && shx cp ./src/msvc/msvc_matcher.json ./dist/legacy/ && shx cp ./src/python/python_matcher.json ./dist/legacy/ && shx cp ./src/llvm/llvm_matcher.json ./dist/legacy/",
|
|
|
|
"copy.matchers.actions": "shx cp ./src/gcc/gcc_matcher.json ./dist/actions/ && shx cp ./src/msvc/msvc_matcher.json ./dist/actions/ && shx cp ./src/python/python_matcher.json ./dist/actions/ && shx cp ./src/llvm/llvm_matcher.json ./dist/actions/",
|
|
|
|
"copy.matchers.modern": "shx cp ./src/gcc/gcc_matcher.json ./dist/modern/ && shx cp ./src/msvc/msvc_matcher.json ./dist/modern/ && shx cp ./src/python/python_matcher.json ./dist/modern/ && shx cp ./src/llvm/llvm_matcher.json ./dist/modern/",
|
2021-09-14 14:50:57 +08:00
|
|
|
"dev": "cross-env NODE_ENV=development parcel watch",
|
2022-08-08 09:18:26 +08:00
|
|
|
"docs": "shx rm -rf packages/*/README.md && pnpm -r exec readme --path ../../dev/readme/template.md -y && pnpm -r exec ts-readme",
|
2022-08-03 04:12:42 +08:00
|
|
|
"format": "run-s lint.prettier",
|
|
|
|
"lint": "run-p --aggregate-output --continue-on-error lint.cspell lint.eslint lint.prettier lint.tsc",
|
2022-11-09 08:08:38 +08:00
|
|
|
"lint.cspell": "cspell lint --no-progress --show-suggestions --cache --cache-location ./.cache/cspell/.cspellcache",
|
2022-08-03 04:12:42 +08:00
|
|
|
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
|
2022-11-09 08:30:09 +08:00
|
|
|
"lint.prettier": "prettier --list-different --write .",
|
2022-10-20 13:05:45 +08:00
|
|
|
"lint.tsc": "tsc --noEmit",
|
2023-05-25 15:17:16 +08:00
|
|
|
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && node ./dev/scripts/pack-exe.mjs",
|
2023-05-27 04:20:42 +08:00
|
|
|
"prepare": "pnpm run -r build && pnpm run -w build && rm ./dist/tsconfig.tsbuildinfo",
|
2023-01-18 13:40:21 +08:00
|
|
|
"start.docker": "docker run -t setup-cpp .",
|
|
|
|
"start.docker.arch": "docker run -t setup-cpp:arch .",
|
|
|
|
"start.docker.fedora": "docker run -t setup-cpp:fedora .",
|
|
|
|
"start.docker.ubuntu": "docker run -t setup-cpp:ubuntu .",
|
2022-08-03 06:52:05 +08:00
|
|
|
"test": "run-p --continue-on-error test.lint test.unit",
|
2023-04-17 17:14:02 +08:00
|
|
|
"test.docker.arch": "docker build -f ./dev/docker/arch_node.dockerfile --target setup-cpp -t setup-cpp:arch-base . && container-structure-test test --image setup-cpp:arch-base --config ./dev/container-tests/arch.yml",
|
|
|
|
"test.docker.fedora": "docker build -f ./dev/docker/fedora_node.dockerfile --target setup-cpp -t setup-cpp:fedora-base . && container-structure-test test --image setup-cpp:fedora-base --config ./dev/container-tests/fedora.yml",
|
|
|
|
"test.docker.ubuntu": "docker build -f ./dev/docker/ubuntu_node.dockerfile --target setup-cpp -t setup-cpp:ubuntu-base . && container-structure-test test --image setup-cpp:ubuntu-base --config ./dev/container-tests/ubuntu.yml",
|
2022-08-03 04:12:42 +08:00
|
|
|
"test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.prettier lint.tsc",
|
|
|
|
"test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
|
|
|
|
"test.lint.prettier": "prettier . --check",
|
2021-10-08 09:00:00 +08:00
|
|
|
"test.unit": "jest --runInBand"
|
2021-09-14 14:50:57 +08:00
|
|
|
},
|
|
|
|
"prettier": "prettier-config-atomic",
|
2023-01-18 17:26:45 +08:00
|
|
|
"devDependencies": {
|
2022-10-20 05:30:11 +08:00
|
|
|
"@actions/core": "^1.10.0",
|
2022-04-05 07:13:42 +08:00
|
|
|
"@actions/exec": "^1.1.1",
|
2023-04-14 16:15:14 +08:00
|
|
|
"@actions/io": "^1.1.3",
|
2022-05-21 09:32:41 +08:00
|
|
|
"@actions/tool-cache": "^2.0.1",
|
2023-07-16 06:41:58 +08:00
|
|
|
"@babel/cli": "^7.22.9",
|
2021-09-17 18:21:00 +08:00
|
|
|
"@types/cross-spawn": "^6.0.2",
|
2023-07-16 06:41:58 +08:00
|
|
|
"@types/eslint": "^8.44.0",
|
|
|
|
"@types/jest": "^29.5.3",
|
2021-09-18 01:51:59 +08:00
|
|
|
"@types/mri": "^1.1.1",
|
2023-07-16 06:41:58 +08:00
|
|
|
"@types/node": "^20.4.2",
|
2023-03-10 05:33:42 +08:00
|
|
|
"@types/npmcli__ci-detect": "^2.0.0",
|
2023-06-28 08:09:14 +08:00
|
|
|
"@types/prettier": "2.7.3",
|
2023-05-25 07:45:05 +08:00
|
|
|
"@types/semver": "^7.5.0",
|
2023-04-14 16:15:14 +08:00
|
|
|
"@types/which": "^3.0.0",
|
2023-04-23 15:53:36 +08:00
|
|
|
"@upleveled/babel-plugin-remove-node-prefix": "github:aminya/babel-plugin-remove-node-prefix#95fcbd92405b99a6eece48c493548996f12e6519",
|
2023-01-23 06:23:06 +08:00
|
|
|
"admina": "^0.1.3",
|
2022-10-20 05:30:11 +08:00
|
|
|
"caxa": "^3.0.1",
|
2023-04-22 17:31:04 +08:00
|
|
|
"ci-info": "^3.8.0",
|
2023-04-22 02:38:35 +08:00
|
|
|
"ci-log": "workspace:*",
|
2021-09-14 14:50:57 +08:00
|
|
|
"cross-env": "7.0.3",
|
2021-09-17 18:21:00 +08:00
|
|
|
"cross-spawn": "^7.0.3",
|
2023-04-14 16:15:14 +08:00
|
|
|
"cspell": "^6.31.1",
|
2023-03-10 05:36:02 +08:00
|
|
|
"escape-path-with-spaces": "^1.0.2",
|
2023-01-23 06:23:06 +08:00
|
|
|
"escape-quotes": "^1.0.2",
|
|
|
|
"escape-string-regexp": "^5.0.0",
|
2023-07-16 06:41:58 +08:00
|
|
|
"eslint": "^8.45.0",
|
2023-06-28 08:09:14 +08:00
|
|
|
"eslint-config-atomic": "^1.19.3",
|
2023-04-22 02:38:35 +08:00
|
|
|
"exec-powershell": "workspace:*",
|
2023-04-22 17:19:33 +08:00
|
|
|
"execa": "^7.1.1",
|
2023-07-16 06:41:58 +08:00
|
|
|
"fast-glob": "^3.3.0",
|
2023-05-25 13:07:48 +08:00
|
|
|
"find-up": "^6.3.0",
|
2022-08-08 09:18:26 +08:00
|
|
|
"gen-readme": "^1.6.0",
|
2023-01-23 06:23:06 +08:00
|
|
|
"is-url-online": "^1.5.0",
|
2023-07-16 06:41:58 +08:00
|
|
|
"jest": "^29.6.1",
|
2023-06-29 06:22:03 +08:00
|
|
|
"micro-memoize": "^4.1.2",
|
2023-01-23 06:23:06 +08:00
|
|
|
"mri": "^1.2.0",
|
|
|
|
"msvc-dev-cmd": "github:aminya/msvc-dev-cmd#9f672c1",
|
2023-07-16 06:41:58 +08:00
|
|
|
"npm-check-updates": "^16.10.15",
|
|
|
|
"npm-run-all2": "^6.0.6",
|
2023-01-23 06:23:06 +08:00
|
|
|
"numerous": "1.0.3",
|
2023-06-28 08:09:14 +08:00
|
|
|
"parcel": "2.9.3",
|
2023-04-23 16:09:38 +08:00
|
|
|
"path-exists": "^5.0.0",
|
2023-01-23 06:23:06 +08:00
|
|
|
"patha": "^0.4.1",
|
2023-04-23 16:09:38 +08:00
|
|
|
"prettier": "2.8.8",
|
2022-09-19 11:20:54 +08:00
|
|
|
"prettier-config-atomic": "^3.1.0",
|
2023-01-23 06:23:06 +08:00
|
|
|
"quote-unquote": "^1.0.0",
|
2022-08-08 09:18:26 +08:00
|
|
|
"readme-md-generator": "^1.0.0",
|
2023-03-10 05:31:36 +08:00
|
|
|
"retry-as-promised": "^7.0.4",
|
2023-06-28 08:09:14 +08:00
|
|
|
"semver": "7.5.3",
|
2023-05-25 07:45:05 +08:00
|
|
|
"setup-python": "github:actions/setup-python#v4.6.1",
|
2022-01-23 09:33:54 +08:00
|
|
|
"shx": "0.3.4",
|
2023-06-28 08:09:14 +08:00
|
|
|
"simple-update-notifier": "^2.0.0",
|
2023-01-23 06:23:06 +08:00
|
|
|
"time-delta": "github:aminya/time-delta#69d91a41cef28e569be9a2991129f5f7d1f0d00e",
|
2023-07-16 06:41:58 +08:00
|
|
|
"ts-jest": "^29.1.1",
|
2022-10-20 11:12:32 +08:00
|
|
|
"ts-node": "^10.9.1",
|
2022-08-08 09:18:26 +08:00
|
|
|
"ts-readme": "^1.1.3",
|
2023-07-16 06:41:58 +08:00
|
|
|
"typescript": "^5.1.6",
|
2023-01-23 06:23:06 +08:00
|
|
|
"ubuntu-version": "^2.0.0",
|
2023-04-22 02:38:35 +08:00
|
|
|
"untildify-user": "workspace:*",
|
|
|
|
"user-access": "workspace:*",
|
2023-05-25 07:45:05 +08:00
|
|
|
"which": "^3.0.1"
|
2021-09-14 14:50:57 +08:00
|
|
|
},
|
2021-10-08 09:00:00 +08:00
|
|
|
"engines": {
|
2023-04-06 23:34:55 +08:00
|
|
|
"node": ">=12.x"
|
2021-10-08 09:00:00 +08:00
|
|
|
},
|
2021-09-14 14:50:57 +08:00
|
|
|
"keywords": [
|
|
|
|
"github-actions",
|
|
|
|
"actions",
|
|
|
|
"github",
|
|
|
|
"setup-cpp",
|
|
|
|
"c++",
|
|
|
|
"cpp",
|
|
|
|
"cxx",
|
|
|
|
"cc",
|
|
|
|
"llvm",
|
|
|
|
"clang",
|
|
|
|
"gcc",
|
|
|
|
"mingw",
|
|
|
|
"msvc",
|
|
|
|
"cl",
|
|
|
|
"cmake",
|
|
|
|
"ninja",
|
|
|
|
"meson"
|
2021-10-08 09:00:00 +08:00
|
|
|
],
|
2022-08-08 14:46:11 +08:00
|
|
|
"alias": {
|
2022-08-22 12:01:50 +08:00
|
|
|
"electron": false,
|
|
|
|
"patha": "patha/dist/index.node.mjs"
|
2022-08-08 14:46:11 +08:00
|
|
|
},
|
2023-05-27 03:42:10 +08:00
|
|
|
"pnpm": {
|
|
|
|
"overrides": {
|
|
|
|
"whatwg-url": "^12"
|
|
|
|
}
|
|
|
|
},
|
2021-10-08 09:00:00 +08:00
|
|
|
"targets": {
|
2023-07-16 06:41:58 +08:00
|
|
|
"main": {
|
2021-10-08 09:00:00 +08:00
|
|
|
"context": "node",
|
2022-09-19 11:48:50 +08:00
|
|
|
"engines": {
|
|
|
|
"node": ">=12.x"
|
|
|
|
},
|
2023-04-22 12:14:22 +08:00
|
|
|
"includeNodeModules": {
|
|
|
|
"update-notifier": false
|
|
|
|
},
|
2022-09-19 12:00:19 +08:00
|
|
|
"optimize": true,
|
2022-07-06 12:19:58 +08:00
|
|
|
"outputFormat": "commonjs"
|
2022-10-20 05:48:10 +08:00
|
|
|
},
|
2023-07-16 06:41:58 +08:00
|
|
|
"actions": {
|
2022-10-20 05:48:10 +08:00
|
|
|
"context": "node",
|
|
|
|
"engines": {
|
|
|
|
"node": ">=16.x"
|
|
|
|
},
|
2023-04-22 12:14:22 +08:00
|
|
|
"includeNodeModules": {
|
|
|
|
"update-notifier": false
|
|
|
|
},
|
2022-10-20 05:48:10 +08:00
|
|
|
"optimize": true,
|
|
|
|
"outputFormat": "commonjs"
|
2023-04-06 20:29:38 +08:00
|
|
|
},
|
2023-07-16 06:41:58 +08:00
|
|
|
"modern": {
|
2023-04-06 20:29:38 +08:00
|
|
|
"context": "node",
|
|
|
|
"engines": {
|
2023-07-16 06:41:58 +08:00
|
|
|
"node": ">=20.x"
|
2023-04-06 20:29:38 +08:00
|
|
|
},
|
|
|
|
"includeNodeModules": true,
|
|
|
|
"optimize": true,
|
|
|
|
"outputFormat": "commonjs"
|
2021-10-08 09:00:00 +08:00
|
|
|
}
|
|
|
|
}
|
2021-09-14 14:50:57 +08:00
|
|
|
}
|