Skip to content

Commit 259f091

Browse files
committed
fix scripts
1 parent cb7aa7d commit 259f091

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,17 @@ cd oracle-sql-parser
3131
npm i
3232
npm 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+
```

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
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",

0 commit comments

Comments
 (0)