2021-09-14 14:50:57 +08:00
|
|
|
{
|
|
|
|
"name": "setup-cpp",
|
2022-07-28 12:29:37 +08:00
|
|
|
"version": "0.19.0",
|
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": {
|
|
|
|
"import": "./dist/setup-cpp.mjs",
|
|
|
|
"require": "./dist/setup-cpp.js"
|
|
|
|
},
|
2021-10-08 09:00:00 +08:00
|
|
|
"main": "./dist/setup_cpp.js",
|
|
|
|
"source": "./src/main.ts",
|
|
|
|
"bin": {
|
|
|
|
"setup-cpp": "./dist/setup_cpp.js",
|
|
|
|
"setup_cpp": "./dist/setup_cpp.js"
|
|
|
|
},
|
2021-09-14 14:50:57 +08:00
|
|
|
"scripts": {
|
2022-08-03 04:12:42 +08:00
|
|
|
"build": "shx rm -rf dist/ && shx mkdir ./dist && run-p lint.tsc build.parcel copy.matchers",
|
2022-04-27 13:07:54 +08:00
|
|
|
"build.docker": "pnpm build && docker build -f ./dev/docker/ubuntu_node.dockerfile -t setup_cpp .",
|
2022-06-30 00:06:35 +08:00
|
|
|
"build.docker.arch": "pnpm build && docker build -f ./dev/docker/arch_node.dockerfile -t setup_cpp:arch .",
|
2022-07-11 10:32:01 +08:00
|
|
|
"build.docker.fedora": "pnpm build && docker build -f ./dev/docker/fedora_node.dockerfile -t setup_cpp:fedora .",
|
2022-06-30 09:58:13 +08:00
|
|
|
"build.docker.ubuntu": "pnpm build && docker build -f ./dev/docker/ubuntu_node.dockerfile -t setup_cpp:ubuntu .",
|
2022-05-03 13:15:23 +08:00
|
|
|
"build.parcel": "cross-env NODE_ENV=production parcel build --detailed-report",
|
2022-05-06 08:11:42 +08:00
|
|
|
"bump": "ncu -u -x execa,numerous && pnpm update",
|
2022-02-14 12:16:18 +08:00
|
|
|
"clean": "shx rm -rf .parcel-cache dist exe",
|
2022-05-03 13:15:23 +08:00
|
|
|
"copy.matchers": "shx cp ./src/gcc/gcc_matcher.json ./dist/ && shx cp ./src/msvc/msvc_matcher.json ./dist && shx cp ./src/python/python_matcher.json ./dist/ && shx cp ./src/llvm/llvm_matcher.json ./dist/ ",
|
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",
|
|
|
|
"lint.cspell": "cspell lint --no-progress --show-suggestions",
|
|
|
|
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
|
|
|
|
"lint.prettier": "prettier --write .",
|
|
|
|
"lint.tsc": "tsc --noEmit | loose-ts-check",
|
2022-04-27 13:07:54 +08:00
|
|
|
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && node ./dev/scripts/pack-exe.js",
|
2022-08-08 07:59:24 +08:00
|
|
|
"prepare": "pnpm run -r build && pnpm run -w build",
|
2021-10-08 09:00:00 +08:00
|
|
|
"start.docker": "docker run -t setup_cpp .",
|
2022-06-30 00:06:35 +08:00
|
|
|
"start.docker.arch": "docker run -t setup_cpp:arch .",
|
2022-07-11 10:32:01 +08:00
|
|
|
"start.docker.fedora": "docker run -t setup_cpp:fedora .",
|
2022-06-30 09:58:13 +08:00
|
|
|
"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",
|
2022-06-30 09:58:13 +08:00
|
|
|
"test.docker.arch": "docker build -f ./dev/docker/arch_node.dockerfile --target base -t setup_cpp:arch-base . && container-structure-test test --image setup_cpp:arch-base --config ./dev/container-tests/arch.yml",
|
2022-07-11 10:32:01 +08:00
|
|
|
"test.docker.fedora": "docker build -f ./dev/docker/fedora_node.dockerfile --target base -t setup_cpp:fedora-base . && container-structure-test test --image setup_cpp:fedora-base --config ./dev/container-tests/fedora.yml",
|
2022-06-30 09:58:13 +08:00
|
|
|
"test.docker.ubuntu": "docker build -f ./dev/docker/ubuntu_node.dockerfile --target base -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",
|
2021-09-14 19:12:17 +08:00
|
|
|
"dependencies": {
|
2022-08-19 05:10:06 +08:00
|
|
|
"@actions/core": "^1.9.1",
|
2022-04-05 07:13:42 +08:00
|
|
|
"@actions/exec": "^1.1.1",
|
|
|
|
"@actions/io": "^1.1.2",
|
2022-05-21 09:32:41 +08:00
|
|
|
"@actions/tool-cache": "^2.0.1",
|
2022-08-08 10:13:40 +08:00
|
|
|
"@npmcli/ci-detect": "github:aminya/ci-detect#37fe40075bebec96794ba0a7c4a6d5c70cbea00d",
|
2022-08-19 05:10:06 +08:00
|
|
|
"ci-log": "workspace:1.0.0",
|
2022-08-08 10:23:55 +08:00
|
|
|
"escape-path-with-spaces": "github:aminya/escape-path-with-spaces#d9f81ee649203ddc55783a2f96ada59df06118e3",
|
2022-08-19 05:10:06 +08:00
|
|
|
"exec-powershell": "workspace:1.0.0",
|
2021-12-01 18:26:05 +08:00
|
|
|
"execa": "^5.1.1",
|
2022-08-09 15:13:35 +08:00
|
|
|
"is-url-online": "^1.5.0",
|
2021-09-18 01:51:59 +08:00
|
|
|
"mri": "^1.2.0",
|
2022-02-20 18:11:34 +08:00
|
|
|
"msvc-dev-cmd": "github:aminya/msvc-dev-cmd#9f672c1",
|
2022-04-18 21:16:11 +08:00
|
|
|
"numerous": "1.0.3",
|
2022-08-21 14:01:20 +08:00
|
|
|
"patha": "^0.4.0",
|
2022-08-19 05:10:06 +08:00
|
|
|
"root-tools": "workspace:1.0.0",
|
2022-04-16 15:31:57 +08:00
|
|
|
"semver": "7.3.7",
|
2022-07-17 09:15:08 +08:00
|
|
|
"setup-python": "github:actions/setup-python#c474c82340438924daab9282d07300bfe7e3692d",
|
2022-04-18 21:16:11 +08:00
|
|
|
"time-delta": "github:aminya/time-delta#69d91a41cef28e569be9a2991129f5f7d1f0d00e",
|
2022-05-03 14:32:01 +08:00
|
|
|
"ubuntu-version": "^2.0.0",
|
2022-08-19 05:10:06 +08:00
|
|
|
"untildify-user": "workspace:1.0.0",
|
|
|
|
"user-access": "workspace:1.0.0",
|
2021-12-05 22:20:14 +08:00
|
|
|
"which": "^2.0.2"
|
2021-09-14 19:12:17 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-09-17 18:21:00 +08:00
|
|
|
"@types/cross-spawn": "^6.0.2",
|
2022-08-19 05:10:06 +08:00
|
|
|
"@types/jest": "^28.1.7",
|
2021-09-18 01:51:59 +08:00
|
|
|
"@types/mri": "^1.1.1",
|
2022-08-22 12:01:50 +08:00
|
|
|
"@types/node": "^18.7.9",
|
2022-08-19 05:10:06 +08:00
|
|
|
"@types/semver": "^7.3.12",
|
2021-09-15 01:40:42 +08:00
|
|
|
"@types/which": "^2.0.1",
|
2021-09-15 14:29:57 +08:00
|
|
|
"caxa": "^2.1.0",
|
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",
|
2022-08-22 12:01:50 +08:00
|
|
|
"cspell": "^6.8.0",
|
2022-08-19 05:10:06 +08:00
|
|
|
"eslint": "^8.22.0",
|
2022-06-26 08:30:17 +08:00
|
|
|
"eslint-config-atomic": "^1.18.1",
|
2022-08-08 09:18:26 +08:00
|
|
|
"gen-readme": "^1.6.0",
|
2022-07-17 09:12:17 +08:00
|
|
|
"jest": "^28.1.3",
|
2022-04-19 09:31:50 +08:00
|
|
|
"loose-ts-check": "^1.2.0",
|
2022-08-03 03:57:22 +08:00
|
|
|
"npm-check-updates": "^16.0.5",
|
2022-08-19 05:10:06 +08:00
|
|
|
"npm-run-all2": "^6.0.2",
|
|
|
|
"parcel": "2.7.0",
|
2022-06-18 05:00:54 +08:00
|
|
|
"prettier": "2.7.1",
|
2022-06-26 08:30:17 +08:00
|
|
|
"prettier-config-atomic": "^3.0.10",
|
2022-08-08 09:18:26 +08:00
|
|
|
"readme-md-generator": "^1.0.0",
|
2022-01-23 09:33:54 +08:00
|
|
|
"shx": "0.3.4",
|
2021-09-14 14:50:57 +08:00
|
|
|
"terser-config-atomic": "^0.1.1",
|
2022-08-19 05:10:06 +08:00
|
|
|
"ts-jest": "^28.0.8",
|
2022-08-08 09:18:26 +08:00
|
|
|
"ts-readme": "^1.1.3",
|
2022-06-18 05:00:54 +08:00
|
|
|
"typescript": "^4.7.4"
|
2021-09-14 14:50:57 +08:00
|
|
|
},
|
2021-10-08 09:00:00 +08:00
|
|
|
"engines": {
|
|
|
|
"node": ">=12.x"
|
|
|
|
},
|
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
|
|
|
},
|
2021-10-08 09:00:00 +08:00
|
|
|
"pnpm": {
|
|
|
|
"overrides": {
|
2022-04-16 15:31:57 +08:00
|
|
|
"semver": "7.3.7",
|
2022-08-19 05:10:06 +08:00
|
|
|
"eslint": "^8.22.0",
|
2022-06-18 05:00:54 +08:00
|
|
|
"prettier": "2.7.1",
|
2022-04-18 20:30:53 +08:00
|
|
|
"lru-cache": "7.8.1",
|
2022-02-20 18:11:34 +08:00
|
|
|
"core-js": "*",
|
|
|
|
"babel-eslint": "npm:@babel/eslint-parser"
|
|
|
|
},
|
|
|
|
"peerDependencyRules": {
|
|
|
|
"allowedVersions": {
|
|
|
|
"eslint": "*"
|
|
|
|
}
|
2021-10-08 09:00:00 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"targets": {
|
|
|
|
"main": {
|
|
|
|
"context": "node",
|
|
|
|
"includeNodeModules": true,
|
2022-07-06 12:19:58 +08:00
|
|
|
"optimize": true,
|
|
|
|
"outputFormat": "commonjs"
|
2021-10-08 09:00:00 +08:00
|
|
|
}
|
|
|
|
}
|
2021-09-14 14:50:57 +08:00
|
|
|
}
|