-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
40 lines (40 loc) · 3.44 KB
/
Copy pathpackage.json
File metadata and controls
40 lines (40 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "tc54-build-cyclonedx",
"version": "1.0.0",
"type": "module",
"engines": {
"node": ">= 18"
},
"bin": {
"jsonschema-ecma-docgen": "./index.js"
},
"scripts": {
"fetch:cdx-schema": "node --input-type=module -e \"import fs from 'fs'; import { mkdirSync, writeFileSync } from 'fs'; import { basename } from 'path'; const url='https://raw.githubusercontent.com/CycloneDX/specification/refs/heads/master/schema/bom-1.7.schema.json'; const res=await fetch(url); const text=await res.text(); const filename=basename(url); const dir='schemas'; mkdirSync(dir, { recursive: true }); writeFileSync(dir + '/' + filename, text);\"",
"fetch:jsf-schema": "node --input-type=module -e \"import fs from 'fs'; import { mkdirSync, writeFileSync } from 'fs'; import { basename } from 'path'; const url='https://raw.githubusercontent.com/CycloneDX/specification/refs/tags/1.7/schema/jsf-0.82.schema.json'; const res=await fetch(url); const text=(await res.text()).replaceAll('#/definitions', 'jsf-0.82.schema.json#/definitions'); const filename=basename(url); const dir='schemas'; mkdirSync(dir, { recursive: true }); writeFileSync(dir + '/' + filename, text);\"",
"fetch:spdx-schema": "node --input-type=module -e \"import fs from 'fs'; import { mkdirSync, writeFileSync } from 'fs'; import { basename } from 'path'; const url='https://raw.githubusercontent.com/CycloneDX/specification/refs/tags/1.7/schema/spdx.schema.json'; const res=await fetch(url); const text=await res.text(); const filename=basename(url); const dir='schemas'; mkdirSync(dir, { recursive: true }); writeFileSync(dir + '/' + filename, text);\"",
"fetch:crypto-schema": "node --input-type=module -e \"import fs from 'fs'; import { mkdirSync, writeFileSync } from 'fs'; import { basename } from 'path'; const url='https://raw.githubusercontent.com/CycloneDX/specification/refs/tags/1.7/schema/cryptography-defs.schema.json'; const res=await fetch(url); const text=await res.text(); const filename=basename(url); const dir='schemas'; mkdirSync(dir, { recursive: true }); writeFileSync(dir + '/' + filename, text);\"",
"generate-spec": "npm run fetch:cdx-schema && npm run fetch:crypto-schema && npm run fetch:jsf-schema && npm run fetch:spdx-schema && node index.js",
"ipr-check": "node scripts/check-form Ecma-TC54/ECMA-424 HEAD --all",
"build-head-original": "npm run build-only -- --lint-spec --strict",
"build-head": "npm run build-only -- --lint-spec",
"prebuild-only": "npm run clean && mkdir out && cp -R img out",
"build-only": "ecmarkup --verbose spec.html --multipage out --max-clause-depth 5",
"build": "npm run build-head",
"build-for-pdf": "npm run prebuild-only && ecmarkup --verbose spec.html out/index.html --assets external --assets-dir out --printable --lint-spec --max-clause-depth 5",
"pdf": "npm run build-for-pdf && prince-books --script ./node_modules/ecmarkup/js/print.js out/index.html -o out/ECMA-424.pdf",
"local-dev-pdf": "npm run generate-spec && npm run pdf",
"prebuild-snapshot": "npm run clean",
"build-snapshot": "npm run build-head && node scripts/insert_snapshot_warning.js",
"clean": "rm -rf out",
"format": "emu-format --write spec.html",
"test": "exit 0",
"watch": "npm run build-only -- --lint-spec --watch",
"check-commit": "node scripts/check-commit"
},
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^11.6.2",
"ecmarkup": "^21.5.0",
"js-beautify": "^1.15.4",
"lodash": "^4.17.21"
}
}