nodejs开发环境搭建示例

news/2024/11/16 18:31:54/

服务与后端

{"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"}
}

http://www.ppmy.cn/news/1052868.html

相关文章

【官方中文文档】Mybatis-Spring #使用 MyBatis API

使用 MyBatis API 使用 MyBatis-Spring,你可以继续直接使用 MyBatis 的 API。只需简单地使用 SqlSessionFactoryBean 在 Spring 中创建一个 SqlSessionFactory,然后按你的方式在代码中使用工厂即可。 public class UserDaoImpl implements UserDao {//…

利用iconfont与前端组合开发,让项目更加个性化

引言 在前端开发中,图标的使用对项目来说非常重要。传统的图片图标有一定的缺点,比如体积大、无法自由缩放等。iconfont作为一种新的图标使用方式,可以很好地弥补这些缺点。本文将介绍如何利用iconfont与前端技术进行组合,给项目…

LLMs训练的算力优化Computational challenges of training LLMs

当您尝试训练大型语言模型时,您仍然经常遇到的最常见问题之一是内存不足。如果您曾尝试在Nvidia GPU上训练或甚至只是加载模型,那么这个错误消息可能看起来很熟悉。 CUDA,即Compute Unified Device Architecture的缩写,是为Nvid…

PSP - 蛋白质结构预测 AlphaFold2 的结构模版 (Template) 搜索与特征逻辑

欢迎关注我的CSDN:https://spike.blog.csdn.net/ 本文地址:https://spike.blog.csdn.net/article/details/132427617 结构模版 (Template) 是一种已知的蛋白质结构,可以作为 AlphaFold2 蛋白质结构预测的参考,AlphaFold2 可以从多…

面试之快速学习计算机网络-http

1. HTTP常见状态码 2. 3开头重定向,4开头客户端错误,5开头服务端错误 2. HTTP 报文 1. start-line:请求行,可以为以下两者之一: 请求行: GET /hello-world2.html HTTP/1.1状态行:HTTP/1.1 200…

使用Pytorch和OpenCV实现视频人脸替换

“DeepFaceLab”项目已经发布了很长时间了,作为研究的目的,本文将介绍他的原理,并使用Pytorch和OpenCV创建一个简化版本。 本文将分成3个部分,第一部分从两个视频中提取人脸并构建标准人脸数据集。第二部分使用数据集与神经网络一…

每日一学——Vlan配置

VLAN(Virtual Local Area Network)是虚拟局域网的缩写,它是一种将多台主机和网络设备逻辑上划分成不同的局域网的技术。VLAN的实施可以基于端口、MAC地址、协议等多种方式进行。 VLAN的主要功能包括: 分割网络:VLAN可…

VUE 目录介绍

更新升级(npm - i)之后最终目录如下: total 1672 drwxr-xr-x 18 testrose staff 576 8 22 02:53 . drwxr-xr-x 24 testrose staff 768 8 22 02:50 .. -rw-r--r-- 1 testrose staff 402 8 22 02:52 .babelrc -rw…