Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve package format #75

Merged
merged 3 commits into from
Jul 15, 2022
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
196 changes: 98 additions & 98 deletions javascript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
},
"scripts": {
"build": "npm run build:es && npm run build:cjs",
"build:cjs": "tsc --outDir dist --module CommonJS",
"build:es": "tsc --outDir module --module ES6",
"build:cjs": "tsc --outDir dist --module CommonJS --sourceMap false",
"build:es": "tsc --outDir module --module ES6 --sourceMap false && cp module/dom-browser.js module/dom.js",
"bundle": "npm run bundle:webcomponent:ja && npm run bundle:webcomponent:zh-hans",
"bundle:webcomponent:ja": "esbuild module/webcomponents/budoux-ja.js --bundle --minify --outfile=bundle/budoux-ja.min.js",
"bundle:webcomponent:zh-hans": "esbuild module/webcomponents/budoux-zh-hans.js --bundle --minify --outfile=bundle/budoux-zh-hans.min.js",
"bundle:webcomponent:ja": "esbuild module/webcomponents/budoux-ja.js --bundle --minify --sourcemap --outfile=bundle/budoux-ja.min.js",
"bundle:webcomponent:zh-hans": "esbuild module/webcomponents/budoux-zh-hans.js --bundle --minify --sourcemap --outfile=bundle/budoux-zh-hans.min.js",
"copy": "node ./scripts/copy-data.js",
"prepare": "npm run copy && npm run build && npm run bundle",
"test": "ts-node node_modules/jasmine/bin/jasmine tests/*.ts",
Expand Down