UNPKG

gitlab-ci-local

Version:

Tired of pushing to test your .gitlab-ci.yml?

152 lines (151 loc) 4.73 kB
{ "type": "module", "name": "gitlab-ci-local", "description": "Tired of pushing to test your .gitlab-ci.yml?", "main": "src/index.js", "bin": "src/index.js", "version": "4.61.1", "scripts": { "esbuild": "esbuild src/index.ts --outfile=bin/index.cjs --bundle --platform=node --format=cjs --minify --external:yargs --sourcemap=inline", "pkg-linux": "pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t linux-x64 -o bin/linux/gitlab-ci-local && chmod +x bin/linux/gitlab-ci-local && gzip -c bin/linux/gitlab-ci-local > bin/linux.gz", "pkg-macos": "pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t macos-x64 -o bin/macos/gitlab-ci-local && gzip -c bin/macos/gitlab-ci-local > bin/macos.gz", "pkg-win": "pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t win-x64 -o bin/win/gitlab-ci-local && gzip -c bin/win/gitlab-ci-local.exe > bin/win.gz", "pkg-all": "npm run pkg-linux && npm run pkg-macos && npm run pkg-win && npm ci", "cleanup": "git clean -fX tests/ && git clean -fX src/", "build": " npm run cleanup && tsc", "check-all": "npm run build && npm run lint && npm run coverage && npm run audit", "audit": "npm audit --parseable", "lint": "npx eslint .", "test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testTimeout 60000", "test-except-dind": "npm run test -- --testPathIgnorePatterns=\"/dind.*/|/node_modules/|/.gitlab-ci-local/\"", "coverage": "npm run build && FORCE_COLOR=1 npm run test -- --coverage --verbose", "start": "tsx src/index.ts --cwd examples/docker-compose-nodejs", "dev": "touch .gitlab-ci.yml && nodemon -e ts --watch src --watch .gitlab-ci.yml --exec \"tsc --noEmit && tsx src/index.ts\"", "fetch-and-patch-schema": "curl https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json -sf | jq 'del(.. | .pattern?)' > src/schema/schema.json" }, "dependencies": { "ajv": "8.x.x", "axios": "1.11.0", "base64url": "3.x.x", "camelcase": "6.x.x", "chalk": "4.x.x", "checksum": "1.x.x", "deep-extend": "0.6.x", "dotenv": "17.x", "execa": "5.x.x", "fs-extra": "11.x.x", "globby": "11.x.x", "js-yaml": "4.x.x", "jsonpointer": "5.x.x", "micromatch": "4.x.x", "object-traversal": "1.x.x", "p-map": "4.x.x", "pretty-hrtime": "1.x.x", "re2js": "1.x.x", "semver": "7.x.x", "split2": "4.x.x", "terminal-link": "4.0.0", "yargs": "17.x.x" }, "devDependencies": { "@eslint/js": "9.x.x", "@stylistic/eslint-plugin-js": "4.x.x", "@stylistic/eslint-plugin-ts": "4.x.x", "@types/base64url": "2.x.x", "@types/camelcase": "5.x.x", "@types/checksum": "0.1.x", "@types/deep-extend": "0.6.x", "@types/fs-extra": "11.x.x", "@types/jest-when": "3.x.x", "@types/js-yaml": "4.x.x", "@types/micromatch": "4.x.x", "@types/node": "22.x", "@types/pretty-hrtime": "1.x.x", "@types/semver": "7.x.x", "@types/split2": "4.x.x", "@types/yargs": "17.x.x", "@yao-pkg/pkg": "^6.0.0", "axios-mock-adapter": "2.x", "depcheck": "1.x.x", "esbuild": "0.25.x", "eslint": "9.x.x", "jest": "29.x.x", "jest-when": "3.x.x", "nodemon": "3.x.x", "ts-jest": "29.x.x", "tsx": "4.x.x", "typescript": "5.x.x", "typescript-eslint": "8.x.x" }, "engines": { "node": ">=18" }, "pkg": { "assets": [ "package.json", "**/src/schema/schema.json" ], "scripts": [ "src/**/*.js" ] }, "jest": { "extensionsToTreatAsEsm": [ ".ts" ], "transform": { "^.+\\.tsx?$": [ "ts-jest", { "useESM": true } ], "^.+\\.jsx?$": "babel-jest" }, "preset": "ts-jest", "testMatch": [ "**/*.test.ts" ], "coveragePathIgnorePatterns": [ "<rootDir>/scripts" ], "testPathIgnorePatterns": [ "/node_modules/", "/.gitlab-ci-local/" ], "moduleNameMapper": { "(.+)\\.js": "$1" }, "coverageReporters": [ "lcov", "json-summary", "text-summary" ] }, "repository": { "type": "git", "url": "https://github.com/firecow/gitlab-ci-local.git" }, "author": "Mads Jon Nielsen <madsjon@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/firecow/gitlab-ci-local/issues" }, "homepage": "https://github.com/firecow/gitlab-ci-local#readme", "keywords": [ "git", "gitlab", "pipeline", "local", "ci", "cd", "push", "untracked", "uncomitted", "gitlab-ci" ], "files": [ "src/**/*.js", "src/**/*.json" ] }