|
4 | 4 | "version": "1.0.0", |
5 | 5 | "scripts": { |
6 | 6 | "test": "jest", |
7 | | - "validate-definition": "ajv validate --errors=json -s schemas/entity-schema-v1.json -d '../entity-types/*/definition.yml' > /dev/null", |
8 | | - "validate-summary-metrics": "ajv validate --errors=json -s schemas/summary-metrics-schema-v1.json -d '../entity-types/*/summary_metrics.yml' > /dev/null", |
9 | | - "validate-golden-metrics": "ajv validate --errors=json -s schemas/golden-metrics-schema-v1.json -d '../entity-types/*/golden_metrics.yml' > /dev/null", |
10 | | - "validate-dashboard": "ajv validate --errors=json -s schemas/dashboard-schema-v1.json -d '../entity-types/*/*dashboard.json' > /dev/null", |
11 | | - "validate-relationship-synthesis": "ajv validate --errors=json -s schemas/relationship-synthesis-schema-v1.json -d '../relationships/synthesis/*.yml' > /dev/null", |
| 7 | + "validate-definition": "ajv validate --errors=json -s schemas/entity-schema-v1.json -d '../entity-types/*/definition{.stg,}.yml' > /dev/null", |
| 8 | + "validate-summary-metrics": "ajv validate --errors=json -s schemas/summary-metrics-schema-v1.json -d '../entity-types/*/summary_metrics{.stg,}.yml' > /dev/null", |
| 9 | + "validate-golden-metrics": "ajv validate --errors=json -s schemas/golden-metrics-schema-v1.json -d '../entity-types/*/golden_metrics{.stg,}.yml' > /dev/null", |
| 10 | + "validate-dashboard": "ajv validate --errors=json -s schemas/dashboard-schema-v1.json -d '../entity-types/*/*dashboard{.stg,}.json' > /dev/null", |
| 11 | + "validate-relationship-synthesis": "ajv validate --errors=json -s schemas/relationship-synthesis-schema-v1.json -d '../relationships/synthesis/*{.stg,}.yml' > /dev/null", |
12 | 12 | "validate-folders": "node tools/validate_folders.js", |
13 | 13 | "validate-rules": "node tools/validate_rules.js", |
14 | 14 | "validate-relationship-synthesis-rules": "node tools/validate_relationship_synthesis_rules.js", |
|
18 | 18 | "check": "npm run validate-schemas && npm run validate-rules && npm run validate-relationship-synthesis-rules && npm run approve-job", |
19 | 19 | "sanitize-dashboards": "node tools/sanitize_dashboards.js", |
20 | 20 | "check-pr": "npm run validate-schemas-pr && npm run validate-rules && npm run validate-relationship-synthesis-rules && npm run approve-job", |
21 | | - "validate-definition-pr": "ajv validate --errors=json -s schemas/entity-schema-v1.json -d '../prcode/entity-types/*/definition.yml' > /dev/null", |
22 | | - "validate-summary-metrics-pr": "ajv validate --errors=json -s schemas/summary-metrics-schema-v1.json -d '../prcode/entity-types/*/summary_metrics.yml' > /dev/null", |
23 | | - "validate-golden-metrics-pr": "ajv validate --errors=json -s schemas/golden-metrics-schema-v1.json -d '../prcode/entity-types/*/golden_metrics.yml' > /dev/null", |
24 | | - "validate-dashboard-pr": "ajv validate --errors=json -s schemas/dashboard-schema-v1.json -d '../prcode/entity-types/*/*dashboard.json' > /dev/null", |
25 | | - "validate-relationship-synthesis-pr": "ajv validate --errors=json -s schemas/relationship-synthesis-schema-v1.json -d '../prcode/entity-types/synthesis/*.yml' > /dev/null", |
| 21 | + "validate-definition-pr": "ajv validate --errors=json -s schemas/entity-schema-v1.json -d '../prcode/entity-types/*/definition{.stg,}.yml' > /dev/null", |
| 22 | + "validate-summary-metrics-pr": "ajv validate --errors=json -s schemas/summary-metrics-schema-v1.json -d '../prcode/entity-types/*/summary_metrics{.stg,}.yml' > /dev/null", |
| 23 | + "validate-golden-metrics-pr": "ajv validate --errors=json -s schemas/golden-metrics-schema-v1.json -d '../prcode/entity-types/*/golden_metrics{.stg,}.yml' > /dev/null", |
| 24 | + "validate-dashboard-pr": "ajv validate --errors=json -s schemas/dashboard-schema-v1.json -d '../prcode/entity-types/*/*dashboard{.stg,}.json' > /dev/null", |
| 25 | + "validate-relationship-synthesis-pr": "ajv validate --errors=json -s schemas/relationship-synthesis-schema-v1.json -d '../prcode/entity-types/synthesis/*{.stg,}.yml' > /dev/null", |
26 | 26 | "validate-schemas-pr": "npm run validate-definition-pr && npm run validate-summary-metrics-pr && npm run validate-golden-metrics-pr && npm run validate-dashboard-pr && npm run validate-relationship-synthesis-pr && npm run validate-folders && npm run validate-uninstrumented-definitions-exists", |
27 | 27 | "lint:fix": "eslint --fix ./**/*.js" |
28 | 28 | }, |
|
0 commit comments