File tree 2 files changed +19
-5
lines changed
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
31
31
npm i
32
32
npm test
33
33
```
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 4
4
"description" : " spec compliant parser for oracle sql" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " npm run generate && jest" ,
7
+ "test" : " npm run build && jest" ,
8
8
"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"
13
13
},
14
14
"keywords" : [
15
15
" sql" ,
You can’t perform that action at this time.
0 commit comments