-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
I am sorting my scripts like below to have it more readable as it's become bigger. Also, npm offers a nice list of all commands which work pretty well together with my comments hack. Unfortunately, when sorting my package.json it destroys the hole order. It would be very cool to have an option to ignore scripts (or any other group) or allow specific patterns not be sorted (in that case the hash #) and everything in between if that is even possible ^^.
"scripts": {
"dev": "nx serve",
"==================== BUILD ====================": "",
"build": "nx build -c development",
"build-ios": "cross-env BROWSERSLIST_ENV=mobile nx run entergon:cap --cmd='build ios'",
"build-android": "cross-env BROWSERSLIST_ENV=mobile nx run entergon:cap --cmd='build android'",
"==================== TESTS ====================": "",
"test": "nx test",
"test-all": "nx run-many --target=test --all --exclude=entergon",
"e2e": "nx e2e entergon-e2e --headless=false --watch",
"lint": "nx workspace-lint && pnpm lint-all && pnpm lint-all-styles",
"lint-app": "nx lint --cache && nx lint-styles --cache",
"lint-all": "nx run-many --target=lint --all",
"lint-all-styles": "nx run-many --target=lint-styles --all",
"==================== TOOLS ====================": "",
"postinstall": "jetifier",
"preinstall": "npx -y only-allow pnpm",
"update": "nx migrate latest",
"generator": "nx workspace-generator",
"copy-deps": "pnpm generator copy-dependencies",
"bump": "pnpm generator bump-version",
"dep-graph": "nx dep-graph"
},masives, lilong7676, KrzysztofKarol, jpapini, websolutions-hamburg and 17 morelilong7676, splincode and daniel-marmelshtein-healthy
Metadata
Metadata
Assignees
Labels
No labels