Socket
Book a DemoInstallSign in
Socket

tntd-cli

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tntd-cli

a cli to bootstrap a new project

1.0.1
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

tnt-cli简介

命令行工具,快速创建项目模版,基于UED部门现有的项目架构

react提供三种模式:

  • default: 默认项,全家桶模式,菜单走解决方案接口获取
  • paas: paas 模式也是属于全家桶模式,区别在于样式及菜单交互不一致
  • custom: 自定义菜单模式,菜单自定义,未对接解决方案系统

node项目:

  • 快速接入公司统一登录

安装

npm install tntd-cli -g

创建项目

  • 先进入项目目录(空文件即可), 如: orion-react
  • tnt-cli init
  • 依据命令提示选择项目类型

tntd-cli <cmd> [-args]

命令:
  tntd-cli init   初始化项目
  tntd-cli node   创建node项目
  tntd-cli react  创建react项目

选项:
  -v, --version  显示版本号                                               [布尔]
  -h, --help     显示帮助信息                                             [布尔]

copyright 2019 - 2021 同盾 UED

react项目

启动项目

  • npm run build:dll (仅首次启动需要)
  • npm run start:mock (mock模式,走mock文件下服务)
  • npm run start (正常模式联后端)

node项目

启动项目

  • npm run start (正常模式联后端)

Keywords

cli

FAQs

Package last updated on 23 Mar 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.