nodejs开发环境搭建示例

19 篇文章 1 订阅
4 篇文章 0 订阅

服务与后端

{
    "name": "AsaiCC",
    "private": true,
    "version": "1.0.0",
    "description": "",
    "main": "main.js",
    "bin": "index.js",
    "author": "",
    "license": "ISC",
    "scripts": {
        "dev": "ts-node-dev --respawn app.ts",
        "server": "node ./index.js",
        "tsc": "tsc app.ts",
        "format": "prettier --write src/",
        "ncc": "npm run tsc && ncc build ./app.js -m -o ./",
        "pkgserver": "npm run ncc && pkg -t win ./index.js -o ./_AsaiCCServer",
        "pkg": "npm run ncc && pkg -t win package.json -o ./_AsaiCC",
        "pkglinux": "npm run ncc && pkg -t linux package.json -o ./_AsaiCClinux",
        "build": "npm run pkg",
        "lib": "tsc ./src/install/Index.ts && ncc build ./src/install/Index.js -o ./src/lib/",
        "start": "electron .",
        "package": "electron-packager ./ AsaiCC --asar --overwrite --platform=win32 --arch=x64 --out=./dist-exe --electron-version=17.1.1 --ignore=node_modules --ignore=src --ignore=app --ignore=index",
        "packageopen": "electron-packager ./ AsaiCC --overwrite --platform=win32 --arch=x64 --out=./dist-exe --electron-version=17.1.1 --ignore=node_modules --ignore=src --ignore=app --ignore=index",
        "test": "echo \"Error: no test specified\" && exit 1"
    },
    "win": {
        "target": "nsis",
        "icon": "favicon.ico"
    },
    "nsis": {
        "oneClick": false,
        "allowElevation": true,
        "allowToChangeInstallationDirectory": true,
        "createDesktopShortcut": true,
        "createStartMenuShortcut": true,
        "installerIcon": "favicon.ico",
        "uninstallerIcon": "favicon.ico",
        "installerHeader": "./favicon.ico",
        "installerHeaderIcon": "./favicon.ico"
    },
    "pkg": {
        "assets": [
            "./web-client/**/*"
        ]
    },
    "dependencies": {
        "koa": "^2.14.1",
        "koa-router": "^12.0.0",
        "koa-static": "^5.0.0",
        "portfinder": "^1.0.32"
    },
    "devDependencies": {
        "@types/koa": "^2.13.5",
        "@types/node": "^18.15.3",
        "@vercel/ncc": "^0.36.1",
        "electron": "^23.2.1",
        "electron-packager": "^17.1.1",
        "pkg": "^5.8.1",
        "ts-node-dev": "^2.0.0",
        "typescript": "^5.0.2"
    }
}

前端

{
  "name": "asai-front",
  "private": true,
  "version": "0.0.0",
  "scripts": {
    "dev": "vite",
    "build": "vue-tsc && vite build",
    "preview": "vite preview"
  },
  "dependencies": {
    "@element-plus/icons-vue": "^2.1.0",
    "@tweenjs/tween.js": "^18.6.4",
    "axios": "^1.4.0",
    "element-plus": "^2.3.9",
    "lodash": "^4.17.21",
    "monaco-editor": "^0.36.1",
    "pinia": "^2.1.6",
    "three": "^0.150.1",
    "tweenjs": "^1.0.2",
    "vue": "^3.3.4",
    "vue-router": "^4.2.4"
  },
  "devDependencies": {
    "@types/node": "^20.5.2",
    "@types/three": "^0.149.0",
    "@vitejs/plugin-vue": "^4.3.3",
    "collect.js": "^4.36.1",
    "sass": "^1.66.1",
    "typescript": "^5.1.6",
    "vite": "^4.4.9",
    "vite-plugin-monaco-editor": "^1.1.0",
    "vue-tsc": "^1.8.8"
  }
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

阿赛工作室

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值