-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support single executable js file build
- Loading branch information
1 parent
9682350
commit 3576b6a
Showing
3 changed files
with
730 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ coverage/ | |
.pnp.* | ||
.yarn/sdks/ | ||
|
||
|
||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,14 +10,15 @@ | |
"start": "node core", | ||
"dev": "yarn nodemon core.js -D", | ||
"pnpify": "yarn dlx @yarnpkg/pnpify", | ||
"build:": "esbuild --bundle --minify --platform=node --outfile=dist/server.js core.js", | ||
"lint": "eslint ./src/**/*.js ./adapter/**/*.js ./test/**/*.js core.js", | ||
"watch": "yarn dlx supervisor --watch \".\" --extensions \"js,json\" --exec \"yarn\" -- \"start\"", | ||
"test": "jest --verbose", | ||
"commit": "yarn dlx git-cz", | ||
"release": "yarn dlx release-it", | ||
"changelog": "yarn dlx -p conventional-changelog-cli conventional-changelog -p conventionalcommits -i CHANGELOG.md -s -r 0 -n .changelog.config.js", | ||
"prepare": "husky install", | ||
"postinstall": "sh -c 'if [ command -v ./node_modules/.bin/husky ]; then ./node_modules/.bin/husky install; fi;'" | ||
"postinstall": "husky install" | ||
}, | ||
"repository": "https://github.com/hitokoto-osc/hitokoto-api", | ||
"author": "a632079 <[email protected]>", | ||
|
@@ -44,6 +45,7 @@ | |
"commitizen": "4.3.0", | ||
"conventional-changelog-conventionalcommits": "7.0.2", | ||
"cz-conventional-changelog": "3.3.0", | ||
"esbuild": "^0.19.5", | ||
"eslint": "8.53.0", | ||
"eslint-config-prettier": "9.0.0", | ||
"eslint-config-standard": "17.1.0", | ||
|
@@ -63,7 +65,8 @@ | |
"regenerator-runtime": "0.13.11", | ||
"release-it": "16.1.0", | ||
"supertest": "6.3.3", | ||
"supervisor": "0.12.0" | ||
"supervisor": "0.12.0", | ||
"webpack": "^5.89.0" | ||
}, | ||
"dependencies": { | ||
"@hitokoto/koa-jsonp": "3.0.7", | ||
|
Oops, something went wrong.