1 | {
|
2 | "name": "budoux",
|
3 | "version": "0.6.2",
|
4 | "description": "A small chunk segmenter.",
|
5 | "repository": {
|
6 | "type": "git",
|
7 | "url": "https://github.com/google/budoux.git",
|
8 | "directory": "javascript"
|
9 | },
|
10 | "main": "./dist/index.js",
|
11 | "module": "./module/index.js",
|
12 | "bin": {
|
13 | "budoux": "./bin/budoux.js"
|
14 | },
|
15 | "sideEffects": [
|
16 | "./module/webcomponents/*",
|
17 | "./module/tests/*"
|
18 | ],
|
19 | "scripts": {
|
20 | "build": "npm run build:es && npm run build:cjs",
|
21 | "build:cjs": "tsc && cp -r src/tests/models/ dist/tests/models/",
|
22 | "build:es": "tsc --outDir module --module ES2020 && cp module/win-browser.js module/win.js && cp -r src/tests/models/ module/tests/models/",
|
23 | "bundle": "npm run bundle:webcomponents && npm run bundle:test",
|
24 | "bundle:test": "esbuild module/tests/index.browser.js --bundle --sourcemap --outfile=bundle/tests/index.browser.js",
|
25 | "bundle:webcomponents": "npm run bundle:webcomponents:ja && npm run bundle:webcomponents:zh-hans && npm run bundle:webcomponents:zh-hant",
|
26 | "bundle:webcomponents:ja": "esbuild module/webcomponents/budoux-ja.js --bundle --minify --sourcemap --outfile=bundle/budoux-ja.min.js",
|
27 | "bundle:webcomponents:zh-hans": "esbuild module/webcomponents/budoux-zh-hans.js --bundle --minify --sourcemap --outfile=bundle/budoux-zh-hans.min.js",
|
28 | "bundle:webcomponents:zh-hant": "esbuild module/webcomponents/budoux-zh-hant.js --bundle --minify --sourcemap --outfile=bundle/budoux-zh-hant.min.js",
|
29 | "clean": "rm -rf dist module src/data",
|
30 | "copy": "node ./scripts/copy-data.js",
|
31 | "prebuild": "npm run clean && npm run copy",
|
32 | "prepare": "npm run clean && npm run copy && npm run build && npm run bundle",
|
33 | "pretest": "npm run build && npm run bundle:test",
|
34 | "test": "npm run test:jasmine && npm run test:karma && npm run test:cli-version",
|
35 | "test:cli-version": "node ./scripts/check-cli-version.js",
|
36 | "test:jasmine": "jasmine dist/tests/index.node.js",
|
37 | "test:karma": "karma start",
|
38 | "lint": "eslint src/** --no-error-on-unmatched-pattern",
|
39 | "fix": "eslint src/** --no-error-on-unmatched-pattern --fix"
|
40 | },
|
41 | "author": "Shuhei Iitsuka",
|
42 | "license": "Apache-2.0",
|
43 | "browser": {
|
44 | "./dist/win.js": "./dist/win-browser.js",
|
45 | "./module/win.js": "./module/win-browser.js"
|
46 | },
|
47 | "devDependencies": {
|
48 | "@types/jasmine": "^5.1.0",
|
49 | "@types/jsdom": "^21.1.1",
|
50 | "@types/node": "^20.3.3",
|
51 | "@typescript-eslint/eslint-plugin": "^6.0.0",
|
52 | "esbuild": "^0.19.0",
|
53 | "eslint": "^8.44.0",
|
54 | "eslint-config-prettier": "^9.0.0",
|
55 | "eslint-plugin-prettier": "^5.0.0",
|
56 | "jasmine": "^5.0.2",
|
57 | "jasmine-core": "^5.0.1",
|
58 | "karma": "^6.4.2",
|
59 | "karma-chrome-launcher": "^3.2.0",
|
60 | "karma-jasmine": "^5.1.0",
|
61 | "typescript": "^5.1.6"
|
62 | },
|
63 | "dependencies": {
|
64 | "commander": "^11.0.0",
|
65 | "jsdom": "^23.0.0"
|
66 | }
|
67 | }
|