Skip to content

Commit

Permalink
build: sort package.json files (#1032)
Browse files Browse the repository at this point in the history
* build: sort `package.json` files

* build: remove unneeded `ng` run script

* style: rename codecov yml validator run script

* build: add validate script & rename them

* build: remove `cache-clean` run script

Use `exec` for JetBrains run configurations
  • Loading branch information
davidlj95 authored Nov 12, 2024
1 parent 69edb48 commit f1f9420
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 70 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"rules": {
"json-files/require-unique-dependency-names": "error",
"json-files/ensure-repository-directory": "error",
"json-files/restrict-ranges": ["error", { "versionHint": "pin" }]
"json-files/restrict-ranges": ["error", { "versionHint": "pin" }],
"json-files/sort-package-json": "error"
}
}
]
Expand Down

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

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

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

58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,47 @@
{
"name": "@davidlj95/ngx",
"version": "0.0.0",
"private": true,
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build && ./postbuild.sh",
"watch": "ng build --watch --configuration development",
"test:unit": "pnpm run '/^test:unit:\\w*$/'",
"test:unit:coverage": "pnpm run '/^test:unit:\\w*:coverage$/'",
"test:unit:libs": "ng test --no-watch",
"test:unit:libs:coverage": "pnpm run test:unit:libs --code-coverage",
"test:unit:schematics": "jest",
"test:unit:schematics:coverage": "pnpm run test:unit:schematics --collect-coverage",
"commit": "pnpx @commitlint/prompt-cli",
"commitlint-edit-msg": "commitlint --verbose --edit",
"commitlint-last": "commitlint --last --verbose",
"coverage:move-to-nyc-output": "rm -rf .nyc_output && mkdir .nyc_output && cp -f $(find coverage -type f -name '*.json') .nyc_output",
"coverage:report:all": "pnpm run coverage:move-to-nyc-output && nyc report --reporter lcov --report-dir coverage",
"format": "prettier --ignore-unknown --write",
"format-all": "npm run format -- .",
"format-check": "prettier --check",
"format-check-all": "npm run format-check -- .",
"instrument-for-coverage": "./instrument-for-coverage.sh",
"lint": "pnpm run '/^lint:[\\w-]+$/'",
"lint:code": "pnpm run lint:code:raw .",
"lint:code:raw": "eslint --max-warnings 0",
"lint:commit-message": "pnpm run commitlint-edit-msg",
"lint:gh-actions": "./actionlint.sh",
"ngx-meta:test": "ng test ngx-meta",
"ngx-meta:api-documenter": "api-documenter markdown -i ./projects/ngx-meta/api-extractor -o ./projects/ngx-meta/docs/content/api",
"ngx-meta:api-extractor": "api-extractor run -c ./projects/ngx-meta/src/api-extractor.json",
"ngx-meta:api-extractor:local": "pnpm run ngx-meta:tsc:lib && pnpm run ngx-meta:api-extractor --local",
"ngx-meta:lint": "ng lint ngx-meta",
"ngx-meta:test": "ng test ngx-meta",
"ngx-meta:tsc": "pnpm run '/^ngx-meta:tsc:.*/'",
"ngx-meta:tsc:lib": "tsc -p ./projects/ngx-meta/src/tsconfig.lib.json --listEmittedFiles",
"ngx-meta:tsc:spec": "tsc -p ./projects/ngx-meta/src/tsconfig.spec.json --listEmittedFiles",
"ngx-meta:api-extractor": "api-extractor run -c ./projects/ngx-meta/src/api-extractor.json",
"ngx-meta:api-extractor:local": "pnpm run ngx-meta:tsc:lib && pnpm run ngx-meta:api-extractor --local",
"ngx-meta:api-documenter": "api-documenter markdown -i ./projects/ngx-meta/api-extractor -o ./projects/ngx-meta/docs/content/api",
"coverage:report:all": "pnpm run coverage:move-to-nyc-output && nyc report --reporter lcov --report-dir coverage",
"coverage:move-to-nyc-output": "rm -rf .nyc_output && mkdir .nyc_output && cp -f $(find coverage -type f -name '*.json') .nyc_output",
"format-check": "prettier --check",
"format-check-all": "npm run format-check -- .",
"format": "prettier --ignore-unknown --write",
"format-all": "npm run format -- .",
"prepare": "husky",
"commitlint-edit-msg": "commitlint --verbose --edit",
"commitlint-last": "commitlint --last --verbose",
"cache-clean": "ng cache clean",
"commit": "pnpx @commitlint/prompt-cli",
"validate-codecov-yml": "curl -X POST --data-binary @codecov.yml https://codecov.io/validate",
"instrument-for-coverage": "./instrument-for-coverage.sh",
"semantic-release:local": "./semantic-release-local.sh",
"start": "ng serve",
"test:unit": "pnpm run '/^test:unit:\\w*$/'",
"test:unit:coverage": "pnpm run '/^test:unit:\\w*:coverage$/'",
"test:unit:libs": "ng test --no-watch",
"test:unit:libs:coverage": "pnpm run test:unit:libs --code-coverage",
"test:unit:schematics": "jest",
"test:unit:schematics:coverage": "pnpm run test:unit:schematics --collect-coverage",
"update": "ng update @angular/cli @angular/core @angular-eslint/schematics",
"semantic-release:local": "./semantic-release-local.sh"
"validate": "pnpm run '/^validate:.*/'",
"validate:codecov-yml": "curl -X POST --data-binary @codecov.yml https://codecov.io/validate",
"validate:renovate-config": "pnpm --package renovate dlx renovate-config-validator",
"watch": "ng build --watch --configuration development"
},
"private": true,
"packageManager": "[email protected]",
"dependencies": {
"@angular/animations": "18.2.10",
"@angular/common": "18.2.10",
Expand Down Expand Up @@ -104,5 +103,6 @@
"semantic-release": "24.2.0",
"ts-jest": "29.2.5",
"typescript": "5.4.5"
}
},
"packageManager": "[email protected]"
}
6 changes: 3 additions & 3 deletions projects/ngx-meta/bundle-size/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@ngx-meta/bundle-size",
"version": "0.0.0",
"private": true,
"description": "ngx-meta bundle size analysis infra",
"scripts": {
"analyze": "./analyze.sh",
"report": "./report.sh"
},
"packageManager": "[email protected]",
"private": true,
"devDependencies": {
"source-map-explorer": "2.5.3"
}
},
"packageManager": "[email protected]"
}
6 changes: 3 additions & 3 deletions projects/ngx-meta/e2e/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "@ngx-meta/cypress",
"version": "0.0.0",
"private": true,
"description": "ngx-meta E2E testing infra",
"scripts": {
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"test": "./start-server-and-test.sh"
},
"packageManager": "[email protected]",
"private": true,
"devDependencies": {
"@cypress/code-coverage": "3.13.5",
"@istanbuljs/load-nyc-config": "1.1.0",
Expand All @@ -17,5 +16,6 @@
"start-server-and-test": "2.0.8",
"tslib": "2.7.0",
"typescript": "5.5.3"
}
},
"packageManager": "[email protected]"
}
12 changes: 6 additions & 6 deletions projects/ngx-meta/example-apps/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "@ngx-meta/example-apps",
"version": "0.0.0",
"private": true,
"description": "ngx-meta example apps infra",
"type": "module",
"scripts": {
"build": "tsc",
"watch": "tsc --watch",
"create-example-app": "node dist/create-example-app.js"
"create-example-app": "node dist/create-example-app.js",
"watch": "tsc --watch"
},
"packageManager": "[email protected]",
"private": true,
"type": "module",
"devDependencies": {
"@types/node": "22.8.7",
"@types/semver": "7.5.8",
"execa": "9.5.1",
"semver": "7.6.3",
"ts-morph": "24.0.0",
"typescript": "5.5.3"
}
},
"packageManager": "[email protected]"
}
4 changes: 2 additions & 2 deletions projects/ngx-meta/schematics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "@ngx-meta/schematics",
"version": "0.0.0",
"description": "ngx-meta schematics infra",
"packageManager": "[email protected]",
"scripts": {
"build": "tsc -p tsconfig.schematics.json",
"postbuild": "rsync -R **/schema.json collection.json ../dist/schematics",
"test": "jest"
}
},
"packageManager": "[email protected]"
}
14 changes: 7 additions & 7 deletions projects/ngx-meta/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,18 @@
"angular universal"
],
"homepage": "https://ngx-meta.dev",
"repository": {
"type": "git",
"url": "https://github.com/davidlj95/ngx.git",
"directory": "projects/ngx-meta/src"
},
"license": "MIT",
"author": {
"name": "David LJ",
"url": "https://davidlj95.com"
},
"sideEffects": false,
"scripts": {},
"dependencies": {
"tslib": "^2.3.0"
},
Expand All @@ -39,16 +46,9 @@
"optional": true
}
},
"repository": {
"type": "git",
"url": "https://github.com/davidlj95/ngx.git",
"directory": "projects/ngx-meta/src"
},
"scripts": {},
"publishConfig": {
"access": "public",
"provenance": true
},
"sideEffects": false,
"schematics": "./schematics/collection.json"
}

0 comments on commit f1f9420

Please sign in to comment.