|
51 | 51 | "parcel": "^2.4.1", |
52 | 52 | "parcel-transformer-hbs": "^1.0.4", |
53 | 53 | "peggy": "^4.0.2", |
| 54 | + "pegjs-backtrace": "^0.2.1", |
54 | 55 | "pinst": "^3.0.0", |
55 | 56 | "print": "^1.2.0", |
| 57 | + "puppeteer": "^23.1.0", |
56 | 58 | "shx": "^0.3.4", |
57 | 59 | "theredoc": "^1.0.0", |
58 | 60 | "ts-jest": "^29.2.3", |
|
64 | 66 | "typescript-eslint": "^8.0.1" |
65 | 67 | }, |
66 | 68 | "scripts": { |
67 | | - "build:suffix-normalize": "shx rm -rf src/normalize_mappings/suffix-normalize-mapping.ts && tsx src/normalize_mappings/generate-suffix-normalize-mapping.ts", |
| 69 | + "build": "yarn build:code-generate && yarn build:sources && yarn build:bundle && yarn build:check-types", |
| 70 | + "build:bundle": "yarn build:bundle:default && yarn build:bundle:min", |
| 71 | + "build:bundle:default": "esbuild lib/index.js --outfile=lib/bundle.js --bundle --global-name=ChordSheetJS", |
| 72 | + "build:bundle:min": "esbuild lib/index.js --outfile=lib/bundle.min.js --bundle --global-name=ChordSheetJS --minify-whitespace --minify-identifiers --minify-syntax", |
| 73 | + "build:check-types": "tsc lib/main.d.ts", |
68 | 74 | "build:chord-suffix-grammar": "yarn tsx script/generate_chord_suffix_grammar.ts", |
| 75 | + "build:code-generate": "yarn build:suffix-normalize && yarn build:chord-suffix-grammar && yarn build:pegjs && yarn build:scales", |
| 76 | + "build:pegjs": "yarn build:pegjs:chord && yarn build:pegjs:chordpro && yarn build:pegjs:chords-over-words", |
| 77 | + "build:pegjs:chord": "tsx script/combine_files.ts src/parser/chord/base_grammar.pegjs src/parser/chord/suffix_grammar.pegjs src/parser/chord/combined_grammer.pegjs && peggy --plugin ts-pegjs -o src/parser/chord/peg_parser.ts src/parser/chord/combined_grammer.pegjs", |
69 | 78 | "build:pegjs:chordpro": "tsx script/generate_parser.ts chord_pro --skip-chord-grammar", |
70 | 79 | "build:pegjs:chords-over-words": "tsx script/generate_parser.ts chords_over_words", |
71 | | - "build:pegjs:chord": "tsx script/combine_files.ts src/parser/chord/base_grammar.pegjs src/parser/chord/suffix_grammar.pegjs src/parser/chord/combined_grammer.pegjs && peggy --plugin ts-pegjs -o src/parser/chord/peg_parser.ts src/parser/chord/combined_grammer.pegjs", |
72 | | - "build:pegjs": "yarn build:pegjs:chord && yarn build:pegjs:chordpro && yarn build:pegjs:chords-over-words", |
73 | 80 | "build:scales": "tsx script/generate_scales.ts && yarn linter:fix src/scales.ts", |
74 | | - "build:code-generate": "yarn build:suffix-normalize && yarn build:chord-suffix-grammar && yarn build:pegjs && yarn build:scales", |
75 | 81 | "build:sources": "parcel build", |
76 | | - "build:bundle": "yarn build:bundle:default && yarn build:bundle:min", |
77 | | - "build:bundle:default": "esbuild lib/index.js --outfile=lib/bundle.js --bundle --global-name=ChordSheetJS", |
78 | | - "build:bundle:min": "esbuild lib/index.js --outfile=lib/bundle.min.js --bundle --global-name=ChordSheetJS --minify-whitespace --minify-identifiers --minify-syntax", |
79 | | - "build:check-types": "tsc lib/main.d.ts", |
80 | | - "build": "yarn build:code-generate && yarn build:sources && yarn build:bundle && yarn build:check-types", |
| 82 | + "build:suffix-normalize": "shx rm -rf src/normalize_mappings/suffix-normalize-mapping.ts && tsx src/normalize_mappings/generate-suffix-normalize-mapping.ts", |
| 83 | + "ci": "yarn install && yarn lint && yarn test && yarn build && yarn readme", |
| 84 | + "clean": "shx rm -rf node_modules && shx rm -rf lib", |
| 85 | + "debug:chordpro": "tsx script/debug_parser.ts chord_pro --skip-chord-grammar", |
81 | 86 | "dev": "parcel watch --no-cache", |
82 | | - "test": "yarn pretest && yarn lint && yarn jest:run", |
83 | | - "jest:watch": "jest --watch", |
84 | 87 | "jest:debug": "bin/open_inspector && node --nolazy --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --colors --verbose", |
85 | | - "jest:run:exp": "node --experimental-vm-modules node_modules/.bin/jest", |
86 | 88 | "jest:run": "jest", |
87 | | - "linter:run": "yarn eslint", |
88 | | - "linter:fix": "yarn linter:run --fix", |
89 | | - "prelint": "yarn build:code-generate", |
| 89 | + "jest:run:exp": "node --experimental-vm-modules node_modules/.bin/jest", |
| 90 | + "jest:watch": "jest --watch", |
90 | 91 | "lint": "yarn prelint && yarn linter:run .", |
91 | 92 | "lint:fix": "yarn prelint && yarn linter:fix .", |
92 | | - "clean": "shx rm -rf node_modules && shx rm -rf lib", |
93 | | - "readme": "node_modules/.bin/jsdoc2md -f src/**/*.ts -f src/*.ts --configure ./jsdoc2md.json --template doc/README.hbs > README.md", |
94 | | - "prepublish": "pinst --disable && yarn install && yarn test && yarn build", |
| 93 | + "linter:fix": "yarn linter:run --fix", |
| 94 | + "linter:run": "yarn eslint", |
95 | 95 | "postpublish": "pinst --enable", |
96 | | - "pretest": "yarn build:code-generate", |
| 96 | + "prelint": "yarn pretest", |
97 | 97 | "prepare": "husky install", |
98 | | - "ci": "yarn install && yarn lint && yarn test && yarn build && yarn readme" |
| 98 | + "prepublish": "pinst --disable && yarn install && yarn test && yarn build", |
| 99 | + "pretest": "NODE_ENV=test yarn build:code-generate", |
| 100 | + "readme": "node_modules/.bin/jsdoc2md -f src/**/*.ts -f src/*.ts --configure ./jsdoc2md.json --template doc/README.hbs > README.md", |
| 101 | + "test": "yarn pretest && yarn linter:run && yarn jest:run" |
99 | 102 | }, |
100 | 103 | "dependencies": { |
101 | 104 | "lodash.get": "^4.4.2" |
|
0 commit comments