
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@exoskeleton/cli
Advanced tools
@exoskeleton/core 脚手架和 cli 工具
配合@exoskeleton/core使用效果更佳
本地安装
npm install @exoskeleton/cli --save-dev
yarn add @exoskeleton/cli -D
全局安装
npm install @exoskeleton/cli --global
yarn global add @exoskeleton/cli
@exoskeleton/cli 开放了一个配置文件,用来简化 cli 参数的使用,类似 webpack,可以使用--config 参数修改配置文件的名字,默认为exoskeleton.config.js。
exoskeleton.config.js - 一个简单的配置文件
const path = require("path");
module.exports = {
tsconfig: "tsconfig.json",
inspect: true,
typeCheck: true,
transpile: true,
debug: "*",
mock: "http://127.0.0.1:8001",
// exoskeleton router 的命令配置
// 编译生成routers,不再需要手动书写routers文件
routers: {
enabled: true,
always: false,
approot: "/v1",
filetype: "ts",
details: true
},
// exoskeleton-cli监控的文件修改列表,自动重启node服务
watch: [
path.join(__dirname, "app/**/*.*"),
path.join(__dirname, "config/**/*.*"),
path.join(__dirname, "plugins/**/*.*")
],
// 忽略的文件列表
ignore: [],
// exoskeleton config 的命令配置
// 编译ts配置文件,支持DI能力 @1.1.0 引入
configCompiler: {
enabled: true,
force: true,
configroot: "app/config",
outputroot: "config
}
};
# cmd:exo 或者 exoskeleton
# 本地安装@exoskeleton/cli
npx exo dev --inspect --tsconfig app/tsconfig.json
# 全局装过@exoskeleton/cli
exo dev --inspect --tsconfig app/tsconfig.json
FAQs
@exoskeleton/core 脚手架和 cli 工具
We found that @exoskeleton/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.