{"id":18447786,"url":"https://github.com/stoplightio/scripts","last_synced_at":"2025-10-06T02:55:15.400Z","repository":{"id":33263550,"uuid":"156779864","full_name":"stoplightio/scripts","owner":"stoplightio","description":"Scripts to aid in testing, releasing, and linting.","archived":false,"fork":false,"pushed_at":"2025-01-20T07:37:48.000Z","size":1476,"stargazers_count":7,"open_issues_count":22,"forks_count":6,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-10-02T01:39:06.983Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stoplightio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-11-08T22:57:00.000Z","updated_at":"2025-06-09T21:15:52.000Z","dependencies_parsed_at":"2023-12-11T23:11:33.585Z","dependency_job_id":"164e1d0c-b1cc-48f4-9dec-3057a233bd45","html_url":"https://github.com/stoplightio/scripts","commit_stats":{"total_commits":103,"total_committers":12,"mean_commits":8.583333333333334,"dds":0.5922330097087378,"last_synced_commit":"da54218e769ab2ab5094ee9f794d4ebbbd4a90cc"},"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"purl":"pkg:github/stoplightio/scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stoplightio","download_url":"https://codeload.github.com/stoplightio/scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Fscripts/sbom","scorecard":{"id":854046,"data":{"date":"2025-08-11","repo":{"name":"github.com/stoplightio/scripts","commit":"7acbc02d512f1c1d8b8292973bc0f9752105c843"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":8,"reason":"Found 24/29 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T23:21:54.404Z","repository_id":33263550,"created_at":"2025-08-23T23:21:54.405Z","updated_at":"2025-08-23T23:21:54.405Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278551490,"owners_count":26005389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T07:14:26.612Z","updated_at":"2025-10-06T02:55:15.379Z","avatar_url":"https://github.com/stoplightio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @stoplight/scripts\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/2628d0fe95cf3abae711/maintainability)](https://codeclimate.com/github/stoplightio/scripts/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/2628d0fe95cf3abae711/test_coverage)](https://codeclimate.com/github/stoplightio/scripts/test_coverage)\n\n\u003c!-- toc --\u003e\n\n- [@stoplight/scripts](#stoplightscripts)\n- [Usage](#usage)\n- [Commands](#commands)\n- [Overriding Configs](#overriding-configs)\n\u003c!-- tocstop --\u003e\n\n# Usage\n\nCreate a new library:\n\n```bash\nnpx @stoplight/scripts create:lib\n```\n\n# Commands\n\n\u003c!-- commands --\u003e\n\n- [`sl-scripts build`](#sl-scripts-build)\n- [`sl-scripts bundle`](#sl-scripts-bundle)\n- [`sl-scripts create:lib`](#sl-scripts-createlib)\n- [`sl-scripts release`](#sl-scripts-release)\n- [`sl-scripts release:docs`](#sl-scripts-releasedocs)\n\n## `sl-scripts build`\n\nBuild source code\n\n```\nUSAGE\n  $ sl-scripts build [--verbose]\n\nFLAGS\n  --verbose  moar logs\n\nDESCRIPTION\n  Build source code\n\nEXAMPLES\n  $ sl-scripts build\n```\n\n_See code:\n[src/commands/build/index.ts](https://github.com/stoplightio/scripts/blob/v0.0.0/src/commands/build/index.ts)_\n\n## `sl-scripts bundle`\n\nBundle source code\n\n```\nUSAGE\n  $ sl-scripts bundle [--minify] [--verbose]\n\nFLAGS\n  --minify   minify output using terser\n  --verbose  moar logs\n\nDESCRIPTION\n  Bundle source code\n\nEXAMPLES\n  $ sl-scripts bundle\n```\n\n_See code:\n[src/commands/bundle/index.ts](https://github.com/stoplightio/scripts/blob/v0.0.0/src/commands/bundle/index.ts)_\n\n## `sl-scripts create:lib`\n\nScaffold out a new library.\n\n```\nUSAGE\n  $ sl-scripts create:lib\n\nDESCRIPTION\n  Scaffold out a new library.\n\nEXAMPLES\n  $ sl-scripts create:lib\n```\n\n_See code: [src/commands/create/lib.ts](https://github.com/stoplightio/scripts/blob/v0.0.0/src/commands/create/lib.ts)_\n\n## `sl-scripts release`\n\nPublish new src or docs release.\n\n```\nUSAGE\n  $ sl-scripts release [--verbose]\n\nFLAGS\n  --verbose  moar logs\n\nDESCRIPTION\n  Publish new src or docs release.\n\nEXAMPLES\n  $ sl-scripts release\n\n  $ sl-scripts release:docs\n```\n\n_See code:\n[src/commands/release/index.ts](https://github.com/stoplightio/scripts/blob/v0.0.0/src/commands/release/index.ts)_\n\n## `sl-scripts release:docs`\n\nPush built docs to github pages.\n\n```\nUSAGE\n  $ sl-scripts release:docs [--dry-run] [--verbose]\n\nFLAGS\n  --dry-run  run the release process but do not publish\n  --verbose  moar logs\n\nDESCRIPTION\n  Push built docs to github pages.\n\nEXAMPLES\n  $ sl-scripts release:docs\n```\n\n_See code:\n[src/commands/release/docs.ts](https://github.com/stoplightio/scripts/blob/v0.0.0/src/commands/release/docs.ts)_\n\n\u003c!-- commandsstop --\u003e\n\n# Overriding Configs\n\n## Jest\n\nSimply create a `jest.config.js` file in the root of your project, and extend the default config. For example:\n\n```js\n// ./jest.config.js\nmodule.exports = {\n  preset: '@stoplight/scripts',\n};\n```\n\n## TS\n\nSimply create a `tsconfig.json` file in the root of your project, and extend the default config. For example:\n\n```json\n// ./tsconfig.json\n{\n  \"extends\": \"@stoplight/scripts/tsconfig.json\",\n  \"include\": [\"src\"],\n  \"compilerOptions\": {\n    \"outDir\": \"dist\"\n  }\n}\n```\n\n## Semantic Release\n\nSimply add a `release` property to your `package.json` file. For example:\n\n```json\n// ./package.json\n{\n  // ... props\n  \"release\": {\n    \"pkgRoot\": \"dist\",\n    \"plugins\": [\"@semantic-release/commit-analyzer\", \"@semantic-release/release-notes-generator\"]\n  }\n  // ... props\n}\n```\n\n## Rollup\n\nBy default all `dependencies` and `peerDependencies` declared in your `package.json` will be treated as external deps\nduring `sl-scripts bundle`. If you would like to always bundle a dep, list those deps in your `package.json` file like\nso:\n\n```json\n{\n  \"name\": \"your-package\",\n  \"version\": \"0.0.0\",\n  \"rollup\": {\n    \"bundleDeps\": [\"dep-1\", \"dep-2\"]\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoplightio%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstoplightio%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoplightio%2Fscripts/lists"}