npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@xuyanfeng/cc-editor

v1.0.26

Published

通过cli启动调试Creator主进程,也可以进行简单的Creator的版本和项目管理工作。

Downloads

37

Readme

cce

通过cli启动调试Creator主进程,也可以进行简单的Creator的版本和项目管理工作。

详细的使用方法可以通过以下命令查看

npm i @xuyanfeng/cc-editor -g
cce -h

使用前的准备

  1. 添加项目、编辑器配置信息
cce add-project 项目路径
cce add-editor 编辑器别名 编辑器路径
  1. 选择项目、编辑器的配置,以下2个命令是交互式的,不需要手动输入
cce use-project
cce use-editor
  1. 查看当前的配置信息
cce list
cce cfg
  1. 启动运行项目
cce run

快速切换配置项

可以将指定的编辑器和项目绑定为一个组合,在不同的组合配置之间快速切换

以下交互式命令,会从已有的配置中进行选择

cce add-group name

以下交互式命令,选择并使用已经设置过的组合

cce use-group

此时,通过以下命令发现配置已经完成了切换

cce list

使用场景

1.日常开发启动项目

当项目开始正式开发后,每天打开的Creator版本和项目其实是固定的,每次都要启动编辑器比较麻烦,通过cli的一些简单配置,就可以通过命令行一键启动。

2.调试插件主进程

当开发Creator插件时,需要调试主进程,每次都需要添加那些记不住而又不得不输入的调试参数,通过这个cli,可以免去这些烦恼。

  • 设置为true后,项目就会开启主进程调试功能

    cce set-debug true
  • 设置主进程调试的端口

    cce set-port 2021
  • 设置是否在主进程的第一行代码设置断点

    cce set-brk true

3.配合cc-plugin,提高插件开发效率

插件开发过程中需要在不同的creator版本进行自测,通过cc-editor快速切换配置项,提高插件开发效率。

4. 快速当前工作目录的creator项目

如果不是creator项目,则不会打开

如果该目录是creator项目,会自动选择creator版本。

如果选择的creator版本和项目的creator版本不兼容,比如项目是2.x,但选择了creator 3.x, 则会再次确认是否打开。

5. cce open 注册到右键菜单

通过cce reg-context-menucce open注册到右键菜单中,后续使用更加简单

更多功能,不定期更新...