Skip to content

Commit

Permalink
feat: support single executable js file build
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Nov 16, 2023
1 parent 9682350 commit 3576b6a
Show file tree
Hide file tree
Showing 3 changed files with 730 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ coverage/
.pnp.*
.yarn/sdks/


dist/
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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]>",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
Loading

0 comments on commit 3576b6a

Please sign in to comment.