🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@dreamdt/cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@dreamdt/cli

dsf脚手架

npmnpm
Version
0.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

脚手架使用

🚀 【升级日志】

查看本地版本

I:\> dsf --version
I:\> dsf -v

检测最新版本号

I:\> dsf --check
I:\> dsf -c

升级到最新版

I:\> dsf --update
I:\> dsf -u

打印有关环境的调试信息

I:\> dsf info

查看或配置本地npm私有仓库地址配置

关键字registry的缩写reg
参数--set的缩写-s
参数--reset的缩写-r

# 查看本地npm私有仓库地址配置
I:\> dsf registry
I:\> dsf reg

# 配置本地npm私有仓库地址
I:\> dsf registry --set=<new-registry>
I:\> dsf reg -s <new-registry>

# 重置本地npm私有仓库地址
I:\> dsf reg --reset
I:\> dsf reg -r

创建项目

关键字create的缩写cre

I:\> dsf create [项目名]

模板管理

关键字template的缩写tem
参数--info的缩写-i
参数--push的缩写-p
参数--remove的缩写-r

# 查看模板服务器地址
I:\> dsf template --host

# 配置模板服务器地址
I:\> dsf template --host=<new-host>

# 重置模板服务器地址
I:\> dsf template --host=

# 查看全部模板信息
I:\> dsf template --info

# 查看platform对应的version版本模板信息
I:\> dsf template --info=<template@version>

# 发布platform对应的version版本的模板
I:\> dsf template --push=<platform@version>

# 删除platform对应的version版本的模板
I:\> dsf template --remove=<platform@version>

配置文件

关键字config的缩写c

# 设置参数
I:\> dsf config set <key> <value>

# 获取参数
I:\> dsf config get <key>

# 删除参数
I:\> dsf config delete <key>

# 查看配置
I:\> dsf config list

# 编辑配置文件
I:\> dsf config edit

脚手架工具使用

该命令必须在dsf5.0的平台、产品,或者项目中的任意目录下才能执行

# 安装所有依赖
I:\> dsfu init

# 安装所有依赖
# 对与pnpm安装器,会先除去 `@dsf` 相关的全局缓存,再执行`pnpm install --force`
# 对与npm安装器,则直接执行`npm install --force`
I:\> dsfu init --force
I:\> dsfu init -f

# 清除所有node_modules文件夹
I:\> dsfu clear

# 普通方式运行项目
I:\> dsfu test --run
I:\> dsfu test -r

# 软链接方式运行项目
I:\> dsfu test --link
I:\> dsfu test -l

# 打包项目
I:\> dsfu test --build
I:\> dsfu test -b

# 打包项目(查看打包结构图)
I:\> dsfu test --build=see
I:\> dsfu test -b see

# 打包项目(去除sourcemap)
I:\> dsfu test --build=nomap
I:\> dsfu test -b nomap

# 针对平台/产品模块打包
I:\> dsfu lib --build
I:\> dsfu lib -b

# 针对平台/产品模块打包(去除sourcemap)
I:\> dsfu lib --build=nomap
I:\> dsfu lib -b nomap

# 针对平台/产品模块发布
I:\> dsfu lib --publish
I:\> dsfu lib -p

# 针对平台/产品模块发布(去除sourcemap)
I:\> dsfu lib --publish=nomap
I:\> dsfu lib -p nomap

# 针对平台/产品模块撤销
I:\> dsfu lib --unpublish
I:\> dsfu lib -u

# 发布模板
I:\> dsfu temp --publish
I:\> dsfu temp -p

# 撤销模板
I:\> dsfu temp --unpublish
I:\> dsfu temp -u

# 设置包管理器(仅在安装依赖时会用到这里的设置)
I:\> dsfu bin pnpm
I:\> dsfu bin npm
I:\> dsfu bin

# 编译主题
I:\> dsfu theme --build
I:\> dsfu theme -b

# 撤销编译的主题
I:\> dsfu theme --reset
I:\> dsfu theme -r

# 发布小程序模板
I:\> dsfu mp --publish
I:\> dsfu mp -p

Keywords

dsf

FAQs

Package last updated on 25 Apr 2024

Did you know?

Socket

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.

Install

Related posts