Skip to content

Commit

Permalink
ci: added audit ci
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Jul 22, 2024
1 parent b31ed1c commit 8735187
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 18 deletions.
8 changes: 8 additions & 0 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
// $schema provides code completion hints to IDEs.
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
"low": true,
"package-manager": "pnpm",
"report-type": "important",
"allowlist": []
}
4 changes: 2 additions & 2 deletions examples/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"private": true,
"type": "module",
"scripts": {
"build": "ng build",
"ng": "ng",
"start": "ng serve",
"build": "ng build"
"start": "ng serve"
},
"dependencies": {
"@angular/animations": "^18.0.0",
Expand Down
21 changes: 6 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,17 @@
"README.md"
],
"scripts": {
"audit": "audit-ci --config ./audit-ci.jsonc",
"build": "cross-env NODE_ENV=development packem build",
"build:prod": "cross-env NODE_ENV=production packem build",
"lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
"lint:eslint:fix": "pnpm run lint:eslint --fix",
"lint:package-json": "publint",
"lint:prettier": "prettier --config=.prettierrc.cjs --check .",
"lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
"lint:staged": "lint-staged --verbose --concurrent false --debug",
"lint:text": "textlint ./.github/ ./README.md ./UPGRADE.md --parallel --experimental --cache --dry-run",
"lint:text:fix": "textlint ./.github/ ./README.md ./UPGRADE.md --parallel --experimental --fix",
"lint:package-json": "publint",
"prepare": "is-ci || (node verify-node-version.cjs && pnpx only-allow pnpm && husky)",
"run:example": "cd example && pnpm exec vite build",
"sort-package-json": "sort-package-json ./package.json examples/**/package.json",
Expand Down Expand Up @@ -128,7 +129,6 @@
"@nuxt/kit": "^3.12.4",
"@nuxt/schema": "^3.12.4",
"@rspack/core": "^0.7.5",
"publint": "^0.2.9",
"@rspack/plugin-html": "^0.5.8",
"@secretlint/secretlint-rule-preset-recommend": "^8.2.4",
"@total-typescript/ts-reset": "^0.5.1",
Expand All @@ -144,6 +144,7 @@
"@types/ssri": "^7.1.5",
"@visulima/packem": "^1.0.0-alpha.55",
"@vitest/coverage-v8": "^2.0.4",
"audit-ci": "^6.6.1",
"caniuse-lite": "^1.0.30001643",
"commitizen": "^4.3.0",
"commitlint": "^19.3.0",
Expand All @@ -164,6 +165,7 @@
"is-ci": "^3.0.1",
"lint-staged": "^15.2.7",
"prettier": "^3.3.3",
"publint": "^0.2.9",
"read-pkg": "9.0.1",
"rimraf": "^6.0.1",
"rollup": "^4.19.0",
Expand Down Expand Up @@ -210,7 +212,7 @@
"optional": true
}
},
"packageManager": "pnpm@8.8.0",
"packageManager": "pnpm@9.5.0",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -247,16 +249,5 @@
]
}
}
},
"sources": [
"src/index.ts",
"src/cli/index.ts",
"src/cli/commander/index.ts",
"src/esbuild.ts",
"src/rollup.ts",
"src/vite.ts",
"src/nuxt.ts",
"src/rspack.ts",
"src/webpack.ts"
]
}
}
65 changes: 64 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8735187

Please sign in to comment.