|
8 | 8 | "scripts": {
|
9 | 9 | "__check:links": "make --keep-going check-links",
|
10 | 10 | "_build": "hugo --cleanDestinationDir -e dev -DFE",
|
11 |
| - "_check:formatting": "npx prettier --check .", |
| 11 | + "_check:format": "npx prettier --check .", |
| 12 | + "_check:format:any": "npx prettier --check --ignore-path ''", |
12 | 13 | "_check:links": "HTMLTEST_ARGS='--log-level 1' npm run __check:links",
|
13 | 14 | "_check:links:internal": "npm run __check:links",
|
14 | 15 | "_check:links--warn": "npm run _check:links || (echo; echo 'WARNING: see link-checker output for issues.'; echo)",
|
|
18 | 19 | "_prebuild": "run-s get:submodule cp:spec",
|
19 | 20 | "_prepare:docsy": "cd themes/docsy && npm install",
|
20 | 21 | "_serve:hugo": "hugo serve -DFE --minify",
|
21 |
| - "_serve": "netlify dev -c \"npm run _serve:hugo\"", |
| 22 | + "_serve:netlify": "netlify dev -c \"npm run _serve:hugo\"", |
22 | 23 | "all": "npm-run-all",
|
23 | 24 | "build:preview": "set -x && npm run _build -- --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
|
24 | 25 | "build:production": "hugo --cleanDestinationDir --minify",
|
25 | 26 | "build": "npm run _build",
|
26 | 27 | "cd:public": "cd public &&",
|
27 | 28 | "check": "npm run all -- check:*",
|
28 |
| - "check:formatting": "npm run _check:formatting || (echo '[help] Run: npm run prettier:write'; exit 1)", |
| 29 | + "check:format": "npm run _check:format || (echo '[help] Run: npm run format'; exit 1)", |
29 | 30 | "check:links": "npm run _check:links",
|
30 | 31 | "check:links:internal": "npm run _check:links:internal",
|
31 | 32 | "clean": "make clean",
|
32 | 33 | "cp:spec": "./scripts/content-modules/cp-pages.sh",
|
33 | 34 | "diff:check": "git diff --name-only --exit-code || (echo; echo 'WARNING: the files above have not been committed'; echo)",
|
34 | 35 | "diff:fail": "git diff --name-only --exit-code || (echo; echo 'ERROR: the files above have changed. Locally rerun `npm run test` and commit changes'; echo; git diff | head -100; exit 1)",
|
35 |
| - "format": "npm run _check:formatting -- --write", |
| 36 | + "format": "npm run _check:format -- --write", |
36 | 37 | "get:submodule": "npm run _get:${GET:-submodule}",
|
37 | 38 | "make:public": "make public ls-public",
|
38 | 39 | "postbuild:preview": "npm run _check:links--warn",
|
39 | 40 | "postbuild:production": "npm run _check:links--warn",
|
40 | 41 | "prebuild:preview": "run-s _prebuild",
|
41 |
| - "prebuild:production": "run-s _prebuild check:formatting", |
| 42 | + "prebuild:production": "run-s _prebuild _check:format", |
42 | 43 | "prebuild": "npm run _prebuild",
|
43 | 44 | "precheck:links": "npm run build",
|
44 | 45 | "precheck:links:internal": "npm run build",
|
45 | 46 | "prepare": "run-s get:submodule _prepare:docsy",
|
46 | 47 | "preserve:hugo": "npm run _prebuild",
|
47 |
| - "prettier:no-ignore": "npx prettier --ignore-path ''", |
48 |
| - "prettier:write": "npm run _check:formatting -- --write", |
49 | 48 | "preserve": "npm run _prebuild",
|
50 | 49 | "s": "run-s",
|
51 | 50 | "schemas:update": "npm run update:submodule content-modules/opentelemetry-specification",
|
52 | 51 | "serve:hugo": "npm run _serve:hugo",
|
53 |
| - "serve": "npm run _serve", |
| 52 | + "serve:netlify": "npm run _serve:netlify", |
| 53 | + "serve": "npm run serve:hugo", |
54 | 54 | "test": "run-s check:*",
|
55 | 55 | "update:pkg:docsy-dep": "npm install --save-dev autoprefixer@latest postcss@latest postcss-cli@latest",
|
56 | 56 | "update:pkg:hugo": "npm install --save-dev --save-exact hugo-extended@latest",
|
|
0 commit comments