1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 23:47:32 +02:00

chore: add script placeholders to allow running scripts globally

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Sami Mazouz
2023-06-07 11:19:59 +01:00
parent 12ef1bfdbb
commit fad818d1e5
4 changed files with 45 additions and 2 deletions

View File

@@ -19,5 +19,17 @@
}, },
"devDependencies": { "devDependencies": {
"prettier": "^2.4.1" "prettier": "^2.4.1"
},
"scripts": {
"dev": "echo 'skipping..'",
"build": "echo 'skipping..'",
"analyze": "echo 'skipping..'",
"format": "prettier --write .",
"format-check": "prettier --check .",
"clean-typings": "echo 'skipping..'",
"build-typings": "echo 'skipping..'",
"post-build-typings": "echo 'skipping..'",
"check-typings": "echo 'skipping..'",
"check-typings-coverage": "echo 'skipping..'"
} }
} }

View File

@@ -4,7 +4,17 @@
"description": "Flarum's configuration for the Prettier code formatter.", "description": "Flarum's configuration for the Prettier code formatter.",
"main": "prettierrc.json", "main": "prettierrc.json",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"dev": "echo 'skipping..'",
"build": "echo 'skipping..'",
"analyze": "echo 'skipping..'",
"format": "prettier --write .",
"format-check": "prettier --check .",
"clean-typings": "echo 'skipping..'",
"build-typings": "echo 'skipping..'",
"post-build-typings": "echo 'skipping..'",
"check-typings": "echo 'skipping..'",
"check-typings-coverage": "echo 'skipping..'"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@@ -11,5 +11,17 @@
"@types/mithril": "^2.0.7", "@types/mithril": "^2.0.7",
"@types/throttle-debounce": "^2.1.0", "@types/throttle-debounce": "^2.1.0",
"dayjs": "^1.10.4" "dayjs": "^1.10.4"
},
"scripts": {
"dev": "echo 'skipping..'",
"build": "echo 'skipping..'",
"analyze": "echo 'skipping..'",
"format": "prettier --write .",
"format-check": "prettier --check .",
"clean-typings": "echo 'skipping..'",
"build-typings": "echo 'skipping..'",
"post-build-typings": "echo 'skipping..'",
"check-typings": "echo 'skipping..'",
"check-typings-coverage": "echo 'skipping..'"
} }
} }

View File

@@ -30,6 +30,15 @@
"@flarum/prettier-config": "^1.0.0" "@flarum/prettier-config": "^1.0.0"
}, },
"scripts": { "scripts": {
"format": "prettier --write ." "dev": "echo 'skipping..'",
"build": "echo 'skipping..'",
"analyze": "echo 'skipping..'",
"format": "prettier --write .",
"format-check": "prettier --check .",
"clean-typings": "echo 'skipping..'",
"build-typings": "echo 'skipping..'",
"post-build-typings": "echo 'skipping..'",
"check-typings": "echo 'skipping..'",
"check-typings-coverage": "echo 'skipping..'"
} }
} }