Closed
Description
Is your feature request related to a problem? Please describe.
Registrazione.schermo.2022-03-26.alle.09.30.34.mov
You know that XCode has a menu like this, which allows you to run tests and other things as well as run the program.
It would be useful to have something like this, but which allows you to run scripts found in the package.json
file.
Script package.json example:
"scripts": {
"typescript": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"lint-ci": "yarn lint -f ./node_modules/@firmnav/eslint-github-actions-formatter/dist/formatter.js",
"build": "bob build",
"release": "release-it",
"pods": "cd example && yarn pods",
"bootstrap": "yarn && cd example && yarn && yarn setup && yarn pods",
"check-android": "scripts/ktlint.sh && scripts/cpplint.sh",
"check-ios": "scripts/swiftformat.sh && scripts/swiftlint.sh",
"check-js": "yarn lint --fix && yarn typescript",
"check-all": "scripts/check-all.sh",
"clean-ios": "scripts/clean-ios.sh",
"clean-android": "scripts/clean-android.sh",
"clean-js": "scripts/clean-js.sh",
"docs": "cd docs && yarn build"
}
Describe the solution you'd like
So if the project contains a package.json
file it tries to read it, if it finds any scripts, it puts them in the menu to let you run them.
When one of the scripts is pressed, it starts the script in a new shell.
Metadata
Metadata
Assignees
Type
Projects
Status
🏁 Complete