File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed
Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -31,3 +31,17 @@ cd oracle-sql-parser
3131npm i
3232npm test
3333```
34+
35+ ## Scripts
36+
37+ Generate the parser in ` ./build/parser.js `
38+
39+ ``` sh
40+ npm run generate
41+ ```
42+
43+ Generate and minify the parser in ` ./build/parser.js `
44+
45+ ``` sh
46+ npm run build
47+ ```
Original file line number Diff line number Diff line change 44 "description" : " spec compliant parser for oracle sql" ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "test" : " npm run generate && jest" ,
7+ "test" : " npm run build && jest" ,
88 "minify" : " npx uglifyjs ./build/parser.js -o ./build/parser.js -c -m" ,
9- "build " : " npx peggy -o ./build/parser.js ./src/pegjs/oracle.pegjs" ,
10- "generate " : " npm run build && npm run minify" ,
11- "start" : " npm run build && node ./src/index.js" ,
12- "publish" : " npm run generate && npm publish"
9+ "generate " : " npx peggy -o ./build/parser.js ./src/pegjs/oracle.pegjs" ,
10+ "build " : " npm run generate && npm run minify" ,
11+ "start" : " npm run generate && node ./src/index.js" ,
12+ "publish" : " npm run build && npm publish"
1313 },
1414 "keywords" : [
1515 " sql" ,
You can’t perform that action at this time.
0 commit comments