
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
vite-cli-service
Advanced tools
npm i vite-cli-service -g
node -12 "type": "module",
vite-cli-service create
package.json指定入口文件
"bin": "cli.js",
补充cli.js内容
执行
npm link
之后执行
vite-cli-service
const program = require('commander')
program
.version(require('../package').version)
.usage('<command> [options]')
.command('add', 'add a new template')
.command('delete', 'delete a template')
.command('list', 'list all the templates')
.command('init', 'generate a new project from a template')
.command('create', 'create a project by select')
// 解析命令行参数
program.parse(process.argv)
input text inquirer
loadding ora
#! /usr/bin/env node
const spawn = require('cross-spawn');
const chalk = require('chalk')
// 定义需要按照的依赖
const dependencies = ['vue', 'vuex', 'vue-router'];
// 执行安装
const child = spawn('npm', ['install', '-D'].concat(dependencies), {
stdio: 'inherit'
});
// 监听执行结果
child.on('close', function(code) {
// 执行失败
if(code !== 0) {
console.log(chalk.red('Error occurred while installing dependencies!'));
process.exit(1);
}
// 执行成功
else {
console.log(chalk.cyan('Install finished'))
}
})
$ npm install fs-extra --save
添加子仓库
git submodule add <git_url> mymodule
删除子仓库
git rm --cache <pkg_name>
拉去子仓库变更
git submodule foreach git pull
FAQs
vite-vue3脚手架
The npm package vite-cli-service receives a total of 2 weekly downloads. As such, vite-cli-service popularity was classified as not popular.
We found that vite-cli-service 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.