Skip to content

Commit 371f513

Browse files
committed
client working build
1 parent 828ee9a commit 371f513

3 files changed

Lines changed: 173 additions & 1 deletion

File tree

client/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// sqlsimpleparser client
2+
import { SqlSimpleParser } from "../src";
3+
4+
interface Window {
5+
sqlsimpleparser: SqlSimpleParser;
6+
}
7+
8+
declare let window: Window;
9+
window.sqlsimpleparser = new SqlSimpleParser;

package-lock.json

Lines changed: 160 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"test:watch": "jest --watchAll",
1414
"lint": "eslint",
1515
"build": "tsc",
16-
"build:client": "browserify src/index.ts -p [ tsify --noImplicitAny ] > dist/sqlsimpleparser.js"
16+
"build:help": "tsc --help",
17+
"build:drawio": "tsc ./src/index.ts --moduleResolution node --outFile ./lib/single.js --module amd",
18+
"build:client": "browserify client/index.ts -p [ tsify --noImplicitAny ] > dist/sqlsimpleparser.js"
1719
},
1820
"author": "lastlink",
1921
"license": "MIT",
@@ -29,6 +31,7 @@
2931
"jest": "^29.0.3",
3032
"jest-junit": "^12.0.0",
3133
"jest-serial-runner": "^1.1.0",
34+
"tsify": "^5.0.2",
3235
"ts-jest": "^29.0.1",
3336
"ts-node": "^10.9.1",
3437
"typescript": "^4.8.3"

0 commit comments

Comments
 (0)