UNPKG

gitlab-ci-local

Version:

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

195 lines (194 loc) 6.23 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.58.0", "scripts": { "esbuild": "esbuild src/index.ts --outfile=bin/index.cjs --bundle --platform=node --format=cjs --minify --external:yargs --external:re2 --sourcemap=inline", "pkg-linux": "npx tsx scripts/install-re2-bin.ts --platform linux --platform-arch=x64 && 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": "npx tsx scripts/install-re2-bin.ts --platform darwin --platform-arch=x64 && 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": "npx tsx scripts/install-re2-bin.ts --platform win32 --platform-arch=x64 && 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.8.1", "base64url": "3.x.x", "camelcase": "6.x.x", "chalk": "4.x.x", "checksum": "1.x.x", "deep-extend": "0.6.x", "dotenv": "16.x.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", "re2": "^1.21.4", "split2": "4.x.x", "terminal-link": "2.1.1", "yargs": "17.x.x" }, "devDependencies": { "@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/split2": "4.x.x", "@types/yargs": "17.x.x", "@typescript-eslint/eslint-plugin": "7.x.x", "@typescript-eslint/parser": "7.x.x", "@yao-pkg/pkg": "^6.0.0", "axios-mock-adapter": "2.x", "depcheck": "1.x.x", "esbuild": "0.25.x", "eslint": "8.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" }, "engines": { "node": ">=18" }, "pkg": { "assets": [ "package.json", "**/src/schema/schema.json" ], "scripts": [ "src/**/*.js" ] }, "eslintConfig": { "parser": "@typescript-eslint/parser", "plugins": [ "@typescript-eslint" ], "ignorePatterns": [ "*.js" ], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended" ], "rules": { "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/semi": "error", "@typescript-eslint/quotes": "error", "@typescript-eslint/comma-dangle": [ "error", "always-multiline" ], "@typescript-eslint/object-curly-spacing": "error", "@typescript-eslint/space-before-function-paren": "error", "@typescript-eslint/space-before-blocks": "error", "@typescript-eslint/space-infix-ops": "error", "@typescript-eslint/member-delimiter-style": "error", "@typescript-eslint/indent": [ "error", 4 ], "@typescript-eslint/type-annotation-spacing": [ "error" ], "@typescript-eslint/func-call-spacing": [ "error" ], "@typescript-eslint/comma-spacing": [ "error" ], "keyword-spacing": "error", "space-in-parens": "error", "no-trailing-spaces": "error", "no-multi-spaces": "error", "arrow-spacing": "error", "key-spacing": "error" } }, "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" ] }