Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Makefile

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ var sql = sqlParser.stringify(ast);

- ${value} like value place holder support.

## Build

- Run `npm run build` to build the distributable.

## LICENSE

MIT
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"description": "",
"main": "./dist/parser/sqlParser.js",
"scripts": {
"test": "make test",
"benchmark": "node test/benchmark.js"
"build": "jison -m js ./src/sqlParser.jison -o ./dist/parser/sqlParser.js && npm run build-concat",
"build-concat": "concat -o ./dist/parser/sqlParser.js ./dist/parser/sqlParser.js src/stringify.js src/suffix.js",
"postbuild": "npm run test:build",
"test:all": "mocha --require babel-register",
"test:build": "mocha 'test/*.test.js'",
"test:benchmark": "mocha test/benchmark.js"
},
"repository": {
"type": "git",
Expand All @@ -25,6 +29,7 @@
"babel-preset-es2015": "^6.22.0",
"babel-register": "^6.22.0",
"benchmark": "^2.1.3",
"concat": "^1.0.3",
"debug": "^3.1.0",
"jison": "^0.4.17",
"mocha": "^3.2.0"
Expand Down