Socket
Book a DemoInstallSign in
Socket

jx-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jx-cli

Just a cli to get a common react project

latest
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

自建一个基本可用的项目cli

包含typescript、less、sass、less module方案、eslint校验、commit校验等 需要将可配置文件暴露出去,项目进一步扩大的时候也能用上自定义配置 目前的想法是通过cra创建项目,然后用customize-cra以及react-app-rewired 或者 craco来进行扩展。

使用:npm i jx-cli 基本命令:

  • jx-cli create <projectname>:创建项目
    • 支持-y走默认配置
    • 通过询问的方式是否需要添加上述内容
      • 当然如果都不需要就和一个cra项目一样 没啥区别了

暂时就想到这么多,以后想起来新功能再添加

过程:

  • 创建一个模板文件,执行git init
  • 执行npx create-react-app,创建出一个cra项目
  • 通过craco进行扩展,添加eslint、typescript等

FAQs

Package last updated on 14 Mar 2023

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.